??? 03/04/08 07:51 Read: times |
#151853 - of course timer Responding to: ???'s previous message |
Chris Bertrand said:
Would I set a timer before the function entry or during the if part of the function. Yes, you should use a timer for debouncing and long/short detection. The timer should be free running, so it can be used for many other timed tasks. For key debouncing an interval of about 10ms would be nice. Following an example. Its written in C (AVR-GCC), so it can easy be adapt to the 8051: http://www.mikrocontroller.net/attachmen...7/C_TAST.C Peter |
Topic | Author | Date |
Dual function push button with timer in C? | 01/01/70 00:00 | |
Interrupt | 01/01/70 00:00 | |
No answer just another question: | 01/01/70 00:00 | |
Nothing really, just those two functions. | 01/01/70 00:00 | |
Dual Switch | 01/01/70 00:00 | |
Ah yes....that will do | 01/01/70 00:00 | |
discussed here | 01/01/70 00:00 | |
Triple Function Even Possible | 01/01/70 00:00 | |
of course timer![]() | 01/01/70 00:00 |