
19-10
MCF5249UM
MOTOROLA
Background-Debug Mode (BDM)
Table 19-7 BDM Command Summary
COMMAND
MNEMONIC
DESCRIPTION
CPU
IMPACT1
COMMAND
(HEX)
PAGE
READ A/D REGISTER
RAREG/RDREG
Read the selected address or
data register and return results
through the serial interface.
Halted
$218 {A/D,
Reg[2:0]}
WRITE A/D REGISTER
WAREG/WDREG The data operand is written to the
specified address or data
register.
Halted
$208 {A/D,
Reg[2:0]}
READ MEMORY
LOCATION
READ
Read the data at the memory
location specified by the longword
address.
Steal
$1900–byte
$1940–wd
$1980–long
WRITE MEMORY
LOCATION
WRITE
Write the operand data to the
memory location specified by the
longword address.
Steal
$1800–byte
$1840–wd
$1880–long
DUMP MEMORY BLOCK DUMP
Used with the READ command to
dump large blocks of memory. An
initial READ is executed to set up
the starting address of the block
and to retrieve the first result.
Subsequent operands are
retrieved with the DUMP
command.
Steal
$1D00–byte
$1D40–wd
$1D80–long
FILL MEMORY BLOCK
FILL
Used with the WRITE command
to fill large blocks of memory. An
initial WRITE is executed to set
up the starting address of the
block and to supply the first
operand. Subsequent operands
are written with the FILL
command.
Steal
$1C00–byte
$1C40–word
$1C80–long
RESUME EXECUTION
GO
Halted
$0C00
NO OPERATION
NOP
NOP performs no operation and
may be used as a null command.
Parallel
$0000
READ CONTROL
REGISTER
RCREG
Read the system control register. Halted
$2980
WRITE CONTROL
REGISTER
WCREG
Write the operand data to the
system control register.
Halted
$2880
READ DEBUG MODULE
REGISTER
RDMREG
Read the debug module register. Parallel
$2D {$4
DRc[4:0]}
WRITE DEBUG
MODULE REGISTER
WDMREG
Write the operand data to the
debug module register.
Parallel
$2C {$4
Drc[4:0]}
NOTE:
General command effect and/or requirements on CPU operation:
Halted—The CPU must be halted to perform this command
Steal—Command generates bus cycles which can be interleaved with CPU accesses
Parallel—Command is executed in parallel with CPU activity
Refer to command summaries for detailed operation descriptions.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.