EasyManua.ls Logo

Infineon Technologies TC1796 - Page 1795

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-140 V2.0, 2007-07
GPTA, V2.0
Manage_Mux()
if ( (LTCk.Mode == TIMER_FREE_RUN) or (LTCk.Mode == TIMER_RESET) ) then
LTCk.Y_Out = LTCk.X
if (the timer has been modified) then //increment, reset, software overwrite
LTCk.Timer_Event_Out = 1
else
LTCk.Timer_Event_Out = 0
endif
LTCk.Select_Out = LTCk.Select_Line_Value
else //capture mode or compare mode
LTCk.Y_Out = LTCk.Y_In
LTCk.Timer_Event_Out = LTCk.Timer_Event_In
LTCk.Select_Line_Value = LTCk.Select_In
LTCk.Select_Out = LTCk.Select_In
endif
if (LTCk.Event) then //local event
Set_Data_Out(LTCk.Output_Control_Mode.[1:0])
if (!LTCk.Bypass) then //no bypass
LTCk.Output_Mode_Out = LTCk.Output_Control_Mode.[1:0]
else
if (LTCk.Output_Control_Mode.2) then //bypass, input link enabled
LTCk.Output_Mode_Out = LTCk.Output_Mode_In
else //bypass, input link disabled
LTCk.Output_Mode_Out = 00
B
endif
endif
else //no local event
if (LTCk.Output_Control_Mode.2) //input link enabled
Set_Data_Out(LTCk.Output_Mode_In)
LTCk.Output_Mode_Out = LTCk.Output_Mode_In
else //input link disabled
Set_Data_Out(00
B
)
LTCk.Output_Mode_Out = 00
B
endif
endif
if ( (LTCk.Enable_Of_Action) and
((LTCk.Output_Mode_In.1) or (LTCk.Output_Mode_In.0)) ) then //enable condition
LTCk.Cell_Enable = 1
LTCk.Enable_Of_Action = 0
endif

Table of Contents