
S1C6S460 TECHNICAL MANUAL
EPSON
41
CHAPTER 6: INPUT/OUTPUT PORTS
6.3.4 Pull up resistor
The common input/output ports can be selected through the software to apply pull up resistor in 4 bits
groups.
Selection of pull up resistor application is done by writing data to the pull up resistor control registers
(PUP0–PUP3).
6.3.5 Control of I/O ports
The control registers for the I/O ports are explained below.
Table 6.3.5.1 Control register of I/O ports
Address
Comment
Register
D3
D2
D1
D0
Name
Init
1
0
F60H
P00
R/W
P03
P02
P01
P00
X
I/O port (P00–P03)
High
Low
P01
P02
P03
F61H
P10
R/W
P13
P12
P11
P10
X
I/O port (P10–P13)
High
Low
P11
P12
P13
F62H
P20
P23
P22
P21
P20
X
I/O port (P20–P23)
High
Low
P21
P22
F63H
P30
R/W
P33
P32
P31
P30
X
I/O port / Dedicated output port (P33)
I/O port / Dedicated output port (P32)
I/O port / Dedicated output port (P31)
I/O port / Dedicated output port (P30)
High
Low
P31
P32
P33
P23
F7DH
IOC0
R/W
IOC3
IOC2
IOC1
IOC0
0
I/O control (P30–P33)
I/O control (P20–P23)
I/O control (P10–P13)
I/O control (P00–P03)
Output
Input
IOC1
IOC2
IOC3
F7EH
PUP0
R/W
PUP3
PUP2
PUP1
PUP0
0
I/O pull up resistor On/Off (P30–P33)
I/O pull up resistor On/Off (P20–P23)
I/O pull up resistor On/Off (P10–P13)
I/O pull up resistor On/Off (P00–P03)
Off
On
PUP1
PUP2
PUP3
IOC0, IOC1, IOC2, IOC3 (F7DH, R/W)
Input/output direction of I/O ports are set in units of 4 bits groups.
When "1" is written: Output mode
When "0" is written: Input mode
Reading: Valid
IOCx (I/O control register) and port group correspondence are as follows:
IOC0: P00–P03
IOC1: P10–P13
IOC2: P20–P23
IOC3: P30–P33
By writing "1" to IOCx (x = 0 to 3), the I/O ports in the corresponding group are placed in the output
mode, while writing "0" place them in the input mode.
At initial reset, IOCx are set to "0" and the I/O ports are all in the input mode.