19 SPi
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
19-1
SPI
19
SPi Module Overview
19.1
The S1C17624/604/622/602/621 includes a synchronized serial interface module (SPI).
The following shows the main features of the SPI:
• Number of channels: 1 channel
• Supports both master and slave modes.
• Data length: 8 bits fixed
• Supports both MSB first and LSB first modes.
• Contains one-byte receive data buffer and one-byte transmit data buffer.
• Supports full-duplex communications.
• Data transfer timing (clock phase and polarity variations) is selectable from among 4 types.
• Can generate receive buffer full and transmit buffer empty interrupts.
Figure 19.1.1 shows the SPI module configuration.
Shift register
Receive data
buffer (1 byte)
SDI
x
PCLK
Internal bus
ITC
SPI Ch.
x
Bus I/F
and
control
registers
SPICLK
x
#SPISS
x
Shift register
Transmit data
buffer (1 byte)
Clock/transfer control
SDO
x
T16 Ch.1
output clock
Interrupt
control
1/4
1.1 SPI Module Configuration
Figure 19.
notes: • In the S1C17602/621, the transmit buffer empty interrupt can only be used in master mode.
In the S1C17624/604/622, the transmit buffer empty interrupt can be used in both master and
slave modes.
• The letter ‘
x
’ in register and pin names refers to a channel number (0).
Example: SPI_CTL
x
register
Ch.0: SPI_CTL0 register
SPi input/Output Pins
19.2
Table 19.2.1 lists the SPI pins.
2.1 List of SPI Pins
Table 19.
Pin name
i/O
Qty
Function
SDI0 (Ch.0)
I
1
SPI data input pin
Inputs serial data from SPI bus.
SDO0 (Ch.0)
O
1
SPI data output pin
Outputs serial data to SPI bus.