
Functional Description and Application Information
S12S Debug (S12SDBGV1) Module
MM912F634
Freescale Semiconductor
223
The priorities described in
Table 311 dictate that in the case of simultaneous matches, the match on the lower channel number
(0,1,2) has priority. The SC[2:0] encoding ensures that a match leading to final state has priority over all other matches.
4.31.3.2.7.2
Debug State Control Register 2 (DBGSCR2)
Read: If COMRV[1:0] = 01
Write: If COMRV[1:0] = 01 and DBG is not armed.
This register is visible at 0x0027 only with COMRV[1:0] = 01. The state control register 2 selects the targeted next state whilst in
State2. The matches refer to the match channels of the comparator match control logic as depicted in
Figure 69 and described
comparator enable bit in the associated DBGXCTL control register.
The priorities described in
Table 311 dictate that in the case of simultaneous matches, the match on the lower channel number
(0,1,2) has priority. The SC[2:0] encoding ensures that a match leading to final state has priority over all other matches
Table 280. State1 Sequencer Next State Selection
SC[2:0]
Description
000
Any match to Final State
001
Match1 to State3
010
Match2 to State2
011
Match1 to State2
100
Match0 to State2....... Match1 to State3
101
Match1 to State3....... Match0 Final State
110
Match0 to State2....... Match2 to State3
111
Either Match0 or Match1 to State2........... Match2 has no effect
Table 281. Debug State Control Register 2 (DBGSCR2)
Address: 0x0027
7
6
5
432
10
R
0
000
SC2
SC1
SC0
W
Reset
0
000
00
0
Table 282. DBGSCR2 Field Descriptions
Field
Description
2–0
SC[2:0]
These bits select the targeted next state whilst in State2, based upon the match event.
Table 283. State2 —Sequencer Next State Selection
SC[2:0]
Description
000
Match0 to State1....... Match2 to State3.
001
Match1 to State3
010
Match2 to State3
011
Match1 to State3....... Match0 Final State
100
Match1 to State1........ Match2 to State3
101
Match2 Final State
110
Match2 to State1..... Match0 to Final State
111
Match2 has no affect, all other matches (M0,M1) to Final State