TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual
24-17
V2.0, 2007-07
GPTA, V2.0
Mixed Filter Modes
In the Mixed Filter Modes, one edge of a signal is filtered in the Delayed Debounce
Mode, and the other edge is filtered in the Immediate Debounce Mode. The Debounce
Mode is switched when the timer threshold is reached. Note that both filter modes use
the same timer threshold in this case (see
, demonstrating Delayed
Debounce Mode with Timer Decrement on Rising Edge and Immediate Debounce of on
Falling Edge).
Figure 24-10 FPC Mixed Filter Algorithm
The FPC Mixed Filter Modes are selected by:
•
FPCCTRk.MOD = 100
B
: Delayed Debounce Filter Mode on rising edge
Immediate Debounce Filter Mode on falling edge
•
FPCCTRk.MOD = 101
B
: Immediate Debounce Filter Mode on rising edge
Delayed Debounce Filter Mode on falling edge
MCT05919
Timer Threshold
Total Signal Delay
Edge Inhibition
must be cleared
by software
Signal Input
SINk
Timer Value
FPCCTRk.TIM
Level Output
SOLk
FPCSTAT.FEGk
FPCSTAT.REGk