Hi Freaks,
I am trying to stop timer 1 in the ISR, do some work and then start timer 1 again at the end of ISR; something along these lines:
ISR(TIMER1_COMPA_vect) { //disable timer 1 do_some_work(); //enable timer 1 }
I want the timer to resume counting only after the do_some_work() function has finished. How can I disable and then re-enable the timer?
Thanks