Hi all,
I am designing a fairly simple microcontroller-based system with about 5 momentary pushbuttons triggering interrupts. I haven't ordered my parts yet, so I was wondering: what kind of circuit do I need to debounce the pushbuttons?
I thought that shunting a capacitor between the button output and ground would do just fine, but what happens when the pushbutton is released? Does that pin stay high, or does the capacitor discharge through the microcontroller pin? I would like the pin to go low as quickly as possible.
Thanks,
Mike
I am designing a fairly simple microcontroller-based system with about 5 momentary pushbuttons triggering interrupts. I haven't ordered my parts yet, so I was wondering: what kind of circuit do I need to debounce the pushbuttons?
I thought that shunting a capacitor between the button output and ground would do just fine, but what happens when the pushbutton is released? Does that pin stay high, or does the capacitor discharge through the microcontroller pin? I would like the pin to go low as quickly as possible.
Thanks,
Mike