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 />

21.14.8.2 Trace Operation<br />

To initiate trace mode operation:<br />

nc...<br />

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

1. Load the OTC register with a value. This value must be non-zero,<br />

unless sequential breakpoint control operation is enabled in the<br />

OCR register. In this case, a value of zero (indicating a single<br />

instruction) is allowed.<br />

2. Initialize the program counter and instruction register in the<br />

CPUSCR with values corresponding to the start location of the<br />

instruction(s) to be executed real-time.<br />

3. Set the TME bit in the OCR.<br />

21.14.9 Methods of Entering Debug Mode<br />

4. Release the processor from debug mode by executing the<br />

appropriate command issued by the external command controller.<br />

When debug mode is exited, the counter is decremented after each<br />

execution of an instruction. Interrupts can be serviced, and all<br />

instructions executed (including interrupt services) will decrement the<br />

trace counter.<br />

When the trace counter decrements to zero, the OnCE control logic<br />

requests that the processor re-enter debug mode, and the trace<br />

occurrence bit TO in the OSR is set to indicate that debug mode has<br />

been requested as a result of the trace count function. The trace counter<br />

allows a minimum of two instructions to be specified for execution prior<br />

to entering trace (specified by a count value of one), unless sequential<br />

breakpoint control operation is enabled in the OCR. In this case, a value<br />

of zero (indicating a single instruction) is allowed.<br />

The PM status field in the OSR indicates that the CPU has entered<br />

debug mode. The following paragraphs discuss conditions that invoke<br />

debug mode.<br />

21.14.9.1 Debug Request During RESET<br />

When the DR bit in the OCR is set, assertion of RESET causes the<br />

device to enter debug mode. In this case the device may fetch the reset<br />

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

574 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!