33.
SERCOM SPI – SERCOM Serial Peripheral Interface
33.1. Overview
The serial peripheral interface (SPI) is one of the available modes in the Serial Communication Interface
(SERCOM).
The SPI uses the SERCOM transmitter and receiver configured as shown in
master and slave, depicts a separate SPI containing a shift register, a transmit buffer and two receive
buffers. In addition, the SPI master uses the SERCOM baud-rate generator, while the SPI slave can use
the SERCOM address match logic. Labels in capital letters are synchronous to CLK_SERCOMx_APB
and accessible by the CPU, while labels in lowercase letters are synchronous to the SCK clock.
Related Links
SERCOM – Serial Communication Interface
33.2. Features
SERCOM SPI includes the following features:
•
Full-duplex, four-wire interface (MISO, MOSI, SCK, SS)
•
Single-buffered transmitter, double-buffered receiver
•
Supports all four SPI modes of operation
•
Single data direction operation allows alternate function on MISO or MOSI pin
•
Selectable LSB- or MSB-first data transfer
•
Can be used with DMA
•
Master operation:
–
Serial clock speed, f
SCK
=1/t
SCK
(1)
–
8-bit clock generator
–
Hardware controlled SS
•
Slave operation:
–
Serial clock speed, f
SCK
=1/t
SSCK
(1)
–
Optional 8-bit address match operation
–
Operation in all sleep modes
–
Wake on SS transition
1.
For t
SCK
and t
SSCK
values, refer to SPI Timing Characteristics.
Related Links
SERCOM – Serial Communication Interface
on page 592
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
645