The scenario
Designing firmware for a PIC 16F887 where an external pushbutton triggers an interrupt to cycle through multiple LED patterns.
What is in this drawing
Read the decisions behind it.
01
Which LED pattern is active upon interrupt?
02
How to manage context saving and flag clearing safely?
When developing interrupt service routines for microcontrollers that require state-dependent output changes.
More like this