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
Table of Contents 1. Related items ....................................................................................... 3 2. General information ............................................................................. 4 2.1 2.2 2.3 2.4 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-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.
2. General information 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. 2.1 Preprogrammed firmware 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. 2.
Warning: 2.4 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. Programming the kit 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.
3. Connectors The Atmel AVR XMEGA-C3 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 ATxmega384C3, 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 PB0 - 2 ADC1 PB1 - 3 ADC2 PB2 - 4 ADC3 PB3 - 5 ADC4 PB4 - 6 ADC5 PB5 - 7 ADC6 PB6 - 8 ADC7 PB7 - 9 GND - - 10 VCC_P3V3 - - The header J3 is connected to digital ports of XMEGA. Table 3-4 shows the mapping of the XMEGA I/O to J3. Table 3-4. Expansion header J3.
4. Peripherals 4.1 microSD card The Atmel AVR XMEGA-C3 Xplained has a microSD card standard connector mounted. The SWA is used for detecting the microSD card. When a misroSD card plugs in, the SWA will be pulled to GND. The connection to the MCU is shown in Table 4-1. Table 4-1. 4.2 microSD card connection.
Table 4-4. 4.5 LED connections. Pin on XMEGA LED PR0 Yellow LED0 PR1 Yellow LED1 PD4 Red status LED PD5 Green power indicator LED OLED display The OLED display on the XMEGA-C3 Xplained board is UG-2832HSWEG04 which comes from WiseChip Semiconductor Inc. It has a resolution of 128 × 32 pixels. In the design the display is connected via a SPI based interface. Detailed information about the display can be obtained from the display datasheet.
Table 4-7. Resistance vs. temperature (from Murata). Temp. [°C] NTC resistance [kΩ] Temp. [°C] NTC resistance [kΩ] Temp. [°C] NTC resistance [kΩ] Temp. [°C] NTC resistance [kΩ] -30 2197.225 0 357.012 30 79.222 60 22.224 -29 2055.558 1 338.006 31 75.675 61 21.374 -28 1923.932 2 320.122 32 72.306 62 20.561 -27 1801.573 3 303.287 33 69.104 63 19.782 -26 1687.773 4 287.434 34 66.061 64 19.036 -25 1581.881 5 272.500 35 63.167 65 18.323 -24 1483.
ADC input [V] Temp. [°C] ADC codes ADC input [V] Temp. [°C] ADC codes 1.794 -8 1781 0.275 44 273 1.747 -7 1734 0.264 45 262 1.700 -6 1687 0.254 46 252 1.653 -5 1640 0.244 47 243 1.606 -4 1594 0.235 48 233 1.560 -3 1548 0.226 49 225 1.514 -2 1503 0.218 50 216 1.469 -1 1458 0.209 51 208 1.425 0 1414 0.202 52 200 1.380 1 1370 0.194 53 193 1.337 2 1327 0.187 54 185 1.294 3 1285 0.180 55 178 1.252 4 1243 0.173 56 172 1.
4.6.2 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. The data in Table 4-10 which shows the relationship between illuminance and output voltage of the sensor circuitry is generated based on the symbols and formulas in Table 4-9. Table 4-9.
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 AVR1940 XMEGA-C3 Xplained Software Users Guide.
6. Revision history 6.1 Revision history of the document 6.2 Doc. Rev. Date Comments 42053A 02/2013 Initial document release Revision history of the kit To identify the revision of the Atmel AVR XMEGA-C3 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-1607/2” can be resolved to ID=A09-1607 and revision=2. 6.2.
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 USA 418 Kwun Tong Road D-85748 Garching b. Munich Shinagawa-ku, 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.