
M451
May. 4, 2018
Page
740
of
1006
Rev.2.08
M4
51
S
E
RI
E
S
T
E
CH
NICA
L RE
F
E
R
E
NC
E
M
A
NU
A
L
Serial Peripheral Interface (SPI)
6.16
6.16.1 Overview
The Serial Peripheral Interface (SPI) applies to synchronous serial data communication and
allows full duplex transfer. Devices communicate in Master/Slave mode with the 4-wire bi-
direction interface. The NuMicro
®
M451 series contains up to three sets of SPI controllers
performing 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. Each SPI controller can be
configured as a master or a slave device.
SPI0 controller supports 2-bit Transfer mode to perform full-duplex 2-bit data transfer and also
supports Dual and Quad I/O Transfer mode. SPI1 and SPI2 controller also support I
2
S mode to
connect external audio CODEC.
SPI2 only supported at M45xG/M45xE Series.
6.16.2 Features
SPI Mode
–
Up to three sets of SPI controllers
–
Supports Master or Slave mode operation
–
Supports 2-bit Transfer mode
–
Supports Dual and Quad I/O Transfer mode for SPI0
–
Configurable bit length of a transaction word from 8 to 32-bit
–
Provides separate 4-/8-level depth transmit and receive FIFO buffers
–
Supports MSB first or LSB first transfer sequence
–
Supports Byte Reorder function
–
Supports PDMA transfer
–
Supports 3-Wire, no slave selection signal, bi-direction interface
I
2
S Mode for SPI1 and SPI2
–
Supports Master or Slave
–
Capable of handling 8-, 16-, 24- and 32-bit word sizes
–
Provides separate 4-level depth transmit and receive FIFO buffers
–
Supports monaural and stereo audio data
–
Supports PCM mode A, PCM mode B, I
2
S and MSB justified data format
–
Supports PDMA transfer