Introduction • SPI Pin Functionality Features
Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTEIntroductionThis application note describes how to set up and use the on-chip SerialPeripheral Interface (SPI) of the Atmel AVR microcontroller. Most AVRdevices come with an on board SPI and can be configured according to thisdocument. This document contains, theoretical background and the steps toconfigure the SPI to run in both master mode and slave SPI Pin Functionality Multi Slave Systems SPI Timing SPI Transmission Conflicts Emulating the SPI Code examples for Polled operation Code examples for Interrupt Controlled operationAtmel-2585D-Setup-and-Use-of-th e-SPI_AVR151_Application Note-02/2016Table of Description of the Transmission Between Master and of the Slave Systems - SS Pin For High Speed Transmission the 1: SPI Communication Controlled by 2: SPI Communication Controlled by AVR151.
3. The Receive Buffer has to be read before the next transmission is completed or data will be lost. 4. Reading the SPDR will return the data of the Receive Buffer. After a transfer is completed the SPI Interrupt Flag (SPIF) will be set in the SPI Status Register (SPSR).
Download Introduction • SPI Pin Functionality Features
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: