Atmel AT02667 User guide

Atmel AT02667 User guide

APPLICATION NOTE

Atmel AT02667: XMEGA-E5 Xplained Hardware User’s

Guide

Atmel AVR XMEGA E

Features

Atmel® AVR® ATxmega32E5 microcontroller

OLED display with 128×32 pixels resolution

Ambient light sensor

Analog filter

Rotary Encoder with push button

Digital I/O

Two mechanical buttons

Two user LEDs

Four expansion headers

Board controller with USB interface

One power LED and one status LED

Description

The Atmel AVR XMEGA-E5 Xplained evaluation kit is a hardware platform to evaluate the Atmel ATxmega32E5 microcontroller.

The kit offers a larger range of features that enables the Atmel AVR XMEGA® user to get started using XMEGA peripherals right away and understand how to integrate the XMEGA device in their own design.

Figure 1. XMEGA-E5 Xplained evaluation kit.

42084A−AVR−04/2013

Table of Contents

1.

Related Items.......................................................................................

3

2.

General Information .............................................................................

4

 

2.1

Preprogrammed firmware .................................................................................

4

 

2.2

Power supply.....................................................................................................

4

 

2.3

Measuring the Atmel AVR XMEGA power consumption ...................................

5

 

2.4

Communication through the USART-to-USB gateway ......................................

5

 

2.5

Programming the kit ..........................................................................................

5

3.

Connectors...........................................................................................

6

 

3.1

Programming headers.......................................................................................

6

 

3.2

I/O expansion headers ......................................................................................

6

4.

Peripherals...........................................................................................

9

 

4.1

Mechanical buttons ...........................................................................................

9

4.2LEDs…….......................................................................................................... 9

 

4.3

Quadrature encoder ..........................................................................................

9

 

4.4

OLED display ....................................................................................................

9

 

4.5

Analog I/O .......................................................................................................

10

 

 

4.5.1 Ambient light sensor .........................................................................

10

 

4.6

Board controller...............................................................................................

11

5.

Code Examples..................................................................................

12

6.

Revision History .................................................................................

13

 

6.1

Revision history of the document ....................................................................

13

 

6.2

Revision history of the kit ................................................................................

13

Atmel AT02667: XMEGA-E5 Xplained Hardware User’s Guide [APPLICATION NOTE]

2

42084A−AVR−04/2013

 

1.Related Items

The following list contains links to the most relevant documents, software and tools for the Atmel AVR XMEGA-E5 Xplained:

Atmel AVR Xplained products

Xplained is a series of small-sized and easy-to-use evaluation kits for 8- and 32-bit AVR microcontrollers. It consists of a series of low cost MCU boards for evaluation and demonstration of feature and capabilities of different MCU families.

Atmel Xplained USB CDC driver

The Xplained USB CDC driver file supports both 32and 64-bit versions of Windows® XP and Windows 7. Driver installs are not necessary on Linux® operating systems.

XMEGA-E5 Xplained schematics

Package containing schematics, BOM, assembly drawings, 3D plots, layer plots…

AT02667: XMEGA-E5 Xplained Hardware Users Guide

This document.

AT02657: XMEGA-E5 Xplained Software User Guide

This application note is a user guide for the XMEGA-E5 Xplained demo software.

Atmel Studio 6

Atmel Studio 6 is a free Atmel IDE for development of C/C++ and assembler code for Atmel microcontrollers.

Atmel JTAGICE3

JTAGICE3 is a mid-range development tool for Atmel 8- and 32-bit AVR microcontrollers with on-chip debugging for source level symbolic debugging, NanoTrace (if supported by the device) and device programming.

Atmel AVR JTAGICE mkII

AVR JTAGICE mkII is a mid-range development tool for Atmel 8- and 32-bit AVR devices with on-chip debugging for source level symbolic debugging, NanoTrace (if supported by the device), and device programming (superseded by JTAGICE3).

Atmel AVR ONE!

AVR ONE! is a professional development tool for all Atmel 8- and 32-bit AVR devices with on-chip debug capability. It is used for source level symbolic debugging, program trace, and device programming. The AVR ONE! supports the complete development cycle and is the fastest debugging tool offered from Atmel.

