Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Similar documents
APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel QT600 Quick Start Guide Touch Solutions

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

STK521. User Guide B AVR 01/12

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

OLED display Sensors readout. Light sensor Temperature sensor

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

Atmel CryptoAuthentication Starter Kit

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

USER GUIDE. ZigBit USB Stick User Guide. Introduction

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features.

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary

Section 5 SERCOM. Tasks SPI. In this section you will learn:

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction

a clock signal and a bi-directional data signal (SCL, SDA)

Getting Started with the SAM4L-EK Demo

AVR32 UC3 Software Framework... User Manual

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

USER GUIDE EDBG. Description

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

Atmel AVR1912: Atmel XMEGA-B1 Xplained Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE. Atmel QT1 Xplained Pro. Preface

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

EDBG. Description. Programmers and Debuggers USER GUIDE

USER GUIDE. Atmel QT6 Xplained Pro. Preface

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive

AT91 ARM Thumb Microcontrollers. Application Note. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers. 1.

AVR469: MC301 Hardware User Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Native route discovery algorithm

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

ATDH2200E Programming Kit... User Guide

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD)

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction

QTouch 8-key Touch Sensor IC AT42QT1085. Summary

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

Application Note. Microcontrollers. Using Keil FlashMon Emulator with AT89C51CC01/03 AT89C51CC01/ Summary. 2. Background overview

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3.

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

Ethernet1 Xplained Pro

ATtiny817 QTouch Moisture Demo User Guide. Description. Features. AVR 8-bit Microcontrollers USER GUIDE

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

AVR32015: AVR32 Studio getting started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

Interfacing the internal serial EEPROM

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

WINC1500 Software. Release Notes VERSION : DATE : JULY Abstract

CAN, 80C51, AVR, Microcontroller. Application Note

This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

SAM4 Reset Controller (RSTC)

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

AT89C5131 Starter Kit... Software User Guide

Non Volatile Rad Hard Reprogrammable FPGA. ATF280 SRAM-based FPGA AT69170 Serial EEPROM. 2x SRAM-based FPGA designed for Space use - ATF280

AT91 ARM Thumb-based Microcontroller. Application Note. AT91SAM7X and AT91SAM7XC Microcontroller Series Schematic Check List. 1.

AVR2015: RZRAVEN Quick Start Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Transcription:

Atmel AVR1619: XMEGA-B1 Xplained Demonstration Features Atmel ATxmega128B1 Atmel XMEGA -B1 Xplained kit compatible On-board LCD display USB 2.0 Full speed composite device - Mass Storage interface with on-board Atmel DataFlash - Generic HID interface for host application data exchange On-board sensors measurements 8-bit Atmel Microcontrollers Application Note 1 Introduction This application note presents the default firmware shipped within the XMEGA-B1 Xplained kit that demonstrates all the main capabilities of this kit. Using the Atmel AVR XMEGA B devices makes USB and LCD easy to implement and to use. This application note presents a USB composite demonstration application acting both as a USB mass-storage device and a USB generic HID communication device. The USB mass storage interface allows accessing the on-board DataFlash whereas the generic HID interface allows the kit to communicate with a PC application. This application performs on-board sensors (light, temperature, voltages) and at the same time displays the results using the on-board LCD and transmits the measurements results to a PC application using USB. Rev.

2 Environment The demonstration consists of an embedded application for the Atmel ATxmega128B1 (this will be called firmware in the rest of this document) and a PC host application (running on Windows XP, Windows Vista, or Windows 7). The host application communicates with the Atmel XMEGA-B1 Xplained using the USB generic HID interface handled by the firmware. The PC host application allows retrieving the on-board sensors measurements (NTC, light sensor, external and potentiometer voltages), touch buttons status, and control the LEDs from the XMEGA-B1 Xplained (please refer to Chapter 6 about related documentation to access the XMEGA-B1 Xplained Hardware user guide ). The demonstration is designed for XMEGA-B1 Xplained kit with ATxmega128B1. The default firmware is configured to target ATxmega128B1 revision B and higher. A specific build of this application is required for ATxmega128B1 revision A (Section 3.2 gives information about how to rebuild the application for revision A). PC Host application: - Get on-board sensor measurement - Control the XMEGA-B1 Xplained ATxmega128B1 firmware for XMEGA-B1 Xplained kit 2 Atmel AVR1619

