TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-136 V2.0, 2007-07
GPTA, V2.0
Global variables
Name k = [0 to 31] for GTC Short
Name
(*)GTC
Size
(bits)
Comment
GTCk.Mode *MODk 2 Operation mode:
CAPTURE_T0,
CAPTURE_T1,
COMPARE_T0,
COMPARE_T1
GTCk.One_Shot_Mode *OSMk 1 One shot mode
GTCk.Request_Enable *RENk 1 Allows a request on event
GTCk.Input_Rising_Edge_Select
(Capture Mode)
GTCk.Greater_Equal_Select
(Compare Mode)
*REDk
*GESk
1
1
Selects rising edge of input pin
Selects >= Compare Mode
GTCk.Input_Falling_Edge_Select
(Capture Mode)
GTCk.Capture_After_Compare
(Compare Mode)
*FEDk
*CACk
1
1
Selects falling edge of input pin
Selects capture after compare
GTCk.Capture_Alternate_Timer
(Compare Mode)
*CATk 1 Capture alternate global timer after
compare
GTCk.Bypass *BYPk 1 Local events bypassed for output
link
GTCk.Enable_Of_Action *EOAk 1 Enables cell on action
communicated via link
GTCk.Cell_Enable *CENk 1 Cell enable state
GTCk.Output_Control_Mode *OCMk 3 Output control mode
GTCk.Output_Immediate_Action *OIAk 1 Forces immediate action
GTCk.Output_State *OUTk 1 Read value of Data_Out
GTCk.X *Xk 24 Capture/Compare value