11 SYNCHRONOUS SERIAL INTERFACE (SPI)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
11-1
(Rev. 1.0)
Synchronous Serial Interface (SPI)
11
Overview
11.1
SPI is a synchronous serial interface. The features of the SPI are listed below.
• Supports both master and slave modes.
• Data length: 8 bits
• 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, and end of transmission 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 SPI interrupt.
• Input pins can be pulled up/down with an internal resistor.
Figure 11.1.1 shows the SPI configuration.
Channel configuration in this IC
• Number of channels:
3 channels (Ch.0, Ch.1, and Ch.2)
• Internal clock input:
Ch.0
←
16-bit timer Ch.1
Ch.1
←
16-bit timer Ch.2
Ch.2
←
16-bit timer Ch.3
SPI 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[7:0]
Shift register
Transmit data buffer
TXD[7:0]
Interrupt
control circuit
SDI
n
SDO
n
SPICLK
n
#SPISS
n
1/2
CPOL
PUEN
Clock
generator
CLK_SPI
n
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
1.1 SPI Configuration
Figure 11.