EasyManua.ls Logo

Infineon Technologies TC1796 - 24.2.6.6 GTC-Algorithm

Infineon Technologies TC1796
2150 pages
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-131 V2.0, 2007-07
GPTA, V2.0
24.2.6.6 GTC-Algorithm
GTCk_Control_Logic() “to be performed every GPTA clock”
Capture(m)
if (GTCk.Cell_Enable) then
switch (GTCk.Mode)
case CAPTURE_T0:
Capture(0)
break
case CAPTURE_T1:
Capture(1)
break
case COMPARE_T0:
Compare(0)
break
case COMPARE_T1:
Compare(1)
endswitch
if ( (GTCk.One_Shot_Mode) and (GTCk.Event) ) then
GTCk.Cell_Enable = 0
endif
endif
Manage_Mux()
if (GTCk.Signal_Input) then
trig(GTCk.Service_Request_Trigger)
GTCk.X = GTm.Timer
GTCk.Event = 1
else
GTCk.Event = 0
endif
Ck.Event = 0

Table of Contents