EasyManua.ls Logo

Infineon Technologies TC1796 - Page 1793

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-138 V2.0, 2007-07
GPTA, V2.0
Timer()
if ( (LTCk.X == 0xFFFF) and (LTCk.X_Write_Access) ) then
//above condition is also true for timer overflow or software reset
trig(LTCk.Service_Request_Trigger)
LTCk.Event = 1
else
LTCk.Event = 0
endif
if (LTCk.Signal_Input) then
if (LTCk.Reset_Timer_Bit) then //timer must be reset
LTCk.Reset_Timer_Bit = 0
LTCk.X = 0xFFFF
if (LTCk.Coherent_Update_Enable) then
LTCk.Select_Line_Value = !LTCk.Select_Line_Value
LTCk.Coherent_Update_Enable = 0
endif
else //timer runs normally
LTCk.X ++
endif
endif
LTCk.Event_Out = LTCk.Event

Table of Contents