
42
EPSON
S1C6S460 TECHNICAL MANUAL
CHAPTER 6: INPUT/OUTPUT PORTS
PUP0, PUP1, PUP2, PUP3 (F7EH, R/W)
Whether the I/O ports will be pulled up or not is set in units of 4 bits groups.
When "0" is written: Pull up ON
When "1" is written: Pull up OFF
Reading: Valid
PUPx and port group correspondence are the same as that of the IOCx.
By writing "0" to PUPx (x = 0 to 3), the I/O ports in the corresponding group are pulled up, while writing
"1" turns the pull up function OFF.
At initial reset, PUPx are set at "0", and all I/O ports are pulled up.
P00–P03, P10–P13, P20–P23, P30–P33 (F60H, F61H, F62H, F63H, R/W)
During writing operation
When "1" is written: High level
When "0" is written: Low level
When the I/O port is set at output port, the data written is generated on the I/O port terminal as it is.
When "1" is written as port data, the port terminal goes high (VDD) and goes low (VSS) when "0" is
written.
This is the same when P30–P33 are set as dedicated output ports through the mask option.
Note, however, that even at input mode, port data writing is also possible.
During reading operation
When "1" is read: High level
When "0" is read: Low level
Reading the I/O port terminal voltage level. When the I/O port is at input mode, voltage level input
of the port terminal is read; when set at output mode, output voltage level is read. When the terminal
voltage is at high (VDD) level, port data reading is "1"; at low (VSS) level, it is "0".
6.3.6 Programming notes
(1) When the I/O port is set at output mode, and low impedance load is connected to the port terminal,
the data written and read may differ.
(2) If the state of the I/O port meets all of the following 4 conditions, the reading data will be undefined:
The input/output mode is set at output mode
Output specification is set at Nch open drain
The content of the data register is "1"
The pull up resistor turned is OFF
(3) When P30–P33 has been set as the output exclusive in the mask option, a pull up resistor cannot be
added even if the pull up resistor control register PUP3 has been made "0".