Datasheet

Table Of Contents
Background Debug Module
MC9S12DP256 — Revision 1.1
Background Debug Module (BDM)
NOTE:
If an attempt is made to activate BDM before being enabled, the CPU
resumes normal instruction execution after a brief delay. If BDM is not
enabled, any hardware BACKGROUND commands issued are ignored
by the BDM and the CPU is not delayed.
In active BDM, the BDM registers and standard BDM firmware lookup
table are mapped to addresses $FF00 to $FFFF. BDM registers are
mapped to addresses $FF00 to $FF07. The BDM uses these registers
which are readable anytime by the BDM. These registers are not,
however, readable by user programs.
BDM Hardware
Commands
Hardware commands are used to read and write target system memory
locations and to enter active background debug mode. Target system
memory includes all memory that is accessible by the CPU such as
on-chip RAM, EEPROM, Flash EEPROM, I/O and control registers, and
all external memory.
Hardware commands are executed with minimal or no CPU intervention
and do not require the system to be in active BDM for execution,
although, they can still be executed in this mode. When executing a
hardware command, the BDM sub-block waits for a free CPU bus cycle
so that the background access does not disturb the running application
program. If a free cycle is not found within 128 clock cycles, the CPU is
momentarily frozen so that the BDM can steal a cycle. When the BDM
finds a free cycle, the operation does not intrude on normal CPU
operation provided that it can be completed in a single cycle. However,
if an operation requires multiple cycles, the CPU is frozen until the
operation is complete, even though the BDM found a free cycle.
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...