Skip to content

Commit

Permalink
read me file update
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymaker committed May 31, 2019
1 parent 88ca5df commit ed0248d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,30 @@ Microcontroller GPIO button interface library.

[Library files]

# Concept block
# Debounce concept

```
_______________________
Expected switch ________| |___________________
__________________
Actual switch ________|||||| ||||||___________
<----> <---->
^----Button glitches---^
______________________
Debounce Delay _________| |___________________
___________________
Actual switch ________||||| |||||_______________
<---> <--->
^---_Button glitches----^
_______________________
Debounce Delay ________| |___________________
applied
_______________________
Filter On-Off ______________| |_____________
Delay Applied <----> <---->
On delay-^ Off delay-^
Filter delay used for noise remove
```
+ Filter delay used for noise remove
```
______ _____
signal ______|__________ _|________| | |________
Noise-^------------^---------------^
signal ______|___________|_________| | |________
Noise-^-----------^----------------^
___ ___ ______ _
Debounce delay ______| |_______| |_____| |___| |________ NOT OK
signal
Expand Down
File renamed without changes
22 changes: 12 additions & 10 deletions sw-button-debounce/User-Library/button-debounce/button.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,24 @@
_______________________
Expected switch ________| |___________________
__________________
Actual switch ________|||||| ||||||___________
<----> <---->
^----Button glitches---^
______________________
Debounce Delay _________| |___________________
___________________
Actual switch ________||||| |||||_______________
<---> <--->
^---_Button glitches----^
_______________________
Debounce Delay ________| |___________________
applied
_______________________
Filter On-Off ______________| |_____________
Delay Applied <----> <---->
On delay-^ Off delay-^
Filter delay used for noise remove
```
+ Filter delay used for noise remove
```
______ _____
signal ______|__________ _|________| | |________
Noise-^------------^---------------^
signal ______|___________|_________| | |________
Noise-^-----------^----------------^
___ ___ ______ _
Debounce delay ______| |_______| |_____| |___| |________ NOT OK
signal
Expand Down

0 comments on commit ed0248d

Please sign in to comment.