??? 03/29/10 19:22 Read: times |
#174602 - a lot depends on the switches themselves Responding to: ???'s previous message |
Back in the old days, people used low-cost switches unless they could not avoid it. With keypads and keyboards, it was pretty important to have switches with very similar characteristics for the very reason that firmware scanning and, in fact, scanning in general, made this pretty critical because it was necessary in order to discriminate between overlapping bounces versus overlapping (multiple) keypresses, which had to be handled differently. Back then, when air was clean and sex was dirty, 20 ms was considered a reasonable debounce interval. If you can't get the manufacturer of your switches to provide reasonable estimates of contact bounce timing, you might want to look at one or two of them under "normal" operation, with a storage 'scope just to see how long it takes the contacts to settle.
If it's a long time, perhaps the RC circuit is warranted. How you apply it will have significant impact, too. It's worth noting that many keyboard scanners don't encode the keypress until it goes away. RE |
Topic | Author | Date |
switch input > interrupt (debouncing) | 01/01/70 00:00 | |
double post | 01/01/70 00:00 | |
Why the extra hardware? | 01/01/70 00:00 | |
wow | 01/01/70 00:00 | |
other ISR recommendation | 01/01/70 00:00 | |
or the other solution (my favorite) | 01/01/70 00:00 | |
using timer | 01/01/70 00:00 | |
Some switches have very long bounce time | 01/01/70 00:00 | |
a lot depends on the switches themselves | 01/01/70 00:00 | |
which is a $#@!! disaster | 01/01/70 00:00 | |
Remember that there is more than push buttons out there | 01/01/70 00:00 | |
What about the others? | 01/01/70 00:00 | |
Majority of implementations synchronizes with key down | 01/01/70 00:00 | |
Now I'm confused ... | 01/01/70 00:00 | |
Not Sure About The Code | 01/01/70 00:00 | |
More info on PC keyboard![]() | 01/01/70 00:00 | |
Short spikes | 01/01/70 00:00 | |
The real problem with debouncing | 01/01/70 00:00 |