English
Language : 

MC9S12NE64V1 Datasheet, PDF (443/554 Pages) Freescale Semiconductor, Inc – MC9S12NE64V1 Data Sheet
Chapter 17
Background Debug Module (BDMV4)
17.1 Introduction
This section describes the functionality of the background debug module (BDM) sub-block of the HCS12
core platform.
A block diagram of the BDM is shown in Figure 17-1.
HOST
SYSTEM
BKGD
16-BIT SHIFT REGISTER
ENTAG
BDMACT
TRACE
INSTRUCTION DECODE
AND EXECUTION
BUS INTERFACE
AND
CONTROL LOGIC
ADDRESS
DATA
CLOCKS
SDV
ENBDM
STANDARD BDM
FIRMWARE
LOOKUP TABLE
CLKSW
Figure 17-1. BDM Block Diagram
The background debug module (BDM) sub-block is a single-wire, background debug system implemented
in on-chip hardware for minimal CPU intervention. All interfacing with the BDM is done via the BKGD
pin.
BDMV4 has enhanced capability for maintaining synchronization between the target and host while
allowing more flexibility in clock rates. This includes a sync signal to show the clock rate and a handshake
signal to indicate when an operation is complete. The system is backwards compatible with older external
interfaces.
17.1.1 Features
• Single-wire communication with host development system
• BDMV4 (and BDM2): Enhanced capability for allowing more flexibility in clock rates
• BDMV4: SYNC command to determine communication rate
• BDMV4: GO_UNTIL command
• BDMV4: Hardware handshake protocol to increase the performance of the serial communication
• Active out of reset in special single-chip mode
• Nine hardware commands using free cycles, if available, for minimal CPU intervention
• Hardware commands not requiring active BDM
• 15 firmware commands execute from the standard BDM firmware lookup table
MC9S12NE64 Data Sheet, Rev. 1.1
Freescale Semiconductor
443