Hardware Interrupts
Thread Scheduling 4-17
Run State: This state is entered when you use a run command from the
debugger interface. CPU services all the interrupts, depending on the INTM
bit and the IER register value.
Figure 4-4. The Interrupt Sequence in the Run-time State
No
No
Yes
Yes
Interrupt request sent to CPU
Check INTM bit
Check IER bit
Clear corresponding IER bit
Empty pipeline
Increment and temporarily store PC
Fetch interrupt vector
Increment SP by 1
Perform automatic context save
Clear corresponding IER bit
Set INTM & DBGM, Clear loop,
EALLOW, IDLESTAT
Load PC with fetch vector
Execute interrupt service routine
Program continues