What happens When Interrupt Occurs - Sequence of events - Embedded C Programming Questions
http://ingenuitydias.blogspot.com/2013/07/what-happens-whne-interrupt-occurs.html?m=0
Sequence of events:- Foreground code is running, interrupts are enabled
 - Interrupt event sends an interrupt request to the CPU
 - After completing the current instruction(s), the CPU begins the interrupt response
 - automatically saves current program counter
 - automatically saves some status (depending on CPU)
 - jump to correct interrupt service routine for this request
 - ISR code saves any registers and flags it will modify
 - ISR services the interrupt and re-arms it if necessary
 - ISR code restores any saved registers and flags
 - ISR executes a return-from-interrupt instruction or sequence
 - return-from-interrupt instruction restores automatically-saved status
 - return-from-interrupt instruction recovers saved program counter
 - Foreground code continues to run from the point it responded to the interrupt
 
More Embedded C Programming Questions And Suitable Answers:
Difference Between Process and Thread
Differences between Mutex And Semaphore
Unions-Why And When To Use
What is Storage class
Embedded C Basic Questions
C Programming Questions for Job Interview
Embedded C Programming Basic Questions for Job Interview
Data Declarations And qualifiers
Variables and Pointers Volatile Or Costant
Dangling and Wild Pointers
  

