| ??? 05/14/01 05:11 Read: times |
#11559 - RE: Timers&Counters |
Hi Anil,
I agree with both Steve and others. You sure need a debouncing wheather in sfotware or with hardware. But one thing is for sure, you cannot still avoid problem unless you pull the port up with a 10k resistor. Mind you without the pullup the port pin is floating which can pick any kind of noise causing false switching. So use a pull up and do a debouncing in the software I recommend. Don't spend extra on flip flop for such a trivial thing. (though not wrong) After the first switch contact detected by micro put it in a delay from 10 to 100 msec. all mechanical bouncing are know to have vanished during this long period depending on what kind of switch you are using. Also after pull up you don't have to connect the switch to +5V. Just the grounding would do. Happy counting Simon |
| Topic | Author | Date |
| Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
| RE: Timers&Counters | 01/01/70 00:00 | |
RE: Timers&Counters | 01/01/70 00:00 |



