On Thu, 5 Oct 2006 13:06:13 +0100, you wrote: >>Can I put the micro in Sleep or idle mode and use say TOCK0 >>input to accumulate pulses. Then use the watchdog time to >>wake the micro up to determine if it is time to send the >>accumulated pulses else go back to sleep ? You can do this with timer 1 in async. mode If you realy wanted to do it with tmr0, you could use the prescaler as a counter. Clear tmr0 (which clears the prescaler), go to sleep. Wake up, reassign the clock source to fosc, and wait to see how long it takes for TMR0 to change, which tells you how many counts the prescaler saw. A bit contrived but should be do-able if you have no other option. In practice if you have a timer1 (few pics don't), you probably don't need it for anything else in sleep (except maybe an RTC). Remember also that if using the INTRC osc, wake up from sleep is very fast, so you could use an INT or pin-change interrupt to count the pulses by waking up on each one. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist