![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 183](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602183.webp)
Chapter 6 S12Z Debug (S12ZDBGV2) Module
MC9S12ZVM Family Reference Manual Rev. 1.3
Freescale Semiconductor
183
— CPU breakpoint executing SWI on breakpoint (SWI)
•
Trace control
— Tracing session triggered by state sequencer
— Begin, End, and Mid alignment of tracing to trigger
•
Four trace modes
— Normal: change of flow (COF) PC information is stored (see
) for change of
flow definition.
— Loop1: same as Normal but inhibits consecutive duplicate source address entries
— Detail: address and data for all read/write access cycles are stored
— Pure PC: All program counter addresses are stored.
•
2 Pin (data and clock) profiling interface
— Output of code flow information
6.1.4
Modes of Operation
The DBG module can be used in all MCU functional modes.
The DBG module can issue breakpoint requests to force the device to enter active BDM or an SWI ISR.
The BDC BACKGROUND command is also handled by the DBG to force the device to enter active BDM.
When the device enters active BDM through a BACKGROUND command with the DBG module armed,
the DBG remains armed.
6.1.5
Block Diagram
B
Figure 6-1. Debug Module Block Diagram
CPU BUS
TRACE BUFFER
B
US INTERF
A
C
E
MATCH0
COMPARATOR B
COMPARATOR C
COMPARATOR D
COMPARATOR A
STATE SEQUENCER
MATCH1
MATCH2
MATCH3
TRACE
READ TRACE DATA (DBG READ DATA BUS)
CONTROL
BREAKPOINT
COMP
ARA
T
O
R
MA
TCH CONTR
OL
TRIGGER
AND
EVENT CONTROL
REQUESTS
REGISTERS
TRIG
PROFILE
OUTPUT
EXTERNAL EVENT