
42
EPSON
S1C63808 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
Table 4.6.5.1(b) Control bits of I/O ports
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
FF4AH
P23
P22
P21
P20
R/W
P23
P22
P21
P20
– 2
High
Low
P23 I/O port data
functions as a general-purpose register when SIF2 (slave) is selected
P22 I/O port data (ESIF2=0)
functions as a general-purpose register when SIF2 is selected
P21 I/O port data (ESIF2=0)
functions as a general-purpose register when SIF2 is selected
P20 I/O port data (ESIF2=0)
functions as a general-purpose register when SIF2 is selected
FF4CH
IOC33
IOC32
IOC31
IOC30
R/W
IOC33
IOC32
IOC31
IOC30
0
Output
Input
P30–P33 I/O control register
FF50H
IOC43
IOC42
IOC41
IOC40
R/W
IOC33
IOC32
IOC31
IOC30
0
Output
Input
P40–P43 I/O control register
FF4DH
PUL33
PUL32
PUL31
PUL30
R/W
PUL33
PUL32
PUL31
PUL30
1
On
Off
P30–P33 pull-down control register
FF4EH
P33
P32
P31
P30
R/W
P33
P32
P31
P30
– 2
High
Low
P30–P33 I/O port data
FF51H
PUL43
PUL42
PUL41
PUL40
R/W
PUL43
PUL42
PUL41
PUL40
1
On
Off
P40–P43 pull-down control register
FF52H
P43
P42
P41
P40
R/W
P43
P42
P41
P40
– 2
High
Low
P40–P43 I/O port data
0
Clk-sync. master
2
Async. 7-bit
1
Clk-sync. slave
3
Async. 8-bit
[SMD11, 10]
Mode
[SMD11, 10]
Mode
FF64H
0
SMD11 SMD10
ESIF1
RR/W
0 3
SMD11
SMD10
ESIF1
– 2
0
0SIF
I/O
Unused
Serial I/F 1
mode selection
Serial I/F 1 enable (P1x port function selection)
0
Clk-sync. master
2
Async. 7-bit
1
Clk-sync. slave
3
Async. 8-bit
[SMD21, 20]
Mode
[SMD21, 20]
Mode
FF14H
0
SMD21 SMD20
ESIF2
RR/W
0 3
SMD21
SMD20
ESIF2
– 2
0
0SIF
I/O
Unused
Serial I/F 2
mode selection
Serial I/F 2 enable (P2x port function selection)
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
(1) Selection of port function
ESIF1: Serial interface 1 enable register (FF64HD0)
ESIF2: Serial interface 2 enable register (FF14HD0)
Selects a function for P10–P13 or P20–P23.
When "1" is written: Serial interface input/output port
When "0" is written: I/O port
Reading: Valid
Serial interface 1 uses the P10–P13 terminals and serial interface 2 uses the P20–P23 terminals. When
using the serial interface, write "1" to the ESIFx register . When P10–P13 are used as I/O ports, write "0".
The terminal configuration within P10–P13/P20–P23 that are used for the serial interface is decided by
the transfer mode (7-bit asynchronous, 8-bit asynchronous, clock synchronous slave, clock synchronous
master) selected with the SMDxx register.