Hi,
For pulsin,
You also can play with the internal oscillator ... if your chip, like the 16F88 has a configurable internal osc ...
use the " classic " 4 or 8 Mhz speed, and switch, on the fly, to 31 Khz or 125 Khz ... just changing osccon IRCF bits, when needed ...
note the BUTTON command can be configured to have a 250ms debounce time ( DEFINEs ...) ... 8 x 250 ms make 2 seconds.
which is much, much simpler !!! ( matches Bruce's idea ...)
Alain
Last edited by Acetronics2; - 9th March 2010 at 17:17.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks