
28
EPSON
S1C6N3B0 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (I/O Ports)
Reading
When "1" is read: High level
When "0" is read: Low level
The terminal voltage level of the I/O port is read. When the I/O port is in the input mode the voltage
level being input to the port terminal can be read; in the output mode the output voltage level can be
read. When the terminal voltage is high (VDD) the port data read is "1", and when the terminal voltage is
low (VSS) the data is "0".
When "1" is written to the PLON register, the built-in pull-up resistors go on and the I/O port terminals
are pulled up.
Note: 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.
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 condition cannot be met, some measure must be devised, such as arranging a
pull-up resistor externally, or performing multiple read-outs.
IOC: I/O control register (0FCH D0)
The input or output mode can be set with this register.
When "1" is written: Output mode
When "0" is written: Input mode
Reading: Valid
When "1" is written to the I/O control register, the I/O ports enter the output mode, and when "0" is
written, the I/O ports enter the input mode (except for the ports that are set as the serial interface ports or
input only).
At initial reset, this register is set to "0".
PLON: Pull-up control register (0FCH D1)
Controls the pull-up on/off.
When "1" is written: Pull-up ON
When "0" is written: Pull-up OFF
Reading: Valid
Turns the pull-up resistors built into the I/O ports on and off. (The pull-up resistor is supplemented to
the ports selected by mask option.)
When "1" is written to the PLON register, the I/O ports are pulled up.
This control is invalid when the I/O ports are set in the output mode (IOC = "1"). In the output mode, the
pull-up resistor is turned off even if the PLON register is set to "1".
At initial reset, this register is set to "0".
The pull-up resistor of the input-only port is always turned on regardless of the PLON setting.
EIP0: Interrupt mask register (0E9H D2)
Sets the mask for the input interrupt.
When "1" is written: Enabled
When "0" is written: Masked
Reading: Valid
Enables or masks the input interrupt of the input-only port set by mask option.
At initial reset, this register is set to "0".