Concept Flow - Timer interrupt for periodic tasks
Start Timer
Timer counts up
Timer reaches compare value
Interrupt triggered
Interrupt Service Routine (ISR) runs
Perform periodic task
Clear interrupt flag
Return to main program
↩Back to Timer counts up
The timer counts up until it reaches a set value, triggering an interrupt that runs a special function to perform tasks periodically, then clears the interrupt and continues.