Chapter 19 Debug (S12XDBGV2)
MC9S12XDP512 Data Sheet, Rev. 2.17
700
Freescale Semiconductor
19.3.1.2
Debug Status Register (DBGSR)
Read: Anytime
Write: Never
01
10
11
Comparator B
Comparator C
Comparator D
DBGSCR2
DBGSCR3
DBGSCR3
0x0021
7
6
5
0
4
0
3
0
2
1
0
R
W
TBF
EXTF
SSF2
SSF1
SSF0
Reset
POR
—
0
0
0
0
0
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
Field
Description
7
TBF
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
6
EXTF
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
2–0
SSF[2:0}
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]
Current State
000
001
010
011
100
State0 (disarmed)
State1
State2
State3
Final State
Reserved
101,110,111
Table 19-5. COMRV Encoding
COMRV
Visible Comparator
Visible State Control Register