Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USART SPI Example for EVK1100 Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the USART in SPI modes software driver.
It also comes bundled with an example. This example is a basic Write to Slave Mode example.
Example's operating mode:

  1. A message is displayed on the PC terminal ("Basic write in USART SPI Mode (press enter)")
  2. You may then type any character other than CR(Carriage Return) and it will be echoed back to the PC terminal.
  3. If you type a CR, the SPI write mode send data through SPI

Main Files

  • usart.c: USART driver and SPI support mode;
  • usart.h: USART driver header file and SPI support mode;
  • spi_example.c: SPI example application.

Compilation Information

This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.

Device Information

All AVR32 devices with a USART module can be used.

Configuration Information

This example has been tested with the following configuration:

  • EVK1100 evaluation kit or EVK1101 evaluation kit or STK600+RCUC3D routing card;
  • CPU clock: 12 MHz;
  • USART1 connected to a PC serial port via a standard RS232 DB9 cable;
  • PC terminal settings:
    • 57600 bps,
    • 8 data bits,
    • no parity bit,
    • 1 stop bit,
    • no flow control.

Contact Information

For further information, visit Atmel AVR32.