Concept Flow - ISR best practices in Arduino
Interrupt Occurs
CPU Pauses Main Code
Jump to ISR Function
Execute ISR Quickly
Clear Interrupt Flag
Return to Main Code
Resume Main Code Execution
When an interrupt happens, the main program pauses, runs the ISR quickly, then resumes the main code.
