03.08.2013 Views

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

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>Qorivva</strong> <strong>MPC56xx</strong> <strong>Flash</strong> <strong>Programming</strong> <strong>Through</strong> <strong>Nexus</strong>/<strong>JTAG</strong>, Rev. 0<br />

On-Chip Emulation (OnCE)<br />

Figure 9 shows reading the value 0x80000000 from DBCR0 through the DR path assuming the TAP<br />

controller state machine is initially in the RUN-TEST/IDLE state. The state machine is returned to the<br />

RUN-TEST/IDLE state when the read is complete.<br />

2.3 OnCE Status Register<br />

Figure 9. Signal transitions for reading DBCR0<br />

The OnCE Status Register (OSR) is a special register in terms of how it is read. Status information related<br />

to the state of the CPU is latched into the OnCE Status Register when the OnCE TAP controller state<br />

machine enters the CAPTURE-IR state. The status information is shifted out serially through the<br />

SHIFT-IR state on TDO. The OSR is a 10-bit register like the OCMD. Therefore, the status information<br />

can be read while writing OCMD. The OSR is shown in Figure 10.<br />

0 1 2 3 4 5 6 7 8 9<br />

MCLK ERR CHKSTOP RESET HALT STOP DEBUG 0 1<br />

Figure 10. OnCE Status Register (OSR)<br />

Figure 11 shows reading the OnCE status register on TDO while writing the OCMD on TDI assuming the<br />

TAP controller state machine is initially in the RUN-TEST/IDLE state. The state machine is returned to<br />

the RUN-TEST/IDLE state when the read is complete. The OCMD is written with the value<br />

0b10_0001_0001 choosing a read of No Register Selected. The data read on TDO from the OnCE status<br />

register is 0b10_0000_1001 showing that the OSR[MCLK] and OSR[DEBUG] status bits are set. All data<br />

is scanned in and out least significant bit first.<br />

Freescale Semiconductor 13

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

Saved successfully!

Ooh no, something went wrong!