
<
2
.75
7UGT U/CPWCN
+PVGTTWRVU
=L/2*
7/<:
Figure 4-9. Interrupt Vector Table Location
Nesting of Vectored Interrupts
Nesting vectored interrupts allows higher priority requests to interrupt a lower priority request. To initiate
vectored interrupt nesting, perform the following steps during the interrupt service routine:
PUSH
the old
IMASK
on the stack.
Load
IMASK
with a new mask to disable lower priority interrupts.
Execute an
EI
instruction.
Proceed with interrupt processing.
Execute a
DI
instruction after processing is complete.
Restore the
IMASK
to its original value by
POP
ing the previous mask from the stack.
Execute
IRET
.
Depending on the application, some simplification of the above procedure may be possible.
Vector Selected By Priority Logic
0020H
Program Memory
Interrupt Service Routine
Interrupt Vector Table
0000H
FFFFH
Old PC Value