SAMV71 Xplained Ultra Software Package 1.5

SPI example

Purpose

This example shows control of the SPI in loop back mode.

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.

Description

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. 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
  3. Start the application.
  4. In the terminal window, the following text should appear (values depend on the board and chip used):
          -- SPI Example xxx --
          -- xxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
         Menu :
          ------
          0: Set SPCK =  500000 Hz
          1: Set SPCK = 1000000 Hz
          2: Set SPCK = 5000000 Hz
          s: Perform SPI transfer start
          d: Perform SPI Dma Transfer
          h: Display menu
    

The user can then choose any of the available options to perform the described action.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines