AN2104 Freescale Semiconductor, AN2104 Datasheet - Page 4

no-image

AN2104

Manufacturer Part Number
AN2104
Description
Using Background Debug Mode
Manufacturer
Freescale Semiconductor
Datasheet
Application Note
4
WRITE_BD_WORD
READ_BD_WORD
WRITE_BD_BYTE
1. STATUS command is a specific case of the READ_BD_BYTE command.
2. ENABLE_FIRMARE is a specific case of the WRITE_BD_BYTE command.
READ_BD_BYTE
BACKGROUND
WRITE_WORD
READ_WORD
WRITE_BYTE
FIRMWARE
READ_BYTE
Command
STATUS
ENABLE_
(1)
(2)
Opcode
(Hex)
EC
CC
E4
E4
E0
E8
C4
C4
C0
C8
90
Freescale Semiconductor, Inc.
Table 1. BDM Hardware Commands
For More Information On This Product,
1000 0000 (out)
0000 0000 (out)
1100 0000 (out)
16-bit data out
16-bit data out
16-bit data out
16-bit address
16-bit address
16-bit address
16-bit address
16-bit address
16-bit address
16-bit address
16-bit address
16-bit data out
1xxx xxxx (in)
16-bit data in
16-bit data in
16-bit data in
16-bit data in
Go to: www.freescale.com
FF01,
FF01,
FF01,
FF01,
None
Data
Enter background mode (if firmware enabled).
Read from memory with BDM in map (may steal cycles if
READ_BD_BYTE $FF01. Running user code. (BGND
READ_BD_BYTE $FF01. BGND instruction is allowed.
READ_BD_BYTE $FF01. Background mode active
Read from memory with BDM in map (may steal cycles if
Read from memory with BDM out of map (may steal
Read from memory with BDM out of map (may steal
Write to memory with BDM in map (may steal cycles if
Write byte $FF01, set the ENBDM bit. This allows
Write to memory with BDM in map (may steal cycles if
Write to memory with BDM out of map (may steal cycles
Write to memory with BDM out of map (may steal cycles
external access) data for odd address on low byte,
data for even address on high byte.
instruction is not allowed.)
(waiting for single wire serial command).
external access) must be aligned access.
cycles if external access) data for odd address on low
byte, data for even address on high byte.
cycles if external access) must be aligned access.
external access) data for odd address on low byte,
data for even address on high byte.
execution of commands which are implemented in
firmware. Typically, read STATUS, OR in the MSB,
write the result back to STATUS.
external access) must be aligned access.
if external access) data for odd address on low byte,
data for even address on high byte.
if external access) must be aligned access.
Description
AN2104

Related parts for AN2104