??? 03/23/10 18:35 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#174443 - other ISR recommendation Responding to: ???'s previous message |
Joel Ward said:
I am simply asking the micro to set an ouput high, and poll (using a while loop) an input port pin until it returns low Another recommendation is to never put a loop in an ISR. I'd go with the timer interrupt as Erik suggested unless you need to wake up your mcu on a key press. |
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 |