Atmel AVR Dragon

AVR Dragon™ sets a new standard for low cost development tools for 8- and 32-bit AVR devices with on-chip debug (OCD) capability.

IAR Embedded Workbench® for Atmel AVR

IAR™ Embedded Workbench is a commercial C/C++ compiler that is available for 8-bit AVR. There is a 30 day evaluation version as well as a 4k (code size limited) kick-start version available from their website.

Atmel AT02667: XMEGA-E5 Xplained Hardware User’s Guide [APPLICATION NOTE]

3

42084A−AVR−04/2013

 

2.General Information

The Atmel AVR XMEGA-E5 Xplained kit is intended to demonstrate the Atmel AVR ATxmega32E5 microcontroller. Figure 2-1 shows the available feature on the board.

Figure 2-1. Overview of the XMEGA-E5 Xplained kit.

 

 

 

 

 

 

Power

 

 

 

 

 

 

 

 

 

measurement

 

 

 

 

 

 

 

 

 

 

header

 

 

 

 

 

 

Header J1

 

 

 

USB

Header J3

 

 

 

 

 

 

 

PDI header

 

connector

 

 

 

 

 

 

 

 

 

 

 

Power & Status LEDs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mechanical button

 

 

 

 

 

 

 

 

 

SW0

 

 

 

 

 

 

 

 

 

 

Quadrature encoder

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

selection switch

SW103

User LEDs 0 and 1

Quadrature encoder Mechanical button SW102

SW1

Light sensor

Header J2

OLED display

Header J4

2.1Preprogrammed firmware

The ATxmega32E5 on the XMEGA-E5 Xplained is pre-programmed with a default firmware. The detailed description of the software is available in the AT02657 XMEGA-E5 Xplained Software User Guide. Project and source files are available within Atmel Studio and Atmel Software Framework.

2.2Power supply

The kit needs an external power supply that can deliver 5V and up to 500mA. The actual current requirement for the board is much less than 500mA but in order to be able to power optional expansion boards this margin is recommended.

The power can be applied to the board either via the USB connector or on pin 10 on the header J3. The USB connector is the preferred input because it is then possible to connect expansion boards on top of the J3 header.

The 5V (USB supply voltage) is regulated down to 3.3V with an onboard LDO regulator, which provides power to the entire board. Expansion top boards that require 5V will get this from the header J3 pin 10.

Atmel AT02667: XMEGA-E5 Xplained Hardware User’s Guide [APPLICATION NOTE]

4

42084A−AVR−04/2013

 

2.3Measuring the Atmel AVR XMEGA power consumption

As part of an evaluation of the Atmel AVR ATxmega32E5, it can be of interest to measure its power consumption. Because the XMEGA has a separate power plane (VCC_MCU_P3V3) on this board it is possible to measure the current consumption by measuring the current that is flowing into this plane. The VCC_MCU_P3V3 plane is connected via a jumper to the main power plane (VCC_P3V3) and by replacing this with an ampere meter it is possible to determine the current consumption. To locate the power measurement header, please refer to Figure 2-1.

Warning: Do not power the board without having the jumper or an ampere meter mounted since this can cause latch-up of the Atmel AVR ATxmega32E5 due to current flow into the I/O pins.

2.4Communication through the USART-to-USB gateway

The ATxmega32E5 USART is connected to a USART on the Atmel AT32UC3B1256. The ATxmega32E5 USART is communicating at 57600 baud using one start bit, eight data bits, one stop bit, and no parity.

When the AT32UC3B1256 device is enumerated (connected to a PC). The data transmitted from the ATxmega32E5 is passed to a (virtual) COM port. This means that it is possible to use a terminal program on a PC to receive the transmitted data. Similarly data transmitted from the PC COM port is passed to the ATxmega32E5 USART through the gateway.

2.5Programming the kit

The kit can be programmed using an external programming tool.

How a programmer can be connected to the kit is described in Section 3.1.

Atmel AT02667: XMEGA-E5 Xplained Hardware User’s Guide [APPLICATION NOTE]

5

42084A−AVR−04/2013

 

Loading...
+ 9 hidden pages