You could increment a couter variable in your interrupt, and just disable the interrupt after x number of counts.
The big problem however is with Timer1. It stops working during sleep since the oscillator is shut off in sleep. You would need to setup Timer1 with an external oscillator for it to run during sleep periods.




Bookmarks