Datasheet

Commands begin with an 8-bit hexadecimal command code in the host-to-target direction (most
significant bit first)
/ =separates parts of the command
d=delay 16 target BDC clock cycles
AAAA = a 16-bit address in the host-to-target direction
RD = 8 bits of read data in the target-to-host direction
WD = 8 bits of write data in the host-to-target direction
RD16 = 16 bits of read data in the target-to-host direction
WD16 = 16 bits of write data in the host-to-target direction
SS = the contents of BDCSCR in the target-to-host direction (STATUS)
CC = 8 bits of write data for BDCSCR in the host-to-target direction (CONTROL)
RBKP = 16 bits of read data in the target-to-host direction (from BDCBKPT breakpoint
register)
WBKP = 16 bits of write data in the host-to-target direction (for BDCBKPT breakpoint
register)
Table 23-1. BDC command summary
Command mnemonic Active BDM/ non-intrusive Coding structure Description
SYNC Non-intrusive N/A
1
Request a timed reference
pulse to determine target BDC
communication speed
ACK_ENABLE Non-intrusive D5/d Enable acknowledge protocol.
Refer to Freescale document
order no. HCS08RMv1/D.
ACK_DISABLE Non-intrusive D6/d Disable acknowledge
protocol. Refer to Freescale
document order no.
HCS08RMv1/D.
BACKGROUND Non-intrusive 90/d Enter active background
mode if enabled (ignore if
ENBDM bit equals 0)
READ_STATUS Non-intrusive E4/SS Read BDC status from
BDCSCR
WRITE_CONTROL Non-intrusive C4/CC Write BDC controls in
BDCSCR
READ_BYTE Non-intrusive E0/AAAA/d/RD Read a byte from target
memory
READ_BYTE_WS Non-intrusive E1/AAAA/d/SS/RD Read a byte and report status
READ_LAST Non-intrusive E8/SS/RD Re-read byte from address
just read and report status
WRITE_BYTE Non-intrusive C0/AAAA/WD/d Write a byte to target memory
WRITE_BYTE_WS Non-intrusive C1/AAAA/WD/d/SS Write a byte and report status
READ_BKPT Non-intrusive E2/RBKP Read BDCBKPT breakpoint
register
WRITE_BKPT Non-intrusive C2/WBKP Write BDCBKPT breakpoint
register
GO Active BDM 08/d Go to execute the user
application program starting at
the address currently in the
PC
TRACE1 Active BDM 10/d Trace 1 user instruction at the
address in the PC, then return
to active background mode
Table continues on the next page...
Chapter 23 Development support
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
Freescale Semiconductor, Inc. 597