Product Specs

Table Of Contents
31 SPIM Serial peripheral interface master with
EasyDMA
Page
281
E0
E1
E2
E3
Mode Clock polarity
CPOL
Clock phase
CPHA
SPI_MOD 0 (Leading)
SPI_MOD 0 (Leading)
SPI_MOD 1 (Trailing)
SPI_MOD 1 (Trailing)
0 (Active High)
1 (Active Low)
0 (Active High)
1 (Active Low)
31 SPIM Serial peripheral interface master with
EasyDMA
The SPI master can communicate with multiple slaves using individual chip select signals for each of the
slave devices attached to a bus.
Listed here are the main features for the SPIM
Three SPIM instances
SPI mode 0-3
EasyDMA direct transfer to/from RAM for both SPI Slave and SPI Master
Individual selection of IO pin for each SPI signal
MOSI
TXD buffer
SCK
MISO
RXD buffer
Figure 69: SPIM SPI master with EasyDMA
The SPIM does not implement support for chip select directly. Therefore, the CPU must use available GPIOs
to select the correct slave and control this independently of the SPI master. The SPIM supports SPI modes 0
through 3. The CONFIG register allows setting CPOL and CPHA appropriately.
Table 65: SPI modes
31.1 Shared resources
The SPI shares registers and other resources with other peripherals that have the same ID as the SPI.
Therefore, the user must disable all peripherals that have the same ID as the SPI before the SPI can be
configured and used.
SPIM
GPIO
RAM
Pin
RXD.PTR
TXD.PTR
Pin
Pin
PSEL.MISO
EasyDMA
RXD-1
PSEL.SCK
TXD+1
buffer[0]
buffer[1]
buffer[TXD.MAXCNT-1]
PSEL.MOSI
EasyDMA
STARTED
START
STOP
ENDTX
ENDRX
buffer[0]
buffer[1]
buffer[RXD.MAXCNT-1]