Introduction

This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the Atmel® AVR® microcontroller. Most AVR devices come with an on board SPI and can be configured according to this document. This document contains, theoretical background and the steps to configure the SPI to run in both master mode and slave mode.