TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual
24-64
V2.0, 2007-07
GPTA, V2.0
•
GTC01 operates in Capture Mode at
rising
edge with enable-on-action set (EOA set)
and One Shot Mode enabled (OSM set).
•
GTC02 operates in Capture Mode at
falling
edge with enable-on-action set (EOA
set) and One Shot Mode enabled (OSM set).
•
GTC03 operates in Capture Mode at
rising
edge with enable-on-action set (EOA set)
and One Shot Mode enabled (OSM set).
With the compare event of GTC00 (time stamp), GTC01 becomes active and waits for
the next rising edge at its data input GTC01IN. While GTC01 is active, GTC02 and
GTC03 are inactive.
When GTC01 detects a rising edge at its data input, it captures the current GT0 value
into its GTCXR01 register, enables GTC02, and becomes disabled afterwards because
it was operating in One Shot Mode. When GTC02 detects a falling edge at its data input,
it captures the current GT0 value into its GTCXR02 register, enables GTC03, and
becomes disabled afterwards because it was operating in One Shot Mode. When
GTC03 detects a rising edge at its data input, it captures the current GT0 value into its
GTCXR03 register and becomes disabled afterwards because it was operating in One
Shot Mode. Optionally, the capture event at GTC03 may generate a service request to
indicate that the three capture events have occurred and the captured values can be
checked by software. Note that all of these capture events are executed by the GPTA
hardware without any software interactions and with a resolution of the GT0 clock rate.
Figure 24-48 Complex Input Signal Analysis/Capturing with GTCs
Don’t care
Don’t care
MCD05957
Data Input
GTCxIN
(x = 01,02,03)
GT0 Timer
Value
Timer
Value
GTCXR03.X
GTCXR02.X
GTCXR01.X
Time Stamp
Time
GTCXR00.X
GTC01 Active
GTC02 Active
GTC03 Active