It Works - Timer Interrupts instead of micros () - Arduino Forum
The TimerCounter 1 Interrupt Flag Register (TIFR1) is where the hardware keeps track of pending interrupts. In a bit of hardware magic, you WRITE A 1 BIT TO a flag (OCF1A or OCF1B) to turn it OFF. It shouldnt be necessary in this case but its good practice to do that before you start the timer by writing to the clock select bits in TCCR1B.
more
|