Background Debug Mode (BDM)

Table 29-20. Definition of DRc Encoding—Read

DRc[4:0]

Debug Register Definition

Mnemonic

Initial State

Page

 

 

 

 

 

0x00

Configuration/Status

CSR

0x0

p. 29-10

 

 

 

 

 

0x01–0x1F

Reserved

 

 

 

 

 

Command Sequence:

RDMREG

???

XXX

NEXT CMD

MS RESULT

 

LS RESULT

XXX

NEXT CMD

’ILLEGAL’

 

’NOT READY’

 

Figure 29-38. RDMREG Command Sequence

Operand Data:

None

Result Data:

The contents of the selected debug register are returned as a

 

longword value. The data is returned most-significant word first.

29.5.3.3.12 Write Debug Module Register (WDMREG)

The operand (longword) data is written to the specified debug module register. All 32 bits of the register are altered by the write. DSCLK must be inactive while the debug module register writes from the CPU accesses are performed using the WDEBUG instruction.

Command Format:

15

12

11

8

7

5

4

0

 

0x2

 

0xC

 

100

 

DRc

 

 

 

 

 

 

 

 

D[31:16]

D[15:0]

Figure 29-39. WDMREG BDM Command Format

Table 29-3shows the definition of the DRc write encoding.

Command Sequence:

WDMREG

???

MS DATA

 

LS DATA

 

 

NEXT CMD

’NOT READY’

 

’NOT READY’

 

 

’CMD COMPLETE’

XXX

 

NEXT CMD

 

 

 

’ILLEGAL’

 

’NOT READY’

 

 

 

Figure 29-40. WDMREG Command Sequence

29-36

MCF5282 User’s Manual

MOTOROLA

Page 708
Image 708
Motorola MCF5282, MCF5281 user manual Write Debug Module Register Wdmreg, Definition of DRc Encoding-Read