Specifications

Table Of Contents
S1C62740 TECHNICAL SOFTWARE EPSON II-31
CHAPTER 6: PERIPHERAL CIRCUITS (I/O Ports)
Serial I/O port
Programming notes
(1) When P20–P23 is used as general I/O ports, set PFS to "0".
(2) When P20–P23 is used as serial I/O ports, set PFS to "1".
(3) 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 capacitance. 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 × C × R
C: terminal capacitance 5 pF + parasitic capacitance ? pF
R: pull up registance 300 k
The I/O port P20–P23 may be set by software as serial I/O port for
the serial interface.
P20: Serial interface data input port (SIN)
P21: Serial interface data output port (SOUT)
P22: Serial interface clock port (SCLK)
P23: Serial interface inverted READY signal (SRDY)
The function of serial interface is explained in Section 6.10.