Reverse the question: How much bouncing can I stand on an interrupt line?How subject to bouncing are momentary push-button switches when referring to causing an interrupt?
I have the same idea with you. Great! Thanks for sharing.Hi,
You could implement a debounce by adding a delay after the switch is pressed. I usually use 40ms delay in software.
detect state change on an input (switch push)why not just do the debounce in software?
Yep, that's the idea. A delay of 40 ms is a bit long. You may consider something like 10 ms after reading the Ganssle paper. The project I posted here for a Capacitor Discharge Welder uses 10 ms, and the code is there for a 12FXXX chip.detect state change on an input (switch push)
goto a delay
wait 40ms
return
??? keep in mind I'm paraphrasing