TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-127
V1.1, 2011-05
GPTA
®
v5, V1.14
Delayed_Filter()
if (FPCk.Filter_Clock[n]) then
if (FPCk.Timer >= FPCk.Compare_Value) then
if (FPCk.Compare_Value == 0) then //by-pass
if (FPCk.Signal_Output.Level != FPCk.Signal_Input[m]) then
generate pulse on FPCk.Signal_Output.Transition
FPCk.Signal_Output.Level = FPCk.Signal_Input[m]
FPCk.Signal_Filtered = FPCk.Signal_Output.Level
endif
else //delay time is over
generate pulse on FPCk.Signal_Output.Transition
FPCk.Signal_Output.Level = !FPCk.Signal_Output.Level
FPCk.Signal_Filtered = FPCk.Signal_Output.Level
endif
FPCk.Timer = 0
else
if (FPCk.Timer != 0) then //delay time is running
if (FPCk.Rising_Edge is detected) then //edge detection done at clock input
FPCk.Rising_Edge_Glitch = 1
else
if (FPCk.Falling_Edge is detected) then //edge detection done at clock input
FPCk.Falling_Edge_Glitch = 1
endif
endif
endif
if (FPCk.Signal_Output.Level != FPCk.Signal_Input[m])
then //expected level
FPCk.Timer ++
else //unexpected level
if (FPCk.Timer != 0) then
if (FPCk.Reset_Timer) then
FPCk.Timer = 0
else
FPCk.Timer --
endif
endif
endif
endif
endif
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...