SAMV71 Xplained Ultra Software Package 1.3

USART SPI example with DMA

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

Requirements

This example can be used on SAM V71 Xplained Ultra board and USART and SPI pins should be connected 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 SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 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 bauds
    • 8 data bits
    • 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