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
Update Contact :
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email : Fajarudinsidik@gmail.com
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email: Fajarudinsidik@gmail.com
atau Kirimkan Private messanger melalui email dengan klik tombol order dibawah ini :