
46
EPSON
S1C63653 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
4.7.4 Pull-down during input mode
A pull-down resistor that operates during the input mode is built into each I/O port of the S1C63653.
Mask option can set the use or non-use of this pull-down.
The pull-down resistor becomes effective by writing "1" to the pull-down control register PULxx that
corresponds to each port, and the input line is pulled down during the input mode. When "0" has been
written, no pull-down is done.
At initial reset, the pull-down control registers are set to "1".
The pull-down control registers of the ports in which "gate direct" has been selected can be used as
general purpose registers.
4.7.5 I/O memory of I/O ports
Table 4.7.5.1 shows the I/O addresses and the control bits for the I/O ports.
Table 4.7.5.1 Control bits of I/O ports
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
FF40H
IOC03
IOC02
IOC01
IOC00
R/W
IOC03
IOC02
IOC01
IOC00
0
Output
Input
P00–P03 I/O control register
FF41H
PUL03
PUL02
PUL01
PUL00
R/W
PUL03
PUL02
PUL01
PUL00
1
On
Off
P00–P03 pull-down control register
FF42H
P03
P02
P01
P00
R/W
P03
P02
P01
P00
– 2
High
Low
P00–P03 I/O port data
FF45H
PUL13
PUL12
PUL11
PUL10
R/W
PUL13
PUL12
PUL11
PUL10
1
On
Off
P10–P13 pull-down control register
FF46H
P13
P12
P11
P10
R/W
P13
P12
P11
P10
– 2
High
Low
P10–P13 I/O port data
FF44H
IOC13
IOC12
IOC11
IOC10
R/W
IOC13
IOC12
IOC11
IOC10
0
Output
Input
P10–P13 I/O control register
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
P00–P03: P0 I/O port data register (FF42H)
P10–P13: P1 I/O port data register (FF46H)
I/O port data can be read and output data can be set through these registers.
When writing data
When "1" is written: High level
When "0" is written: Low level
When an I/O port is set to the output mode, the written data is output unchanged from the I/O port
terminal. When "1" is written as the port data, the port terminal goes high (VDD), and when "0" is written,
the terminal goes low (VSS).
Port data can be written also in the input mode.