Figure 25-8. Edge Detection with Asynchronous Stability Debouncing
C
LK_RTC
CLK_RTC_DEB
IN
OUT
Once a new edge is detected, ignore subsequent edges
until input is stable for 4 consecutive CLK_RTC_DEB
NE
NE
PE
TAMLVL=0
CLK_RTC
CLK_RTC_DEB
IN
OUT
Once a new edge is detected, ignore subsequent edges
until input is stable for 4 consecutive CLK_RTC_DEB
NE
NE
PE
TAMLVL=1
PE
NE
PE
PE
NE
PE
Figure 25-9. Edge Detection with Majority Debouncing
1
0
0
1
1
0
1
1
1
1
1
1
0
1
1
1
0
1
1
1
0
CLK_RTC
CLK_RTC_DEB
IN
IN shift 0
IN shift 1
IN shift 2
MAJORITY3
OUT
CLK_RTC
CLK_RTC_DEB
IN
IN shift 0
IN shift 1
IN shift 2
MAJORITY3
OUT
1
1
1
0
1
1
1
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
TAMLVL=1
TAMLVL=0
0-to-1 transition
1-to-0 transition
NE
NE
PE
PE
NE
PE
0
0
0
1
1
1
1
1
1
1
0
0
1
1
0
1
1
1
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
NE
NE
PE
PE
NE
PE
0
0
0
1
1
1
1
1
1
Related Links
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
343