English
Language : 

MC9S12XD256CAG Datasheet, PDF (698/1348 Pages) Freescale Semiconductor, Inc – MC9S12XDP512 Data Sheet
Chapter 19 S12X Debug (S12XDBGV2) Module
COMRV
01
10
11
Table 19-5. COMRV Encoding
Visible Comparator
Comparator B
Comparator C
Comparator D
Visible State Control Register
DBGSCR2
DBGSCR3
DBGSCR3
19.3.1.2 Debug Status Register (DBGSR)
0x0021
7
R TBF
W
Reset
—
POR
0
Read: Anytime
Write: Never
6
5
4
3
2
EXTF
0
0
0
SSF2
0
0
0
0
0
0
0
0
0
0
Unimplemented or Reserved
Figure 19-4. Debug Status Register (DBGSR)
Table 19-6. DBGSR Field Descriptions
1
SSF1
0
0
0
SSF0
0
0
Field
7
TBF
6
EXTF
2–0
SSF[2:0}
Description
Trace Buffer Full — The TBF bit indicates that the trace buffer has stored 64 or more lines of data since it was
last armed. If this bit is set, then all 64 lines will be valid data, regardless of the value of DBGCNT bits CNT[6:0].
The TBF bit is cleared when ARM in DBGC1 is written to a 1. The TBF is cleared by the power on reset
initialization. Other system generated resets have no affect on this bit
External Tag Hit Flag — The EXTF bit indicates if a tag hit condition from an external TAGHI/TAGLO tag was
met since arming. This bit is cleared when ARM in DBGC1 is written to a 1.
0 External tag hit has not occurred
1 External tag hit has occurred
State Sequencer Flag Bits — The SSF bits indicate in which state the state sequencer is currently in. During
a debug session on each transition to a new state these bits are updated. If the debug session is ended by
software clearing the ARM bit, then these bits retain their value to reflect the last state of the state sequencer
before disarming. If a debug session is ended by a breakpoint, then the state sequencer returns to state0 and
these bits are cleared to indicate that state0 was entered during the session. On arming the module the state
sequencer enters state1 and these bits are forced to SSF[2:0] = 001. See Table 19-7.
Table 19-7. SSF[2:0] — State Sequence Flag Bit Encoding
SSF[2:0]
000
001
010
011
100
101,110,111
Current State
State0 (disarmed)
State1
State2
State3
Final State
Reserved
MC9S12XDP512 Data Sheet, Rev. 2.21
700
Freescale Semiconductor