
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
S1C60N09 TECHNICAL MANUAL
EPSON
19
4.5 I/O Ports (P00–P03, P10–P13)
4.5.1 Configuration of I/O port
The S1C60N09 Series has 8 bits of general-purpose I/O ports. Figure 4.5.1.1 shows the configuration of
the I/O port. Each 4-bit I/O port (P00–P03 and P10–P13) can be set to either input mode or output mode
by writing data to the I/O control register.
Address
Register
Input
control
I/O control
register
(IOC)
Data
bus
Pxx
Vss
Fig. 4.5.1.1 Configuration of I/O port
4.5.2 I/O control register and I/O mode
Input or output mode can be set for each 4-bit I/O port (P00–P03, P10–P13) by writing data to the I/O
control register (IOC0, IOC1).
To set the input mode, write "0" to the I/O control register. When an I/O port is set to input mode, it
becomes high impedance status and works as an input port. However, the input line is pulled down
when input data is read.
The output mode is set when "1" is written to the I/O control register. When an I/O port is set to output
mode, it works as an output port. The port terminal goes high (VDD) when the port output data is set to
"1", and goes low (VSS) when the port output data is set to "0".
After an initial reset, the I/O control registers are set to "0", and the I/O ports enter the input mode.
4.5.3 Mask option
The output specification during output mode (IOCx = "1") of the I/O port can be set with the mask option
for either complementary output or Pch open drain output. This setting can be performed for each bit of
the I/O port. However, when Pch open drain output has been selected, voltage in excess of the supply
voltage must not be applied to the port.