InterruptPort please stop interrupting me! Help.....
#1
Posted 11 December 2010 - 08:26 PM
#2
Posted 11 December 2010 - 09:03 PM
#3
Posted 13 December 2010 - 12:29 AM
#4
Posted 13 December 2010 - 01:07 AM
Thanks I'll try thatI found that when using the tactile miniswitches, http://www.sparkfun.com/products/97 , if I add a 0.1 mF cap from the signal line to gnd and enable the pull-up resistor cleans up the interupts just fine.
#5
Posted 13 December 2010 - 01:08 AM
Tried #1, it didn't help much, I added software-based glitch filtering and that helped quite a bit, thanksHi Omar,
This sounds like "glitching," which is pretty common in buttons.
Two options:
1. Set the GlitchFilter property to true in the InterruptPort constructor.
2. If the built-in GlitchFilter doesn't offer enough debouncing, add a bit of extra circuitry to your button circuit to smooth things out. Or add in additional software-based glitch filtering (i.e. ignore any signals until they're stable for a millisecond or such).
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users