2
-
6
CHAPTER2 SEQUENCE PROGRAMS
2
2.2 Sequ
ence Pr
ogram C
onfig
uration
2.2.3 I
nterr
upt progr
am
2.2.3 Interrupt program
(1) Definition
Interrupt program is a program from an interrupt pointer (I ) to the IRET instruction.
The interrupt pointer (I ) number varies depending on the interrupt factor. (
When an interrupt factor occurs, the interrupt program of the interrupt pointer number corresponding to that factor
is executed. (Interrupt programs are executed only when the corresponding interrupt factor occurs.)
Figure 2.7 Interrupt program
Figure 2.8 Interrupt program execution timing
FEND
EI
IRET
IRET
END
I0
I29
Main routine
program
Interrupt
program (I0)
Interrupt
program (I29)
Indicates the end
of the main routine
program.
Interrupt pointer
Main routine
program
Interrupt
program (I0)
Interrupt
program (I29)
Execution
Execution
Execution
Execution
Execution
IRET
IRET
Occurrence of the
interrupt factor for I0
Occurrence of the
interrupt factor for I29
Time