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
Bookmarks