
76
EPSON
S1C6S460 TECHNICAL MANUAL
CHAPTER 11: INTERRUPT AND HALT
11.1 Interrupt Factor Flag and Interrupt Mask
The corresponding interrupt factor flag is set to "1" with the individual interrupt element.
If the following conditions exist, interrupt for the CPU occurs when the interrupt factor flag is set to "1".
The corresponding interrupt mask register is set at "1" (enable).
The interrupt flag is set at "1" (EI).
The interrupt factor flag is reset to "0" at the read-only register by reading the data.
Be sure that the interrupt factor flag reading is done with the interrupt in the DISABLE state (DI). Read-
ing the interrupt factor flag while in the ENABLE state (EI) may cause malfunction.
At initial reset, the interrupt factor flag is reset to "0".
The interrupt can be masked by the corresponding interrupt mask register.
The interrupt mask register is a register capable of read/write operation; by writing "1", it is enabled
(interrupt is allowed) and by writing "0", it is masked (interrupt is prohibited).
Be sure that writing to the interrupt mask register is done with the interrupt in the DISABLE state (DI).
Writing to the interrupt mask register while in the ENABLE state (EI) may cause malfunction.
At initial reset, the interrupt mask register is set to "0".
The interrupt factor flag is set to "1" by interrupt factor even if the interrupt is masked. (The input
interrupt factor flags IK0 and IK1 will be eliminated.)
Table 11.1.1 shows the correspondence between interrupt factor flags and interrupt mask registers.
Table 11.1.1 Interrupt factor flags and interrupt mask registers
Interrupt factor
Interrupt factor flag
Interrupt mask register
Falling edge of clock timer (1 Hz)
IT1 (F00H [D3])
EIT1 (F10H [D3])
Falling edge of clock timer (2 Hz)
IT2 (F00H [D2])
EIT2 (F10H [D2])
Falling edge of clock timer (8 Hz)
IT8 (F00H [D1])
EIT8 (F10H [D1])
Falling edge of clock timer (32 Hz)
IT32 (F00H [D0])
EIT32 (F10H [D0])
Overflow of stopwatch timer (SWH) (1 Hz)
ISW1 (F01H [D1])
EISW1 ( F11H [D1])
Overflow of stopwatch timer (SWL) (10 Hz)
ISW0 (F01H [D0])
EISW0 ( F11H [D0])
No matching between input ports (K00–K03)
IK0 (F04H [D0])
EIK03 (F14H [D3])
and input relation registers (DFK00–DFK03)
EIK02 (F14H [D2])
EIK01 (F14H [D1])
EIK00 (F14H [D0])
Falling edge of input ports (K10–K13)
IK1 (F05H [D0])
EIK13 (F15H [D3])
EIK12 (F15H [D2])
EIK11 (F15H [D1])
EIK10 (F15H [D0])
Data (8 bits) input/output of serial interface has completed
ISIO (F03H [D0])
EISIO (F13H [D0])
Counter value of programmable timer = 00H
IPT (F02H [D0])
EIPT (F12H [D0])