TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual
24-65
V2.0, 2007-07
GPTA, V2.0
Complex Periodic Output Signal Generation
This application example uses the GT/GTC configuration as shown in
. The
generated output signal is available at GTC03OUT. The GTC input signals of the
GT/GTC configuration are not used in this example.
•
GT0 operates as free-running up-counting 24-bit timer with reload to GTREV0.REV
on overflow. It is clocked by a clock signal from the clock bus. Its reload period
determines the period of the generated PWM output signal.
•
GTC00 operates in Compare Mode with timer GT0 with enable-on-action set (EOA
set) and One Shot Mode enabled (OSM set). Furthermore, the output GTC03OUT
becomes
set
on a local event (OCM = X11
B
).
•
GTC01 operates in Compare Mode with timer GT0 with enable-on-action set (EOA
set) and One Shot Mode enabled (OSM set). Furthermore, the output GTC03OUT
becomes
reset
on a local event (OCM = 110
B
).
•
GTC02 operates in Compare Mode with timer GT0 with enable-on-action set (EOA
set) and One Shot Mode enabled (OSM set). Furthermore, the output GTC03OUT
becomes
set
on a local event (OCM = 111
B
).
•
GTC03 operates in Compare Mode with timer GT0 with enable-on-action set (EOA
set) and One Shot Mode enabled (OSM set). Furthermore, the output GTC03OUT
becomes
reset
on a local event (OCM = 110
B
).
Figure 24-49 Complex Output Signal Generation with GTCs
MCD05958
GT0 Timer
Value
Timer
Value
Start of
Time Period
Time
FFFFFF
H
GTC00 Active
GTC01 Active
GTC02 Active
GTC03 Active
Data Output
GTC03OUT
GTCXR03.X
GTCXR02.X
GTCXR01.X
GTCXR00.X
GTREV0.REV