Explain what happens when an interrupt occurs.
Sigiloso
- The current contents of registers are placed on the stack. - The current program address is placed on the stack. - The Interrupt Vector Table is checked to determine the source of the interrupt, and which Interrupt Service Routine it should go to. - At the end of the ISR, the interrupt flag must be cleared for normal operation to continue.