
S1C6N3B0 TECHNICAL MANUAL
EPSON
25
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (I/O Ports)
4.5 I/O Ports (P00–P03)
4.5.1 Configuration of I/O port
The S1C6N3B0 Series has 4 bits of general-purpose I/O ports. Figure 4.5.1.1 shows the configuration of
the I/O ports. The four bits of the I/O ports P00–P03 can be set to either input mode or output mode by
writing data to the I/O control register (IOC).
Furthermore, the I/O port that is selected by mask option can generate input interrupts.
Address
Data
register
Data
bus
P
Address
I/O control
register (IOC)
Pull-up control
register (PLON)
Mask option
VDD
Fig. 4.5.1.1 Configuration of I/O port
Note: The I/O port terminals (P00–P03) are shared with the input/output terminals of the serial interface
and the terminals that are not used for the serial interface can only be used as general-purpose I/O
ports or input-only ports. This section explains only the control of the I/O port and input-only port.
4.5.2 Mask option
The following specifications of the I/O port can be selected by mask option:
(1) Terminal configuration
The terminal functions can be selected. The terminal configuration varies according to the serial
interface setting.
Table 4.5.2.1 Terminal configuration of P00–P03
No.
1
2
3
4
5
6
7
P00
I/O
SIN
P01
I/O
SOUT
I/O
P02
I/O
SCLK
P03
I/O
I
SRDY
I/O
I
I/O
I
No.
8
9
10
11
12
13
14
P00
SIO
P01
MODE
I/O
I
I/O
P02
SCLK
P03
SRDY
I/O
I
SRDY
I/O
I
I/O: I/O port terminal (input interrupt is disabled)
I:
Input-only terminal (input interrupt is enabled)
SIN, SOUT, SIO, SCLK, SRDY, MODE: Terminal for serial interface
See Section 4.9, "Serial Interface", for the serial interface terminals.
(2) Output specifications
The output specification during output mode (IOC = "1") of the I/O port can be set with the mask
option for either complementary output or Nch open drain output. This setting can be performed for
each bit of the I/O port. However, when Nch open drain output has been selected, voltage in excess of
the supply voltage must not be applied to the port.