
S1C6N3B0 TECHNICAL MANUAL
EPSON
29
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (I/O Ports)
IP0: Interrupt factor flag (0EDH D1)
This flag indicates the occurrence of an input interrupt.
When "1" is read: Interrupt has occurred
When "0" is read: Interrupt has not occurred
Writing: Invalid
IP0 is the interrupt factor flag corresponding to the input-only port input interrupt, and is set to "1" at the
falling edge of the signal input to the port that has been selected by mask option.
From the status of this flag, the software can decide whether an input interrupt has occurred.
This flag is reset when the software has read it.
Reading of interrupt factor flag is available at EI, but be careful in the following cases.
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an
interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not
be generated. Be very careful when interrupt factor flags are in the same address.
At initial reset, this flag is set to "0".
4.5.7 Programming notes
(1) When the I/O port is set to the output mode and a low-impedance load is connected to the port
terminal, the data written to the register may differ from the data read.
(2) When the I/O port is set to the input mode and the input level changed from low (VSS) to high (VDD)
through the built-in pull-up resistor, an erroneous input results if the time constant of the capacitive
load of the input line and the built-in pull-up resistor is greater than the read-out time. When the
input data is being read, the time that the input line is pulled up is equivalent to 0.5 cycles of the CPU
system clock. Hence, the electric potential of the terminals must settle within 0.5 cycles. If this condi-
tion cannot be met, some measure must be devised, such as arranging a pull-up resistor externally, or
performing multiple read-outs.
(3) Reading of interrupt factor flag is available at EI, but be careful in the following cases.
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an
interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will
not be generated. Be very careful when interrupt factor flags are in the same address.