AVR®: Using Timer Overflow IRQs
In this video:
- Timer-Counter overview and block diagram.
- Calculating the frequency of a timer-counter overflow.
- The slowest an 8-bit timer can overflow, running the CPU at 16 MHz.
- Register configuration to set up a 16-bit timer to overflow twice a second, including setting the timer prescalar and enabling the timer overflow IRQ.
- Adding AVR Libc header file for interrupts.
- Toggling the LED in the timer overflow Interrupt Service Routine.