EasyManua.ls Logo

Infineon Technologies TC1796 - 24.2.6.7 LTC-Algorithm for Cells 0 to 62

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-137 V2.0, 2007-07
GPTA, V2.0
24.2.6.7 LTC-Algorithm for Cells 0 to 62
LTCk_Control_Logic() “to be performed every GPTA clock”
if (LTCk.Cell_Enable) then
switch (LTCk.Mode)
case TIMER_FREE_RUN:
LTCk.Reset_Timer_Bit = 0
Timer()
break
case TIMER_RESET:
if (LTCk.Event_In) then
LTCk.Reset_Timer_Bit = 1
endif
Timer()
break;
case CAPTURE:
Capture()
break
case COMPARE:
Compare()
break
endswitch
if ((LTCk.One_Shot_Mode) and (LTCk.Event)) then
LTCk.Cell_Enable = 0
endif
endif
Manage_Mux()

Table of Contents