![](http://datasheet.mmic.net.cn/380000/-PD789830_datasheet_16744982/-PD789830_172.png)
CHAPTER 13 INTERRUPT FUNCTIONS
172
Figure 13-15. Interrupt Request Acceptance Timing (Example of MOV A,r)
If an interrupt request flag (
××
IF) is set before an instruction clock n (n = 4 to 10) under execution becomes n
1,
the interrupt is accepted after the instruction under execution completes. Figure 13-15 shows an example of the
interrupt request acceptance timing for an 8-bit data transfer instruction MOV A,r. Since this instruction is executed
for 4 clocks, if an interrupt occurs for 3 clocks after the execution starts, the interrupt acceptance processing is
performed after the MOV A,r instruction is completed.
Figure 13-16. Interrupt Request Acceptance Timing (When Interrupt Request Flag Is Generated at the Last
Clock During Instruction Execution)
If an interrupt request flag (
××
IF) is set at the last clock of the instruction, the interrupt acceptance processing
starts after the next instruction is executed.
Figure 13-16 shows an example of the interrupt acceptance 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 acceptance processing is performed.
Caution
Interrupt requests are reserved while interrupt request flag registers 0 or 1 (IF0 or IF1) or
interrupt mask flag register 0 or 1 (MK0 or MK1) is being accessed.
13.4.3 Multiplexed interrupt processing
Multiplexed interrupt processing in which another interrupt is accepted while an interrupt is processed can be
processed by priority. When two or more interrupts are generated at once, interrupt processing is performed
according to the priority assigned to each interrupt request in advance (see
Table 13-2
).
Saving PSW and PC, Jump
to Interrupt Processing
8 Clocks
Interrupt
Processing
Program
Clock
CPU
Interrupt
NOP
MOV A,r
Clock
CPU
Interrupt
MOV A,r
Saving PSW and PC, Jump
to Interrupt Processing
8 Clocks
Interrupt Processing Program