Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
XMEGA USART Example for stk600-rc100x Documentation

Introduction

This example demonstrates how to use XMEGA USART module.

Main Files

drivers/usart API

The USART driver API can be found here.

Device Info

All AVR XMEGA devices can be used. This example has been tested with the following setup:

  • STK600 USARTC0 should be connected to the RS232 spare port of STK600 Note: XMEGA-A1 on STK600-RC100X XMEGA-A3, XMEGA-A3U and XMEGA-C3 on STK600-RC064X. XMEGA-A4U on STK600-RC044X XMEGA-E5 on STK600-RC032X
  • Xplain evaluation kit USARTD0 on PORTD is used by default Change to USARTC0 to use the USB Virtual COM PORT of the Xplain
  • XMEGA A1 Xplained evaluation kit USARTC0 on PORTC is used. It is located on the J4 header
  • XMEGA A3BU Xplained evaluation kit USARTC0, pin 2 and 3 on header J1 is utilized
  • XMEGA E5 Xplained evaluation kit USARTD0 on PORTD pin 6 and 7 is used (Connected to board controller) UART configuration is 9600 baudrate, no parity, data 8 bit.

Description of the example

The example waits for a received character on the configured USART and echoes the character back to the same USART.

Compilation Info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Atmel AVR.