APPLICATION NOTE Atmel AVR1939: XMEGA-C3 Xplained Getting Started Guide Atmel XMEGA C Features • • • Atmel® AVR® ATxmega384C3 microcontroller OLED display with 128x32 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 Introduction The Atmel AVR XMEGA-C3 Xplained evaluation kit is
Table of Contents 1. Board overview .................................................................................... 3 2. Quick-start ............................................................................................ 4 2.1 Programming the kit .......................................................................................... 6 2.1.1 Using the bootloader ........................................................................... 6 2.1.2 Using a programming tool .........................
1. Board overview Figure 1-1 shows most of the available features on the board. For more detailed information on the Atmel XMEGA-C3 Xplained hardware, take a look at the Atmel application note “Atmel AVR1925: XMEGA-C3 Xplained Hardware User’s Guide”. Figure 1-1. Overview of XMEGA-C3 Xplained kit.
2. Quick-start To be able to run the preprogrammed code, you need to connect the Atmel AVR XMEGA-C3 Xplained evaluation kit with a USB cable (standard A to mini-B or mini AB) to a PC or USB hub. Once the kit is powered, the display first shows explanation of how to use the demonstration; SW1 pressed will skip this explanation. The application starts then a sensor acquisition task scheduled by the real-time counter (RTC). The temperature and light sensors values are displayed on the OLED.
To avoid a file system corruption, the data logging is stopped on microSD while the USB is enabled. All sensor data logged on the microSD card are stored in a file named dat_log_c3_xplained_xx.txt where xx will be incremented from 00 for each new session of sensors data storage on the card. Figure 2-5. USB Mass Storage Class and removable disk content. The CDC interface uses the native driver from UNIX® O.S., but requires a specific one on Windows® O.S.
2.1 Programming the kit 2.1.1 Using the bootloader The kit can be programmed either from an external programming tool or through a USB bootloader which is preprogrammed on the device. The bootloader is evoked by pushing the push button (SW0) during power-on, for example push and hold the button and hence connect an USB cable to the kit. Programming can be performed through the DFU programmer FLIP.
3. Connecting the kit 3.1 USB power supply Connect a USB cable between the board and a PC or a USB power supply to power the kit. This is all that is needed. When power is applied the power/status LED will light up in green. Do not power the board without having the jumper next to the USB connector or an amperemeter mounted. When connecting the Atmel XMEGA-C3 Xplained to a PC, the operating system will request a driver file for installing the serial communication driver.
Figure 3-2. Connecting Atmel AVR ONE! to an Atmel XMEGA-C3 Xplained board. 3.4 Atmel AVR JTAGICE mkll The grey female 10-pin header on the AVR JTAGICE mkII has to be used when connecting to the kit. The opening in the board is made to fit the orientation tab on the header. Note: When using PDI with the AVR JTAGICE mkII it is necessary to use the squid cable. Follow the instructions in the AVR JTAGICE mkII manual and the silkscreen description for the programming header. Figure 3-3.
4. Tools and documentation for the Atmel XMEGA-C3 Xplained The following list contains links to the most relevant documents, software and tools for the XMEGA-C3 Xplained: Xplained products Atmel AVR 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.
5. EVALUATION BOARD/KIT IMPORTANT NOTICE This evaluation board/kit is intended for use for FURTHER ENGINEERING, DEVELOPMENT, DEMONSTRATION, OR EVALUATION PURPOSES ONLY. It is not a finished product and may not (yet) comply with some or any technical or legal requirements that are applicable to finished products, including, without limitation, directives regarding electromagnetic compatibility, recycling (WEEE), FCC, CE or UL (except as may be otherwise noted on the board/kit).
6. Revision history Doc. Rev.
Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan G.K. 1600 Technology Road 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.