3
- 12
3.1 Sequence Program
3.1.3 Interrupt programs
3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.1.3 Interrupt programs
(1) Definition of interrupt program
An interrupt program is a program section from an interrupt pointer (I ) to the IRET
instruction.
The interrupt factor varies depending on the interrupt pointer (I ) number.
(
When an interrupt factor occurs, the interrupt program of the interrupt pointer number
corresponding to that factor is executed. (The interrupt program is executed only
when the interrupt factor occurs.)
Figure 3.9 Interrupt programs
Figure 3.10 Interrupt program execution timing
FEND
EI
IRET
IRET
END
I0
I29
Main routine
program
I0 interrupt
program
I29 interrupt
program
Indicates end of
main routine
program.
Interrupt pointer
Main routine
program
I0 interrupt
program
I29 interrupt
program
Execution
Execution
Execution
Execution
Execution
IRET
IRET
Occurrence of
interrupt
corresponding to I0
Occurrence of
interrupt
corresponding to I29
Time