Chapter 24 Cross Triggering Unit (CTU)
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
613
Figure 24-4. TGS in sequential mode
An example timing diagram for TGS in sequential mode is shown in
. The red arrows indicate
the MRS occurrences and ES occurrences, while the black arrows indicate the trigger event occurrences
with the relevant delay in respect to the ES occurrence. The first red arrow indicates the first ES
occurrence, which is also the MRS.
Figure 24-5. Example timing for TGS in sequential mode
24.3.5
TGS counter
The TGS counter is able to count from negative to positive, that is, from 0x8000 to 0x7FFF.
shows examples in order to explain the TGS counter counts. The compare operation to stop the TGS
counter is not enabled during the first counting cycle, in order to allow the counting, if the value of the
TGSCRR is the same as the value of the TGSCCR.
CTU Clock (as PWM)
EXT_IN
ETIMER0_IN
PWM_REL
PWM_ODD_
x
PWM_EVEN_
x
RPWM_
x
In
dividua
l i
nput
s sele
ct
ion
(r
ising/
fa
lling/
bot
h edge
s)
Master
Rel
oad
Master Reload Signal (MRS)
Triggers Compare Registers
(double-buffered)
Comparators
TGS Counter Compare Register
TGS Counter Comparator
TGS Counter STOP Signal
TGS Counter
TGS Counter Reload Register
Prescaler (1, 2, 3, 4)
Input Selection
32-bit Register
Master Reload Selection
(5 bits in TGS Control Register)
OR
S
e
lection
Mux
Event Signal
3-bit Counter
Clock (ES)
Reset (MRS)
Delay T
0
Delay T
2
Delay T
3
Delay T
1