28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JTAG Test Access Port and OnCE<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

For accesses to the CPU internal state, the OnCE controller requests the<br />

CPU to enter debug mode via the CPU DBGRQ input. Once the CPU<br />

enters debug mode, as indicated by the OnCE status register, the<br />

processor state may be accessed through the CPU scan register.<br />

The OnCE controller is implemented as a 16-state finite state machine,<br />

with a one-to-one correspondence to the states defined for the JTAG<br />

TAP controller.<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

CPU registers and the contents of memory locations are accessed by<br />

scanning instructions and data into and out of the CPU scan chain.<br />

Required data is accessed by executing the scanned instructions.<br />

Memory locations may be read by scanning in a load instruction to the<br />

CPU that references the desired memory location, executing the load<br />

instruction, and then scanning out the result of the load. Other resources<br />

are accessed in a similar manner.<br />

Resources contained in the OnCE module that do not require the CPU<br />

to be halted for access may be controlled while the CPU is executing and<br />

do not interfere with normal processor execution. Accesses to certain<br />

resources, such as the PC FIFO and the count registers, while not part<br />

of the CPU, may require the CPU to be stopped to allow access to avoid<br />

synchronization hazards. If it is known that the CPU clock is enabled and<br />

running no slower than the TCLK input, there is sufficient<br />

synchronization performed to allow reads but not writes of these specific<br />

resources. Debug firmware may ensure that it is safe to access these<br />

resources by reading the OSR to determine the state of the CPU prior to<br />

access. All other cases require the CPU to be in the debug state for<br />

deterministic operation.<br />

21.14.2 OnCE Controller and Serial Interface<br />

Figure 21-7 is a block diagram of the OnCE controller and serial<br />

interface.<br />

The OnCE command register acts as the instruction register (IR) for the<br />

TAP controller. All other OnCE resources are treated as data registers<br />

(DR) by the TAP controller. The command register is loaded by serially<br />

shifting in commands during the TAP controller shift-IR state, and is<br />

loaded during the update-IR state. The command register selects a<br />

Technical Data <strong>MMC2107</strong> – Rev. 2.0<br />

558 JTAG Test Access Port and OnCE MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!