Datasheet

Table Of Contents
362
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
25. SERCOM SPI – SERCOM Serial Peripheral Interface
25.1 Overview
The serial peripheral interface (SPI) is one of the available modes in the Serial Communication Interface (SERCOM).
Refer to “SERCOM – Serial Communication Interface” on page 329 for details.
The SPI uses the SERCOM transmitter and receiver configured as shown in “Full-Duplex SPI Master Slave
Interconnection” on page 362. Each side, 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. Fields shown in capital letters are synchronous to CLK_SERCOMx_APB
and accessible by the CPU, while fields with lowercase letters are synchronous to the SCK clock.
25.2 Features
z Full-duplex, four-wire interface (MISO, MOSI, SCK, _SS)
z Single-buffered transmitter, double-buffered receiver
z Supports all four SPI modes of operation
z Single data direction operation allows alternate function on MISO or MOSI pin
z Selectable LSB- or MSB-first data transfer
z Master operation:
z Serial clock speed up to half the system clock
z 8-bit clock generator
z Slave operation:
z Serial clock speed up to the system clock
z Optional 8-bit address match operation
z Operation in all sleep modes
25.3 Block Diagram
Figure 25-1. Full-Duplex SPI Master Slave Interconnection
25.4 Signal Description
Refer to “I/O Multiplexing and Considerations” on page 11 for details on the pin mapping for this peripheral. One signal
can be mapped to one of several pins.
shift register shift register
Master Slave
MISO
MOSI
SCK
_SS
Tx DATA
rx buffer
Rx DATA
Tx DATA
rx buffer
Rx DATA
==
ADDR/ADDRMASKBAUD
baud rate generator
Address Match
Signal Name Type Description
PAD[3:0] Digital I/O General SERCOM pins