Version 1 ColdFire Debug (CF1_DEBUG)
MCF51CN128 Reference Manual, Rev. 6
Freescale Semiconductor
20-35
Table 20-24. BDM Command Field Descriptions
Field
Description
5
R/W
Read/Write.
0 Command is performing a write operation.
1 Command is performing a read operation.
3–0
MSCMD
Miscellaneous command. Defines the miscellaneous command to be performed.
0000 No operation
0001 Display the CPU’s program counter (PC) plus optional capture in the PST trace buffer
0010 Enable the BDM acknowledge communication mode
0011 Disable the BDM acknowledge communication mode
0100 Force a CPU halt (background)
1000 Resume CPU execution (go)
1101 Read/write of the debug XCSR most significant byte
1110 Read/write of the debug CSR2 most significant byte
1111 Read/write of the debug CSR3 most significant byte
3–2
SZ
Memory operand size. Defines the size of the memory reference.
00 8-bit byte
01 16-bit word
10 32-bit long
1–0
MCMD
Memory command. Defines the type of the memory reference to be performed.
00 Simple write if R/W = 0; simple read if R/W = 1
01 Write + status if R/W = 0; read + status if R/W = 1
10 Fill if R/W = 0; dump if R/W = 1
11 Fill + status if R/W = 0; dump + status if R/W = 1
7–6
CRG
Core register group. Defines the core register group to be referenced.
01 CPU’s general-purpose registers (An, Dn) or PST trace buffer
10 Debug’s control registers
11 CPU’s control registers (PC, SR, VBR, CPUCR,...)
4–0
CRN
Core register number. Defines the specific core register (its number) to be referenced. All other CRN values are
reserved.
CRG
CRN
Register
01
0x00–0x07
D0–7
0x08–0x0F
A0–7
0x10–0x1B
PST Buffer 0–11
10
DRc[4:0] as described in
11
0x00
OTHER_A7
0x01
VBR
0x02
CPUCR
0x0E
SR
0x0F
PC