APPLICATION NOTE
Atmel AVR1925: XMEGA-C3 Xplained Hardware User’s
Guide
Atmel XMEGA C
Features
•Atmel® AVR® ATxmega384C3 microcontroller
•OLED display with 128×32 pixels resolution
•Analog sensors
•Ambient light sensor
•Temperature sensor
•Analog filter
•Digital I/O
•Two mechanical buttons
•Two user LEDs, one power LED and one status LED
•Four expansion headers
•Touch
•Two Atmel AVR QTouch® button
•Memory
•microSD Card
Description
The Atmel AVR XMEGA-C3 Xplained evaluation kit is a hardware platform to evaluate the Atmel ATxmega384C3 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-C3 Xplained evaluation kit.
42053A−AVR−02/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 ................................... |
4 |
|
2.4 |
Programming the kit .......................................................................................... |
5 |
3. |
Connectors........................................................................................... |
6 |
|
|
3.1 |
Programming headers....................................................................................... |
6 |
|
3.2 |
I/O expansion headers ...................................................................................... |
6 |
4. |
Peripherals........................................................................................... |
8 |
|
|
4.1 |
microSD card .................................................................................................... |
8 |
|
4.2 |
Atmel AVR QTouch button................................................................................ |
8 |
|
4.3 |
Mechanical buttons ........................................................................................... |
8 |
4.4LEDs…. ............................................................................................................ 8
|
4.5 |
OLED display .................................................................................................... |
9 |
|
|
4.6 |
Analog I/O ......................................................................................................... |
9 |
|
|
|
4.6.1 |
Temperature sensor............................................................................ |
9 |
|
|
4.6.2 |
Ambient light sensor ......................................................................... |
12 |
5. |
Code examples .................................................................................. |
13 |
||
6. |
Revision history.................................................................................. |
14 |
||
|
6.1 |
Revision history of the document .................................................................... |
14 |
|
|
6.2 |
Revision history of the kit ................................................................................ |
14 |
|
|
|
6.2.1 |
Revision 2 ......................................................................................... |
14 |
Atmel AVR1925: XMEGA-C3 Xplained Hardware User’s Guide [APPLICATION NOTE] |
2 |
42053A−AVR−02/2013 |
|
The following list contains links to the most relevant documents, software and tools for the Atmel AVR XMEGA-C3 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-C3 Xplained schematics
Package containing schematics, BOM, assembly drawings, 3D plots, layer plots…
AVR1925: XMEGA-C3 Xplained Hardware Users Guide
This document.
AVR1939: XMEGA-C3 Xplained Getting Started Guide
This application note is a getting started guide for the XMEGA-C3 Xplained.
AVR1940: XMEGA-C3 Xplained Software User Guide
This application note is a user guide for the XMEGA-C3 Xplained demo software.
AVR1916: XMEGA USB DFU Boot Loaders
This application note is a user guide for the XMEGA USB DFU boot loaders.
Atmel Studio 6
Atmel Studio 6 is a free Atmel IDE for development of C/C++ and assembler code for Atmel microcontrollers.
Atmel FLIP (Flexible In-system Programmer)
BatchISP (FLIP) is a command line tool for programming the flash and EEPROM memories of the AVR and is part of the FLIP installation. It can be used to communicate with the preprogrammed USB DFU boot loader.
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 AVR1925: XMEGA-C3 Xplained Hardware User’s Guide [APPLICATION NOTE] |
3 |
42053A−AVR−02/2013 |
|
The Atmel AVR XMEGA-C3 Xplained kit is intended to demonstrate the Atmel AVR ATXmega384C3 microcontroller. Figure 2-1 shows the available feature on the board.
Figure 2-1. Overview of XMEGA-C3 Xplained kit.
The ATxmega384C3 on the XMEGA-C3 Xplained is pre-programmed with a boot loader and a default firmware. The detailed description of the software is available in the AVR1940 XMEGA-C3 Xplained Software User Guide.
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.
As part of an evaluation of the ATxmega384C3, 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 the jumper with an amperemeter it is possible to determine the current consumption. To locate the power measurement header, please refer to Figure 2-1.
Atmel AVR1925: XMEGA-C3 Xplained Hardware User’s Guide [APPLICATION NOTE] |
4 |
42053A−AVR−02/2013 |
|
Warning: Do not power the board without having the jumper or an amperemeter mounted since this can cause latch-up of the Atmel AVR ATxmega384C3 due to current flow into the I/O pins.
The kit can be programmed either from an external programming tool or through an USB boot loader which is preprogrammed on the device.
The boot loader is evoked by pushing the push button (SW0) during power-on, that is push and hold the button and hence connect an USB cable to the kit. Programming can be performed through the DFU programmer FLIP.
How a programmer can be connected to the kit is described in Section 3.1.
Atmel AVR1925: XMEGA-C3 Xplained Hardware User’s Guide [APPLICATION NOTE] |
5 |
42053A−AVR−02/2013 |
|