CHAPTER 10 INTERRUPT FUNCTIONS
User’s Manual U18172EJ2V0UD
174
Figure 10-8. Interrupt Request Acknowledgment Timing (When Interrupt Request Flag Is Set at Last
Clock During Instruction Execution)
Saving PSW and PC, jump
to interrupt servicing
8 clocks
Interrupt
servicing
program
Clock
CPU
Interrupt
NOP
MOV A, r
If an interrupt request flag (
××
IF) is set at the last clock of the instruction, the interrupt acknowledgment processing
starts after the next instruction is executed.
Figure 10-8 shows an example of the interrupt request acknowledgment timing for an interrupt request flag that is
set at the second clock of NOP (2-clock instruction). In this case, the MOV A, r instruction after the NOP instruction is
executed, and then the interrupt acknowledgment processing is performed.
Caution Interrupt requests will be held pending while the interrupt request flag register 0 (IF0) or
interrupt mask flag register 0 (MK0) are being accessed.
10.4.2 Multiple interrupt servicing
In order to perform multiple interrupt servicing in which another interrupt is acknowledged while an interrupt is
being serviced, the interrupt mask function must be used to mask interrupts for which a low priority is to be set.