??? 06/02/15 06:41 Read: times |
#190512 - the code you mentioned is from a very old thread from 8052.c Responding to: ???'s previous message |
the code you mentioned is from a very old thread from 8052.com
http://www.8052.com/forum/read/57958 dated from 2003 you have to completely enroll to the thread from the first to the last answer there. That thead started with a <<puzzle>> from Micahel Karas asking for Sometimes an 8051/8051 microcontroller may need to monitor and debounce filter a multiple of inputs ... http://www.8052.com/forum/read/57921 this is a clever way to debounce multiple inputs, but I prefer the more robust method of majority vote, where every input is sampled for state and transition (timer based) and at a predefined number of samples (or a sliding window) the final status (state/transition) is determined by simple and strict rules according to the need of the application. |
Topic | Author | Date |
Timer 0 ISR for Switch Debounce | 01/01/70 00:00 | |
I guess | 01/01/70 00:00 | |
Yes it is enabled in MAIN. Though not shown ! | 01/01/70 00:00 | |
unsigned < 0 | 01/01/70 00:00 | |
:^) | 01/01/70 00:00 | |
P1TempState init and update | 01/01/70 00:00 | |
Sorry about the delay... | 01/01/70 00:00 | |
the code you mentioned is from a very old thread from 8052.c | 01/01/70 00:00 | |
Thanks to you and Michael Karas !! | 01/01/70 00:00 | |
You are welcome!! | 01/01/70 00:00 | |
Old Stuff | 01/01/70 00:00 |