
DS26303: 3.3V, T1/E1/J1, Short-Haul, Octal Line Interface Unit 
71 of 97 
7.1 TAP Controller State Machine 
The TAP controller is a finite state machine that responds to the logic level at JTMS on the rising edge of TCLK. 
The state diagram is shown in
 Figure 7-2.
Test-Logic-Reset 
Upon power-up, the TAP controller will be in the test-logic-reset state. The instruction register will contain the 
IDCODE instruction. All system logic of the device will operate normally. This state is automatically entered during 
power up. This state is entered from any state if the JTMS is held high for at least 5 clocks. 
Run-Test-Idle 
The run-test-idle is used between scan operations or during specific tests. The instruction register and test 
registers will remain idle. The controller remains in this state when JTMS is held low. When the JTMS is high and 
rising edge of TCLK is applied the controller moves to the Select-DR-Scan State.  
Select-DR-Scan 
All test registers retain their previous state. With JTMS LOW, a rising edge of TCLK moves the controller into the 
capture-DR state and will initiate a scan sequence. JTMS HIGH during a rising edge on TCLK moves the controller 
to the select-IR-scan state. 
Capture-DR 
Data can be parallel-loaded into the test-data registers if the current instruction is EXTEST or SAMPLE/PRELOAD. 
If the instruction does not call for a parallel load or the selected register does not allow parallel loads, the test 
register will remain at its current value. On the rising edge of TCLK, the controller will go to the shift-DR state if 
JTMS is LOW or it will go to the exit1-DR state if JTMS is HIGH. 
Shift-DR 
The test-data register selected by the current instruction will be connected between JTDI and JTDO and will shift 
data one stage towards its serial output on each rising edge of TCLK. If a test register selected by the current 
instruction is not placed in the serial path, it will maintain its previous state. When the TAP Controller is in this state 
and a rising edge of TCLK is applied, the controller enters the EXIT1-DR state if JTMS is high or remains in SHIFT-
DR state if JTMS is low. 
Exit1-DR 
While in this state, a rising edge on TCLK will put the controller in the Update-DR state, which terminates the 
scanning process, if JTMS is HIGH. A rising edge on TCLK with JTMS LOW will put the controller in the Pause-DR 
state. 
Pause-DR 
Shifting of the test registers is halted while in this state. All test registers selected by the current instruction will 
retain their previous state. The controller will remain in this state while JTMS is LOW. A rising edge on TCLK with 
JTMS HIGH will put the controller in the exit2-DR state. 
Exit2-DR 
A rising edge on TCLK with JTMS HIGH while in this state will put the controller in the update-DR state and 
terminate the scanning process. A rising edge on TCLK with JTMS LOW will enter the shift-DR state.