Datasheet

Table Of Contents
42
8493A–AVR–02/12
XMEGA C4
22. SPI – Serial Peripheral Interface
22.1 Features
Two Identical SPI peripherals
Full-duplex, three-wire synchronous data transfer
Master or slave operation
Lsb first or msb first data transfer
Eight programmable bit rates
Interrupt flag at the end of transmission
Write collision flag to indicate data collision
Wake up from idle sleep mode
Double speed master mode
22.2 Overview
The Serial Peripheral Interface (SPI) is a high-speed synchronous data transfer interface using
three or four pins. It allows fast communication between an Atmel AVR XMEGA device and
peripheral devices or between several microcontrollers. The SPI supports full-duplex
communication.
A device connected to the bus must act as a master or slave. The master initiates and controls
all data transactions.
PORTC and PORTD each has one SPI. Notation of these peripherals are SPIC and SPID,
respectively.