What happens When Interrupt Occurs - Sequence of events - Embedded C Programming Questions

Sequence of events:
  1. Foreground code is running, interrupts are enabled
  2. Interrupt event sends an interrupt request to the CPU
  3. After completing the current instruction(s), the CPU begins the interrupt response
  4. automatically saves current program counter
  5. automatically saves some status (depending on CPU)
  6. jump to correct interrupt service routine for this request
  7. ISR code saves any registers and flags it will modify
  8. ISR services the interrupt and re-arms it if necessary
  9. ISR code restores any saved registers and flags
  10. ISR executes a return-from-interrupt instruction or sequence
  11. return-from-interrupt instruction restores automatically-saved status
  12. return-from-interrupt instruction recovers saved program counter
  13. 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

Related

micro-controller 4188590207124408606

Post a Comment

SPAMMING will not be Appreciated.

emo-but-icon

Hot in week

Recent

Comments

Our Channel

Contact Us

Name

Email *

Message *

Follow by Email

item