
40
EPSON
S1C6S460 TECHNICAL MANUAL
CHAPTER 6: INPUT/OUTPUT PORTS
6.3 I/O Ports (Pxx)
6.3.1 Configuration of I/O ports
The S1C6S460 has 16 bits (4 bits
× 4, P00–P03, P10–P13, P20–P23, and P30–P33) general I/O ports built-in.
Figure 6.3.1.1 shows the configuration of the I/O port.
Data
bus
P
Address
Pull up control
register
VDD
Address
Data register
Address
I/O control
register
Address
Fig. 6.3.1.1 Configuration of I/O port
6.3.2 Mask option
The following by mask option may be selected for the I/O ports P00–P03, P10–P13, P20–P23, P30–P33.
(1) Output specification during output mode
Output specification (during output) for each I/O port may be selected as listed below. Two types of
output specification may be selected: complementary output and N channel (Nch) open drain output.
However, even if Nch open drain is selected, application on the terminal of voltage exceeding the
power current voltage is not permitted.
P00–P03: Complementary or Nch open drain (selected with the 4 bits group)
P10–P13: Complementary or Nch open drain (selected with the 4 bits group)
P20–P22: Complementary or Nch open drain (select in units of 1 bit)
P30–P33: Complementary or Nch open drain (select in units of 1 bit)
(2) Dedicated output port
The I/O ports P30–P33 may be set with the mask option as dedicated output ports.
This selection may be conducted by 1 bit.
6.3.3 I/O control register and input/output mode
When using an I/O port as Pxx (x = 0 to 3), input/output direction may be set by group, with 4 bits each
of Px0 to Px3 (x = 0 to 3) considered as one group. Modes can be set by writing input/output direction
data to the I/O control register corresponding I/O port group.
To set the input mode, "0" is written to the I/O control register. When an I/O port is set to input mode, it
becomes high impedance state and works as an input port.
The output mode is set when "1" is written to the I/O control register. When an I/O port set to output
mode works as an output port, it outputs a high level (VDD) when the data of output register is "1", and a
low level (VSS) when the data of output register is "0".
Setting of the I/O control register is not effective for the ports set as dedicated output through the mask
option.