Enable, Disable and End Interrupt Program
Enable, Disable and End Interrupt: EI, DI, GEI, GDI, IRET
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
EI, DI | n | - | - | - | - | - | - | - | - | - | - | - | - | o | 1 | - | - | - |
GEI, GDI | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | - | - | - |
IRET | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | - | - | - |
Functions
EI
Enables the Interrupt ID program assigned to n to operate its Time Driven Interrupt.
The Interrupt set up by a parameter can be operated after this instruction is executed.
When converted to RUN Mode, an interrupt program is in the DI (Disable Interrupt) status.
To use an interrupt program, the GEI should be executed and then the EI should be executed.
DI
Disables the Interrupt ID program assigned to n to stop its Time Driven Interrupt.
After this instruction is operated, the Interrupt ID program assigned to n will not be executed.
GEI
Enables all the programs (that are assigned to interrupt) to operate their Time Driven Interrupt.
The interrupt set up by a parameter can be operated after this instruction is operated.
When converted to RUN Mode, all interrupt programs are in the DI (Disable Interrupt) status.
To use all the interrupt program routines, the GEI should be executed.
GDI
Disables all the Time Driven Interrupts.
After this instruction is operated, all the interrupt ID program routines will not be executed.
IRET
Displays the end of an interrupt program.
Used in the interrupt program specifically assigned to Time Driven Interrupt.