12 SYNCHRONOUS SERIAL INTERFACE (SPIA)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
12-1
(Rev. 1.2)
12 Synchronous Serial Interface (SPIA)
12.1 Overview
SPIA is a synchronous serial interface. The features of SPIA are listed below.
• Supports both master and slave modes.
• Data length: 2 to 16 bits programmable
• Either MSB first or LSB first can be selected for the data format.
• Clock phase and polarity are configurable.
• Supports full-duplex communications.
• Includes separated transmit data buffer and receive data buffer registers.
• Can generate receive buffer full, transmit buffer empty, end of transmission, and overrun interrupts.
• Master mode allows use of a 16-bit timer to set baud rate.
• Slave mode is capable of being operated with the external input clock SPICLK
n
only.
• Slave mode is capable of being operated in SLEEP mode allowing wake-up by an SPIA interrupt.
• Input pins can be pulled up/down with an internal resistor.
Figure 12.1.1 shows the SPIA configuration.
Table 12.1.1 SPIA Channel Configuration of S1C17M12/M13
Item
S1C17M12
S1C17M13
Number of channels
2 channels (Ch.0 and Ch.1)
Internal clock input
Ch.0
←
16-bit timer Ch.1
Ch.1
←
16-bit timer Ch.2
SPIA Ch.n
Timer
Interrupt
controller
Clock/shift register
control circuit
Pull-up/down control
circuit
16-bit timer
Underflow
(Used only in slave mode)
Receive data buffer
RXD[15:0]
Shift register
Transmit data buffer
TXD[15:0]
Interrupt
control circuit
SDIn
SDOn
SPICLKn
#SPISSn
1/2
CPOL
PUEN
Clock
generator
CLK_SPIAn
Inter
nal data
bu
s
TENDIE
RBFIE
TBEIE
TENDIF
RBFIF
TBEIF
MODEN
SFTRST
LSBFST
CPHA
NOCLKDIV
CLK_T16_m
V
SS
V
DD
V
DD
V
DD
Figure 12.1.1 SPIA Configuration