SAMV71 Xplained Ultra Software Package 1.5

USART SPI example with DMA

This example demonstrates the SPI mode provided by the USART peripherals on SAMV7/E7 Microcontrollers.

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board. Please connect the USART and SPI pins on one board as following matching table:

Description

This example demonstrates how to use USART in SPI mode. The USART is configured as SPI master and slave. Meanwhile, the SPI peripheral in the Microcontroller is configured respectively, making it to communicate with the USART peripheral.

The application first initializes DBGU as the interface to interact with users. The application waits for input from DBGU:

Menu : ------

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. Connect a serial cable to the DBGU port on the evaluation kit.
  3. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  4. Start the application. The following traces shall appear on the terminal:
         -- USART SPI Example xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines