AVR®: Using Timer Compare Match IRQs
In this video:
- Change timer mode to Clear Timer on Compare Match (CTC) mode.
- Enable Compare Match IRQ.
- Update the interrupt vector efficiently (from timer overflow to CTC match on channel A).
- Write a generic function to overflow the timer at a given frequency.