CHAPTER 7 INTERRUPT AND TEST FUNCTIONS
210
User’s Manual U10676EJ3V0UM
(6) Executing pending interrupt - interrupt occurs during interrupt service (INTBT has higher priority and
INTT0 and INTT2 have lower priority) -
Reset
EI IEBT
EI IET0
EI IET2
MOV A, #9
MOV IPS, A
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
INTT0
INTBT
<1>
<lNTBT servicing program>
<lNTT2 servicing program>
<4> RETI
RETI
<lNTT0 servicing program>
<3> RETI
INTT2
PUSH rp
.
.
.
.
.
.
.
POP rp
<Main program>
<2>
<1> If INTBT with a higher priority and INTT0 with a lower priority occur at the same time, the servicing of
the interrupt with the higher priority is started. (If there is no possibility that an interrupt with a higher
priority will occur while another interrupt with a higher priority is being serviced, DI IE
××
is not necessary.)
<2> If an interrupt with a lower priority occurs while an interrupt with a higher priority is being executed, the
interrupt with the lower priority is held pending.
<3> When the interrupt with the higher priority has been serviced, INTT0 with the highest priority of the
pending interrupts is executed.
<4> When the servicing of INTT0 has been completed, the pending INTT2 is serviced.