Configuration Of Serial Interface - Epson S1C63666 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Serial Interface)
4.12 Serial Interface (SIN, SOUT, SCLK, SRDY)

4.12.1 Configuration of serial interface

The S1C63666 has a synchronous clock type 8 bits serial interface built-in.
The configuration of the serial interface is shown in Figure 4.12.1.1.
The CPU, via the 8-bit shift register, can read the serial input data from the SIN terminal. Moreover, via
the same 8-bit shift register, it can convert parallel data to serial data and output it to the SOUT terminal.
The synchronous clock for serial data input/output may be set by selecting by software any one of three
types of master mode (internal clock mode: when the S1C63666 is to be the master for serial input/
output) and a type of slave mode (external clock mode: when the S1C63666 is to be the slave for serial
input/output).
Also, when the serial interface is used at slave mode, SRDY signal which indicates whether or not the
serial interface is available to transmit or receive can be output to the SRDY terminal.
SIN
(P10)
SCLK
or
SCLK
(P12)
The input/output ports of the serial interface are shared with the I/O ports P10–P13, and function of
these ports can be selected through the software.
P10–P13 terminals and serial input/output correspondence are as follows:
Master mode
P10 = SIN (I)
P11 = SOUT (O)
P12 = SCLK (O)
P13 = I/O port (I/O)
The SOUT output using the P11 port is enabled when "1" is written to the ESOUT register. If ESOUT is
"0", P11 functions as a general-purpose I/O port.
Note: At initial reset, P10–P13 are set to I/O ports.
When using the serial interface, switch the function (ESIF = "1", ESOUT = "1") in the initial routine.
90
SD0–SD7
Shift register (8 bits)
SCPS
SCS0 SCS1
Serial clock
Serial clock
selector
counter
f
OSC1
Serial clock
generator
Programmable
timer 2 underflow
signal
Serial I/F
activating
circuit
SCTRG
Fig. 4.12.1.1 Configuration of serial interface
Slave mode
P10 = SIN (I)
P11 = SOUT (O)
P12 = SCLK (I)
P13 = SRDY (O)
EPSON
Output
latch
ESOUT
Serial I/F interrupt
Interrupt
control circuit
request
S1C63666 TECHNICAL MANUAL
SOUT
(P11)
SRDY
or
SRDY
(P13)

Advertisement

Table of Contents
loading

Table of Contents