Atmel AVR1619 3 Firmware setup 3.1 Downloading the firmware 3.2 Rebuilding the firmware Out of the box, the Atmel XMEGA-B1 Xplained kit is pre-programmed with this default firmware. However, if this default firmware is erased or modified, it is possible to recover the original firmware using the hex file included within the zip file attached to this application note. If the on-chip Atmel ATxmega128B1 firmware needs to be downloaded into the XMEGA-B1 Xplained kit, this could be achieved by using one of the following methods: Using the ATxmega128B1 on-chip DFU bootloader and FLIP (please refer to Atmel AVR1619 application note about using the on-chip DFU bootloader with ATxmega128B1) Using the Atmel AVR Studio 5 and the regular Atmel AVR tools like JTAGICE3, AVR ONE!, or JTAGICE mkii (please refer to the on-line help of AVR Studio 5 about how to use it for part programming) It is also possible to rebuild this application from its sources files located in the Atmel AVR Software Framework (ASF, www.atmel.com/asf) and AVR Studio 5 (www.atmel.com/avrstudio5). This application is available as a pre-configured example available from AVR Studio 5 called Demo Application for XMEGA-B1 Xplained. 3.2.1 Atmel ATxmega128B1 revision A considerations As specified in Chapter 2, the default firmware configuration targets an ATxmega128B1 revision B device. The firmware can be rebuilt for revision A by adding the CONFIG_XMEGA_128B1_REVA define to the list of pre-defined symbols in the project options. 3

If the firmware loaded into the Atmel XMEGA-B1 Xplained does not match the ATxmega128B1 revision, the on-board LCD will display a REV ERR message. 4 Atmel AVR1619

Atmel AVR1619 4 Host application setup The host application called XMEGA-B1 Xplained demonstration is optional, but it allows controlling and getting information from the Atmel XMEGA-B1 Xplained by using USB generic HID interface. The host application setup can be found in the zip file attached to this application note. To install the application, follow the installation wizard started from the setup.exe file. Figure 4-1. Host application installation wizard. 5

5 Running the demonstration 5.1 Connecting the Atmel XMEGA-B1 Xplained to USB When connecting to the USB host computer for the first time, the firmware will enumerate as a composite device with two USB interfaces. The operating system will install the new USB devices by itself (no specific driver is needed for both mass storage and generic HID interfaces). Once the new hardware installation process is complete, the XMEGA-B1 Xplained kit is visible in three different locations within the device manager as shown in the figure below. Figure 5-1. Device manager view. 5.2 Using the XMEGA-B1 Xplained demonstration firmware The demonstration firmware can be used in a stand alone mode (meaning without the PC host application running). In that case the application displays the selected sensor value using the on-board LCD glass of the XMEGA-B1 Xplained. The capacitive touch buttons CS0 CS3 can be used to select which sensor should be displayed. CS0 displays the ADC value of the light sensor (raw value of the ADC conversion) CS1 displays the temperature value based on the on-board NTC (in C) CS2 displays the potentiometer voltage (in mv) CS3 displays the external voltage input (in mv) 6 Atmel AVR1619

Atmel AVR1619 Figure 5-2. Atmel XMEGA-B1 Xplained running the application. 5.2.1 Using the USB mass storage interface The USB mass storage interface allows accessing the on-board DataFlash of XMEGA-B1 Xplained as a regular USB thumb drive. Prior to use this drive, the operating system will ask to format it. Figure 5-3. Formatting the mass storage drive. The drive capacity is automatically detected as the on-board DataFlash size, meaning 8Mbytes. Figure 5-4. Format properties for mass storage drive. Once properly formatted, the drive can be used to store and read files. 7

