Table 13-4. jtag status decode -12, Maxq7667 user’s guide, Table 13-4. jtag status decode – Maxim Integrated MAXQ7667 User Manual

Page 230

Advertising
background image

_________________________________________________________________________________________________________

13-12

MAXQ7667 User’s Guide

Table 13-4. JTAG Status Decode

BITS (1:0)

STATUS

CONDITION

0

0

Reserved

Invalid condition.

0

1

Reserved

Invalid condition.

1

0

Loader-Busy

ROM loader is busy executing code or

processing the current command.

1

1

Loader-Valid

ROM loader is supplying valid output data to

the host in current shift operation.

SPB.2 and SPB.1: Programming Source Select (PSS[1:0]). These bits allow the host to select programming interface sources.
PSS[1:0] = 00 for JTAG; PSS[1:0] = 01 for UART.

The DR-scan sequence is used to configure the SPB bits. The data content of the SPB register is reflected in the ICDF register and

allows read/write access by the CPU. These bits are cleared by power-on reset or test-logic-reset of the TAP controller.

The MAXQ7667 JTAG bootloader uses the same status bit handshaking hardware as is used for in-circuit debugging. When the SPE

bit of the system programming buffer (SPB) is set to 1 and JTAG is selected as the programming source (PSS[1:0] = 00b), the back-

ground and active-debug-mode state machines are disabled. Once the host loads the debug instruction into the TAP instruction reg-

ister (IR[2:0]), the 10-bit shift register interfaces to ICDB and the status bits become available for JTAG-to-ROM bootloader communi-

cation. The status bits should be interpreted as noted in Table 13-4 for a JTAG bootloader operation.

When the using the JTAG bootloader option (SPE = 1, PSS[1:0] = 00b), the sole purpose of the debug hardware is to simultaneously

transfer the data byte shifted in from the host into the ICDB register and transfer the contents of an internal holding register (loaded by

ROM code writes of ICDB) into the shift register for output to the host. This transfer takes place on the falling edge of TCK at the update-

DR state. The debug hardware additionally clears the TXC bit at this point in the state diagram. The ROM-loader code controls the sta-

tus bit output to the host by asserting TXC = 1 when it has valid data to be shifted out. The ROM code can flexibly implement what-

ever communication protocol and command set it wishes within the data byte portion of the shifted 10-bit word.

Advertising