atmega323l ATMEL Corporation, atmega323l Datasheet - Page 160

no-image

atmega323l

Manufacturer Part Number
atmega323l
Description
Atmega323 8-bit Avr Microcontroller With 32k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
TAP Controller
160
ATmega323(L)
Figure 86. TAP Controller State Diagram
The TAP controller is a 16-state finite state machine that controls the operation of the
Boundary-Scan circuitry, JTAG programming circuitry, or On-chip Debug system. The
state transitions depicted in Figure 86 depends on the signal present on TMS (shown
adjacent to each state transition) at the time of the rising edge at TCK. The initial state
after a Power-On Reset is Test-Logic-Reset.
As a definition in this document, the LSB is shifted in and out first for all Shift Registers.
Assuming Run-Test/Idle is the present state, a typical scenario for using the JTAG inter-
face is
1
0
At the TMS input, apply the sequence 1, 1, 0, 0 at the rising edges of TCK to enter
the Shift Instruction Register – Shift-IR state. While TMS is low, shift the 4-bit JTAG
instructions into the JTAG Instruction Register from the TDI input at the rising edge
of TCK, while the captured IR-state 0x01 is shifts out on the TDO pin. The JTAG
Instruction selects a particular Data Register as path between TDI and TDO and
controls the circuitry surrounding the selected Data Register.
Test-Logic-Reset
Run-Test/Idle
0
1
1
0
Select-DR Scan
Capture-DR
Update-DR
Pause-DR
Exit1-DR
Exit2-DR
Shift-DR
1
0
0
1
0
1
1
0
1
1
0
0
1
0
Select-IR Scan
Capture-IR
Update-IR
Pause-IR
Exit1-IR
Exit2-IR
Shift-IR
1
0
0
1
0
1
1
1457G–AVR–09/03
0
1
1
0
0

Related parts for atmega323l