TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-126
V1.1, 2011-05
GPTA
®
v5, V1.14
21.3.6
Pseudo Code Description of GPTA
®
v5 Kernel Functionality
This section describes the functional algorithms of the GPTA
®
v5 cells in a pseudo code
language.
21.3.6.1 FPC Algorithm
FPCk_Control_Logic() “to be performed every GPTA
®
v5 clock”
switch (FPCk.Mode)
case PRESCALER_RISING:
if (FPCk.Rising_Edge) then
Prescaler()
endif
break
case PRESCALER_FALLING:
if (FPCk.Falling_Edge) then
Prescaler()
endif
break
case DELAYED_FILTER_BOTH:
Delayed_Filter()
break
case IMMEDIATE_FILTER_BOTH:
case IMMEDIATE_FILTER_RISING:
case IMMEDIATE_FILTER_FALLING:
Immediate_Filter()
break
case MIXED_FILTER_RISING_DELAYED:
if (FPCk.Signal_Filtered == 0) then
Delayed_Filter()
else
Immediate_Filter()
endif
break
case MIXED_FILTER_RISING_IMMEDIATE:
if (FPCk.Signal_Filtered == 0) then
Immediate_Filter()
else
Delayed_Filter()
endif
break
endswitch
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...