EasyManua.ls Logo

Infineon Technologies TC1796 - 24.2.6.5 GT-Algorithm

Infineon Technologies TC1796
2150 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-130 V2.0, 2007-07
GPTA, V2.0
24.2.6.5 GT-Algorithm
GTm_Control_Logic() “to be performed every GPTA clock”
Variables
Input, Local, Output variables of the cell (I, L, O)
Global variables
if (GTm.Run) then
if (Event on GTm.Clock_In[p] selected by GTm.Clock_Mux) then
GTm.Timer ++
if (Overflow of GTm.Timer) then
GTm.Timer = GTm.Reload_Value
trig(GTm.Service_Request_Trigger)
endif
endif
endif
Name m = [0, 1] for GT
p = [0 to 7] for Clock Bus
Short
Name
(*)GT
Used
(ILO)
Comment
GTm.Clock_In[p] *CINmp I Input coming from clock bus
GTm.Timer_Greater_Equal_Comp TGEm O Timer is greater or equal
GTm.Timer_Event TEVm O Signal for timer change
GTm.Service_Request_Trigger *SQTm O Service request line
Name m = [0, 1] for GT Short
Name
(*)GT
Size
(bits)
Function
GTm.Run *RUNm 1 Enables timer
GTm.Scale_Compare *SCOm 4 Selects compare flag
GTm.Clock_Mux *MUXm 3 Selects clock from clock bus
GTm.Request_Enable *RENm 1 Allows a request when timer overflows
GTm.Timer *TIMm 24 Timer value
GTm.Reload_Value *REVm 24 Reload value when timer overflows

Table of Contents