
S1C6F567 TECHNICAL MANUAL
EPSON
39
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
4.6 I/O Ports (P00–P03, P10–P13, P20–P23 and P30–P33)
4.6.1 Configuration of I/O ports
The S1C6F567 has 16 bits general-purpose I/O ports. Figure 4.6.1.1 shows the configuration of the I/O
port.
Address
Data
register
Data
bus
PXX
Address
I/O control
register (IOC)
Pull-up control
register (PUL)
VDD
Fig. 4.6.1.1 Configuration of I/O port
The I/O port terminals P10 to P13 are shared with the serial interface input/output terminals. The P22
and P23 terminals are shared with the special output (CL, FR) terminals. The software can select the
function to be used.
At initial reset, these are all set to the I/O port.
Table 4.6.1.1 shows the setting of the input/output terminals by function selection.
Table 4.6.1.1 Function setting of input/output terminals
Terminal
name
P00–P03
P10
P11
P12
P13
P20
P21
P22
P23
P30–P33
Special output
Serial I/F
Terminal status
at initial reset
P00–P03 (Input & Pull-up)
P10 (Input & Pull-up)
P11 (Input & Pull-up)
P12 (Input & Pull-up)
P13 (Input & Pull-up)
P20 (Input & Pull-up)
P21 (Input & Pull-up)
P22 (Input & Pull-up)
P23 (Input & Pull-up)
P30–P33 (Input & Pull-up)
CL
P00–P03
P10
P11
P12
P13
P20
P21
CL
P23
P30–P33
Clk-sync. Master
P00–P03
SIN(I)
SOUT(O)
SCLK(O)
P13
P20
P21
P22
P23
P30–P33
Clk-sync. Slave
P00–P03
SIN(I)
SOUT(O)
SCLK(I)
SRDY(O)
P20
P21
P22
P23
P30–P33
FR
P00–P03
P10
P11
P12
P13
P20
P21
P22
FR
P30–P33
Async.
P00–P03
SIN(I)
SOUT(O)
P12
P13
P20
P21
P22
P23
P30–P33
When these ports are used as I/O ports, the ports can be set to either input mode or output mode indi-
vidually (in 1-bit unit). Modes can be set by writing data to the I/O control registers.
Refer to Section 4.11, "Serial Interface", for control of the serial interface.