5.2.2 Using the USB generic HID interface This USB interface offers the capability to control and get the following information from the Atmel XMEGA-B1 Xplained: Retrieve on-board sensors measurements Get touch buttons status Get information about the connected firmware Adjust on-board LCD contrast and backlight level Control on-board LEDs Display user input text strings or numeric values on the LCD The generic HID interface is accessible using the PC host application previously installed. Once the application is started it displays a control panel with the same look and feel as the XMEGA-B1 Xplained kit: Figure 5-5. Host application main view. 5.2.2.1 Connecting the host application to the XMEGA-B1 Xplained kit The host application automatically tries to connect to the XMEGA-B1 Xplained kit. When connection with the XMEGA-B1 Xplained kit is successful, the application displays some information related to the firmware (firmware revision, version of silicon the firmware was built for, and ATxmega128B1 Silicon revision) as shown in Figure 5-6: Figure 5-6. Host application status bar. 5.2.2.2 Using the host application to control the XMEGA-B1 Xplained Figure 5-7 shows which parts of the panel can be used to control the XMEGA-B1 Xplained. 8 Atmel AVR1619

Atmel AVR1619 Figure 5-7. Host application input controls. The vertical cursor to the right called Contrast and Backlight allows adjusting the on-board LCD display The four LEDs on the bottom can be activated so that it toggles the on-board LEDs The LCD text field can be selected and a user message can be input. This user text string will be displayed for a few seconds both on the on-board LCD and on the host application Like the text field, the LCD numeric field can be used to display a numeric value 9

5.2.3 Using the host application to display information The figure below shows what parts of the panel can be used to display information coming from the Atmel XMEGA-B1 Xplained. Figure 5-8. Host application output controls. The touch buttons display on the host application reflects the activation status of CS0...CS3 on the XMEGA-B1 Xplained The four LEDs on the bottom show the current status of the LEDs of XMEGA-B1 Xplained The LCD text field displays the name of the selected sensor and the LCD numeric field displays the value of this sensor. The display on the host application is thus similar to the on-board LCD of the XMEGA-B1 explained The Graph button shows another panel where the real-time captured values of the on-board sensors are displayed within real-time graphs. Please note that this real-time panel can be closed pressing this button once again Figure 5-9. Host application graph window. 10 Atmel AVR1619

Atmel AVR1619 6 Related documentation Atmel AVR1912: XMEGA-B1 Xplained Hardware user guide http://www.atmel.com/dyn/resources/prod_documents/doc8397.pdf Atmel AVR1916: USB DFU bootloader for XMEGA http://www.atmel.com/dyn/resources/prod_documents/doc8429.pdf Atmel FLIP http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3886 Atmel AVR Software Framework http://www.atmel.com/asf Atmel AVR XMEGA B Manual http://www.atmel.com/dyn/resources/prod_documents/doc8291.pdf Atmel AVR Studio 5.0 http://www.atmel.com/dyn/products/tools_card.asp?tool_id=17212 Atmel AVR4900: ASF - USB Device stack http://www.atmel.com/dyn/resources/prod_documents/doc8360.pdf 11

7 Table of contents Features... 1 1 Introduction... 1 2 Environment... 2 3 Firmware setup... 3 3.1 Downloading the firmware... 3 3.2 Rebuilding the firmware... 3 3.2.1 Atmel ATxmega128B1 revision A considerations... 3 4 Host application setup... 5 5 Running the demonstration... 6 5.1 Connecting the Atmel XMEGA-B1 Xplained to USB... 6 5.2 Using the XMEGA-B1 Xplained demonstration firmware... 6 5.2.1 Using the USB mass storage interface... 7 5.2.2 Using the USB generic HID interface... 8 5.2.3 Using the host application to display information... 10 6 Related documentation... 11 7 Table of contents... 12 12 Atmel AVR1619

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: (+1)(408) 441-0311 Fax: (+1)(408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Milennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan 16F, Shin Osaki Kangyo Bldg. 1-6-4 Osaki Shinagawa-ku Tokyo 104-0032 JAPAN Tel: (+81) 3-6417-0300 Fax: (+81) 3-6417-0370 2011 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof, AVR, AVR Studio, DataFlash, XMEGA, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Windows and others are registered trademarks or trademarks of Microsoft Corporation in U.S. and or other countries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.