
Mini57
Apr. 06, 2017
Page 346 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
6.13 USCI
– SPI Mode
6.13.1 Overview
The SPI protocol of USCI controller applies to synchronous serial data communication and allows
full duplex transfer. It supports both master and Slave operation mode with the 4-wire bi-direction
interface. SPI mode of USCI controller performs a serial-to-parallel conversion on data received
from a peripheral device, and a parallel-to-serial conversion on data transmitted to a peripheral
device. The SPI mode is selected by FUNMODE (USPI_CTL[2:0]) = 0x1.
The SPI protocol can operate as master or Slave mode by setting the SLAVE
(USPI_PROTCTL[0]) to communicate with the off-chip SPI Slave or master device. The
application block diagrams in master and Slave mode are shown as Figure 6.13-1 and Figure
6.13-2.
SPI Slave Device
Master Transmit Data
Master Receive Data
Serial Bus Clock
Slave Select
SPI_MOSI
(USCIx_DAT0)
SPI_MISO
(USCIx_DAT1)
SPI_CLK
(USCIx_CLK)
SPI_SS
(USCIx_CTL)
SPI_MOSI
SPI_MISO
USCI SPI Master
USCI SPI Master
SPI_CLK
SPI_SS
Note:
x = 0, 1
Figure 6.13-1 SPI Master Mode Application Block Diagram (x=0, 1)
SPI Master Device
Slave Receive Data
Slave Transmit Data
Serial Bus Clock
Slave Select
SPI_MOSI
(USCIx_DAT0)
SPI_MISO
(USCIx_DAT1)
SPI_CLK
(USCIx_CLK)
SPI_SS
(USCIx_CTL)
SPI_MOSI
SPI_MISO
USCI SPI Slave
USCI SPI Slave
SPI_CLK
SPI_SS
Note:
x = 0, 1
Figure 6.13-2 SPI Slave Mode Application Block Diagram (x=0, 1)
6.13.2 Features