12.07.2015 Views

ATxmega128A3U-MHR - E-LAB Computers

ATxmega128A3U-MHR - E-LAB Computers

ATxmega128A3U-MHR - E-LAB Computers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

23. SPI – Serial Peripheral Interface23.1 Features• Three 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 mode23.2 OverviewThe Serial Peripheral Interface (SPI) is a high-speed synchronous data transfer interface using three or four pins. Itallows fast communication between an Atmel AVR XMEGA device and peripheral devices or between severalmicrocontrollers. 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, PORTD, and PORTE each has one SPI. Notation of these peripherals are SPIC, SPID, and SPIE respectively.XMEGA A3U [DATASHEET]8386C–AVR–02/201342

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!