mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 176

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 6 Background Debug Module (BDMV4) Block Description
The BDM hardware commands are listed in
NOTE:
The READ_BD and WRITE_BD commands allow access to the BDM register locations. These locations
are not normally in the system memory map but share addresses with the application in memory. To
distinguish between physical memory locations that share the same address, BDM memory resources are
enabled just for the READ_BD and WRITE_BD access cycle. This allows the BDM to access BDM
locations unobtrusively, even if the addresses conflict with the application memory map.
6.4.4
Firmware commands are used to access and manipulate CPU resources. The system must be in active
BDM to execute standard BDM firmware commands, see
Normal instruction execution is suspended while the CPU executes the firmware located in the standard
BDM firmware lookup table. The hardware command BACKGROUND is the usual way to activate BDM.
As the system enters active BDM, the standard BDM firmware lookup table and BDM registers become
visible in the on-chip memory map at 0xFF00–0xFFFF, and the CPU begins executing the standard BDM
176
BACKGROUND
ACK_ENABLE
ACK_DISABLE
READ_BD_BYTE
READ_BD_WORD
READ_BYTE
READ_WORD
WRITE_BD_BYTE
WRITE_BD_WORD
WRITE_BYTE
WRITE_WORD
If enabled, ACK will occur when data is ready for transmission for all BDM READ commands and will occur after the write is
complete for all BDM WRITE commands.
Command
Standard BDM Firmware Commands
Opcode
(hex)
CC
EC
D5
D6
E4
E0
E8
C4
C0
C8
90
16-bit address
16-bit data out
16-bit address
16-bit data out
16-bit address
16-bit data out
16-bit address
16-bit data out
16-bit address
16-bit address
16-bit address
16-bit address
16-bit data in
16-bit data in
16-bit data in
16-bit data in
None
None
None
Data
MC9S12C-Family / MC9S12GC-Family
Table 6-5. Hardware Commands
Table
Enter background mode if firmware is enabled. If enabled, an ACK will
be issued when the part enters active background mode.
Enable handshake. Issues an ACK pulse after the command is
executed.
Disable handshake. This command does not issue an ACK pulse.
Read from memory with standard BDM firmware lookup table in map.
Odd address data on low byte; even address data on high byte.
Read from memory with standard BDM firmware lookup table in map.
Must be aligned access.
Read from memory with standard BDM firmware lookup table out of
map. Odd address data on low byte; even address data on high byte.
Read from memory with standard BDM firmware lookup table out of
map. Must be aligned access.
Write to memory with standard BDM firmware lookup table in map. Odd
address data on low byte; even address data on high byte.
Write to memory with standard BDM firmware lookup table in map. Must
be aligned access.
Write to memory with standard BDM firmware lookup table out of map.
Odd address data on low byte; even address data on high byte.
Write to memory with standard BDM firmware lookup table out of map.
Must be aligned access.
Rev 01.23
6-5.
Section 6.4.2, “Enabling and Activating
Description
Freescale Semiconductor
BDM.”

Related parts for mc9s12c32mpb16