This repository contains examples of MCC generated source code for Serial Peripheral Interface (SPI) as described in TB3215 - Getting Started with Serial Peripheral Interface (SPI) document from Microchip. The repository contains three MPLAB X projects inside:
- Sending Data as Host: This example demonstrates how to configure the device in SPI Host mode and send dummy data (value 0) (for more details, see Sending Data as Host).
- Receiving Data as Client: This example illustrates how to configure the device in SPI Client mode and how to receive data from an SPI host device, using the SPI interrupt (for more details, see Receiving Data as Client).
- Changing Data Transfer Type: This example demonstrates how to configure the device in SPI Host mode and send data with respect to the clock polarity and the clock phase, in data mode 3 (for more details, see Changing Data Transfer Type).
More details and code examples on the AVR128DA48 can be found at the following links:
- TB3215 - Getting Started with Serial Peripheral Interface (SPI)
- AVR128DA48 Product Page
- AVR128DA48 Code Examples on GitHub
- AVR128DA48 Project Examples in START
- MPLAB® X IDE 5.40 or newer (microchip.com/mplab/mplab-x-ide)
- MPLAB® XC8 2.30 or a newer compiler (microchip.com/mplab/compilers)
- MPLAB® Code Configurator (MCC) 4.0.1 or newer (microchip.com/mplab/mplab-code-configurator)
- MPLAB® Code Configurator (MCC) Device Libraries 8-bit AVR MCUs 2.5.0 or newer (microchip.com/mplab/mplab-code-configurator)
- AVR-Dx 1.4.75 or newer Device Pack
- AVR128DA48 Curiosity Nano (DM164151)