AVR®: Using Timer Overflow IRQs
In this video:
- Overview of the timer-counter and block diagram.
- Calculate the frequency of a timer-counter overflow.
- Determine the slowest an 8-bit timer can overflow, running the CPU at 16 MHz.
- Register the configuration to set up a 16-bit timer to overflow twice a second, including setting the timer to prescalar and enabling the timer overflow IRQ.
- Add the AVR® Libc header file for interrupts.
- Toggle the LED in the timer overflow Interrupt Service Routine (ISR).