Specifications

Table Of Contents
S1C62740 TECHNICAL HARDWARE EPSON I-43
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
PUP0, PUP1, PUP2:
Pull up control register
(D7HD0D2)
The pull up during the input mode can be set with these registers.
When "1" is written: Pull up ON
When "0" is written: Pull up OFF
Reading: Valid
The built-in pull up resistor which is turned ON during input mode
is set to enable in units of four bits. PUP0, PUP1 and PUP2 set the
pull up for P00–P03, P10–P13 and P20–P23, respectively.
By writing "1" to the pull up control register, the corresponding I/O
ports are pulled up (during input mode), while writing "0" turns the
pull up function OFF.
At initial reset, these registers are set to "0", so the pull up function
is set to OFF.
When P20–P23 have been set to input/output ports of the serial
interface, the terminal controlled by PUP2 differs from the case of
the I/O ports. (See Section 4.11, "Serial Interface".)
Programming note
When in the input mode, I/O ports are changed from low to high
by pull up resistor, the rise of the waveform is delayed on account
of the time constant of the pull up resistor and input gate capaci-
tance. Hence, when fetching input ports, set an appropriate wait
time.
Particular care needs to be taken of the key scan during key matrix
configuration.
Make this waiting time the amount of time or more calculated by
the following expression.
10 x C x R
C: terminal capacitance 5 pF + parasitic capacitance ? pF
R: pull up registance 300 k