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
Table of Contents 1. Related Items ....................................................................................... 3 2. General Information ............................................................................. 4 2.1 2.2 2.3 2.4 2.5 Preprogrammed firmware ................................................................................. 4 Power supply.....................................................................................................
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.
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. Header J 1 Power measurement header USB Header J 3 connector PDI header Power & Status LEDs Mechanical button SW0 Quadrature encoder selection switch SW103 User LEDs 0 and 1 Quadrature encoder SW102 Mechanical button SW1 Light sensor Header J 2 2.
2.3 Measuring 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.
3. Connectors The Atmel AVR XMEGA-E5 Xplained kit has four 10-pin, 100mil headers and one 6-pin 100mil header. The 6-pin header is used for programming the Atmel AVR ATxmega32E5, and the 10-pin headers are used to access spare analog and digital pins on the Atmel AVR XMEGA (expansion headers). 3.1 Programming headers The XMEGA can be programmed and debugged by connecting an external programming/debugging tool to the PDI header shown in Figure 2-1.
The header J2 is connected to analog ports of the XMEGA as shown in Table 3-3. Table 3-3. Expansion header J2. Pin on J2 Name on J2 XMEGA pin Shared with onboard functionality 1 ADC0 PA0 - 2 ADC1 PA1 - 3 ADC2 PA2 - 4 ADC3 PA3 - 5 ADC4 PA4 - 6 ADC5 PA5 Quadrature Encoder Button (1) 7 ADC6 PA6 Quadrature Encoder Output (2) 8 ADC7 PA7 Quadrature Encoder Output (2) 9 GND - - 10 VCC_P3V3 - - The header J3 is connected to digital ports of XMEGA.
Table 3-5. Expansion header J4.
4. Peripherals 4.1 Mechanical buttons Two mechanical buttons are connected to Atmel AVR XMEGA. All buttons have no external pull-ups so user has to activate internal pull-ups in order to use them. When a button is pressed it will drive the I/O line to GND. Table 4-1. 4.2 Mechanical button connection. Pin on XMEGA Silkscreen text on PCB PD0 SW0 PD2 SW1 LEDs There are two yellow LEDs available on the board that can be turned on and off.
Table 4-4. OLED display connection. Pin on XMEGA QButton PR0 Data_command PC5 SCK PC7 MOSI PC4 SS PD3 RESET 4.5 Analog I/O 4.5.1 Ambient light sensor The ambient light sensor TEMT6000X01 from Vishay Semiconductors is sensitive to visible light much like the human eye. The measurement circuitry is configured to measure the illuminance from ~10 to ~900lx when the internal VCC/1.6 reference is used.
4.6 Illuminance [lux] ADC input [V] Illuminance 500 1.1750 Office lighting 600 1.4100 Office lighting 700 1.6450 Office lighting 800 1.8800 Office lighting 900 2.1150 Office lighting 1000 2.3500 Overcast day Board controller The Atmel AT32UC3B1256 board controller and the Atmel ATxmega32E5 are connected through TWI, SPI, and USART interfaces. All interfaces can be used to communicate between the devices, but only the USART is implemented by default on the board controller. Table 4-7.
5. Code Examples The example application is based on the Atmel AVR Software Framework that is included in Atmel Studio 6. The AVR Software Framework can also be found as a separate package online at: http://www.atmel.com/tools/avrsoftwareframework.aspx. For more information about the code example, see the application note Atmel AT02657 XMEGA-E5 Xplained Software Users Guide.
6. Revision History 6.1 Revision history of the document 6.2 Doc. Rev. Date Comments 42084A 04/2013 Initial document release Revision history of the kit To identify the revision of the Atmel AVR XMEGA-E5 Xplained kit, locate the bar-code sticker on the back side of the board. The first line on the sticker shows the product ID and the revision. For example “A09-1842/1” can be resolved to ID=A09-1842 and revision=1.
Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan G.K. 1600 Technology Drive Unit 01-5 & 16, 19F Business Campus 16F Shin-Osaki Kangyo Building San Jose, CA 95110 BEA Tower, Millennium City 5 Parkring 4 1-6-4 Osaki, Shinagawa-ku USA 418 Kwun Tong Road D-85748 Garching b. Munich Tokyo 141-0032 Tel: (+1)(408) 441-0311 Kwun Tong, Kowloon GERMANY JAPAN Fax: (+1)(408) 487-2600 HONG KONG Tel: (+49) 89-31970-0 Tel: (+81)(3) 6417-0300 www.atmel.