S12S Debug Module (S12SDBGV2)
6.5.4
Scenario 3
A trigger is generated immediately when one of up to 3 given events occurs
Figure 6-31. Scenario 3
SCR1=0000
M012
Final State
State1
Scenario 3 is possible with S12SDBGV1 SCR encoding
6.5.5
Scenario 4
Trigger if a sequence of 2 events is carried out in an incorrect order. Event A must be followed by event B
and event B must be followed by event A. 2 consecutive occurrences of event A without an intermediate
event B cause a trigger. Similarly 2 consecutive occurrences of event B without an intermediate event A
cause a trigger. This is possible by using CompA and CompC to match on the same address as shown.
Figure 6-32. Scenario 4a
M0
SCR2=0011
SCR1=0100
State2
M0
State1
M2
M1
M1
Final State
State 3
SCR3=0001
M1
This scenario is currently not possible using 2 comparators only. S12SDBGV2 makes it possible with 2
comparators, State 3 allowing a M0 to return to state 2, whilst a M2 leads to final state as shown.
Figure 6-33. Scenario 4b (with 2 comparators)
M0
SCR2=1100
SCR1=0110
State2
M01
State1
M0
M2
M2
M1 disabled in
range mode
Final State
State 3
SCR3=1110
M2
The advantage of using only 2 channels is that now range comparisons can be included (channel0)
S12P-Family Reference Manual, Rev. 1.13
Freescale Semiconductor
191