Concept Flow - Wake-up from sleep with interrupt
Start program
Setup interrupt
Enter sleep mode
Interrupt occurs?
No→Stay asleep
Yes
Wake up
Run interrupt code
Return to main loop or sleep
The program sets up an interrupt, then goes to sleep. When the interrupt triggers, it wakes up and runs the interrupt code.