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.

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

JTAG Test Access Port and OnCE<br />

Functional Description<br />

21.14.8.1 OnCE Trace Counter<br />

The OnCE trace counter register (OTC) is a 16-bit counter that allows<br />

more than one instruction to be executed in real time before the device<br />

returns to debug mode. This feature helps the software developer debug<br />

sections of code that are time-critical. The trace counter also enables the<br />

user to count the number of instructions executed in a code segment.<br />

nc...<br />

DSCK<br />

DSO<br />

DSI<br />

OnCE TRACE COUNTER<br />

DEC<br />

END<br />

OF<br />

INSTRUCTION<br />

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

Figure 21-12. OnCE Trace Logic Block Diagram<br />

The OTC register can be read, written, or cleared through the OnCE<br />

serial interface. If N instructions are to be executed before entering<br />

debug mode, the trace counter should be loaded with N – 1. N must not<br />

equal zero unless the sequential breakpoint control capability is being<br />

used. In this case a value of zero (indicating a single instruction) is<br />

allowed.<br />

A hardware reset clears the OTC.<br />

COUNT = 0<br />

ISTRACE<br />

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

Technical Data<br />

MOTOROLA JTAG Test Access Port and OnCE 573<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!