Chapter 19 Debug (S12XDBGV2)
MC9S12XDP512 Data Sheet, Rev. 2.17
708
Freescale Semiconductor
(DBGXCTL)”. Comparators must be enabled by setting the comparator enable bit in the associated
DBGXCTL control register.
19.3.1.11 Comparator Register Descriptions
Each comparator has a bank of registers that are visible through an 8-byte window in the DBG module
register address map. Comparators A and C consist of 8 register bytes (3 address bus compare registers, 2
data bus compare registers, 2 data bus mask registers and a control register).
Comparators B and D consist of 4 register bytes (3 address bus compare registers and a control register).
Each set of comparator registers is accessible in the same 8-byte window of the register address map and
can be accessed using the COMRV bits in the DBGC1 register. If the Comparators B or D are accessed
through the 8-byte window, then only the address and control bytes are visible, the 4 bytes associated with
data bus and data bus masking read as 0 and cannot be written. Furthermore the control registers for
comparators B and D differ from those of comparators A and C.
Table 19-24. DBGSCR3 Field Descriptions
Field
Description
3–0
SC[3:0]
State Control Bits — These bits select the targeted next state while in State3, based upon the match event.
The trigger priorities described in
Table 19-38 dictate that in the case of simultaneous matches, the match on
the lower channel number (0,1,2,3) has priority. The SC[3:0] encoding ensures that a match leading to nal state
has priority over all other matches.
Table 19-25. State3 Sequencer Next State Selection
SC[3:0]
Description
0000
Any match triggers to state1
0001
Any match triggers to state2
0010
Any match triggers to nal state
0011
Match0 triggers to State1....... Other matches have no effect
0100
Match0 triggers to State2....... Other matches have no effect
0101
Match0 triggers to nal state....... Other matches have no effect
0110
Match1 triggers to State1....... Other matches have no effect
0111
Match1 triggers to State2....... Other matches have no effect
1000
Match1 triggers to nal state....... Other matches have no effect
1001
Match2 triggers to State2....... Match0 triggers to nal state....... Other matches have no effect
1010
Match1 triggers to State1....... Match3 triggers to State2....... Other matches have no effect
1011
Match3 triggers to State2....... Match1 triggers to nal state....... Other matches have no effect
1100
Match2 triggers to nal state....... Other matches have no effect
1101
Match3 triggers to nal state....... Other matches have no effect
1110
Reserved
1111
Reserved
Table 19-26. Comparator Register Layout
0x0028
CONTROL
Read/Write