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



Similar documents
AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. 8-bit Microcontrollers. AVR293: USB Composite Device

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

AT91SAM ARM-based Flash MCU. Application Note

USER GUIDE. ZigBit USB Stick User Guide. Introduction

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

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

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary. Features. Applications. 1. Description

USER GUIDE EDBG. Description

AVR ONE!... Quick-start Guide. EVK Windows 32104B AVR ONE! 02/10

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

AVR2004: LC-Balun for AT86RF230. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

8051 Flash Microcontroller. Application Note. A Digital Thermometer Using the Atmel AT89LP2052 Microcontroller

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR245: Code Lock with 4x4 Keypad and I2C LCD. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Introducing a platform to facilitate reliable and highly productive embedded developments

AVR055: Using a 32kHz XTAL for run-time calibration of the internal RC. 8-bit Microcontrollers. Application Note. Features.

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

256K (32K x 8) Battery-Voltage Parallel EEPROMs AT28BV256

General Porting Considerations. Memory EEPROM XRAM

AT88CK490 Evaluation Kit

AVR1003: Using the XMEGA Clock System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview

8-bit RISC Microcontroller. Application Note. AVR910: In-System Programming

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.

8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

Two mechanical buttons Two user LEDs Four expansion headers. Board controller with USB interface. One power LED and one status LED

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AT89C5131A Starter Kit... Software User Guide

64K (8K x 8) Parallel EEPROM with Page Write and Software Data Protection AT28C64B

How To Design An Ism Band Antenna For 915Mhz/2.4Ghz Ism Bands On A Pbbb (Bcm) Board

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

APPLICATION NOTE. Atmel AVR2033: SAM-ICE Adapter Hardware User Manual. 8-bit Atmel Microcontrollers. Features. Introduction

AVR106: C functions for reading and writing to Flash memory. 8-bit Microcontrollers. Application Note. Features. Introduction

AN3354 Application note

AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

CryptoAuth Xplained Pro

APPLICATION NOTE. Atmel AVR600: STK600 Expansion, Routing and Socket Boards. Atmel Microcontrollers. Introduction

AVR32110: Using the AVR32 Timer/Counter. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32737: AVR32 AP7 Linux Getting Started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

Quest vworkspace Virtual Desktop Extensions for Linux

AT91 ARM Thumb Microcontrollers. Application Note. Interfacing a PC Card to an AT91RM9200-DK. Introduction. Hardware Interface

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

Atmel AVR4027: Tips and Tricks to Optimize Your C Code for 8-bit AVR Microcontrollers. 8-bit Atmel Microcontrollers. Application Note.

AVR 32771: USB High speed Device Mass storage on SD/MMC card with optional AES. 32-bit Microcontrollers. Application Note. Features.

1Mb (64K x 16) One-time Programmable Read-only Memory

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

AT89LP Flash Data Memory. Application Note. AT89LP Flash Data Memory API. 1. Introduction. 2. Theory of Operation. 2.1 Flash Memory Operation

Application Note. USB Microcontrollers. USB PC Drivers Based on Generic HID Class. 1. Introduction

8-bit Microcontroller. Application Note. AVR461: Quick Start Guide for the Embedded Internet Toolkit. Introduction. System Requirements

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

AVR32100: Using the AVR32 USART. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Section 1 Introduction to the AT91SAMD20 and the Development Environment

Atmel AVR1923: XMEGA-A3BU Xplained Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

8-bit RISC Microcontroller. Application Note. AVR236: CRC Check of Program Memory

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE

8-bit Microcontroller. Application Note. AVR222: 8-point Moving Average Filter

formerly Help Desk Authority Quest Free Network Tools User Manual

MODFLEX MINI GATEWAY ETHERNET USER S GUIDE

Transcription:

AVR1922: Xplain Board Controller Firmware Features USB interface - Mass-storage to on-board DataFlash memory Atmel AVR XMEGA TM reset control 1 Introduction The Xplain board controller, an AT90USB1287, is in charge of some of the lowlevel tasks on boards in the Xplain series. The board controller improves usability of the main microcontroller, and adds features the main controller lacks, like USB. Some of the tasks the board controller can handle are moving data to and from the board over the USB interface, for example mass-storage or USB-to-serial. Note that not all Xplain boards carry multiple microcontrollers; in these cases the main microcontroller will provide the board controller features when applicable. 8-bit Microcontrollers Application Note Figure 1-1. Board controller on the Xplain board marked in a red circle Rev.

2 Xplain Board Controller Hardware Features This chapter will walk through the features available when having a separate board controller. 2.1 USB Interface 2.1.1 USB-to-serial Interface All Xplain boards features an USB connector. This connector has a dual purpose; power and USB interfaces. When the USB connector is wired to the board controller, it can be used for various tasks depending on the firmware. The main microcontroller will have one UART wired to the board controller. This serial port can then be shared as a CDC/ACM USB class (USB-to-serial) on the USB interface. Having a USB-to-serial interface can be useful for debugging the main application running on the board, or for transferring data back and forth to an external host. 2.1.2 USB Mass-storage Interface 2.2 AVR XMEGA Reset Line Control 2.3 AVR XMEGA Program and Debug Interface When connected to a PC the Xplain board can share any external memories available for the board controller as mass-storage devices on the USB interface. This will present the on-board flash memory as a block device on the host side, and users are free to use them as they like. Typically storing data files, images, etc. there, for use with the main microcontroller. The board controller has wired an I/O line to the AVR XMEGA reset line. This line can be used to control the reset state of the main microcontroller. To program the main microcontroller, the board controller is wired to the program and debug interface (PDI) on the AVR XMEGA device. This interface can be used to program new firmware into the main microcontroller from the board controller. 2 AVR1922

AVR1922 3 Xplain Board Controller Firmware 3.1 Features The board controller firmware currently supports the following features: DataFlash initialization read and write. AVR XMEGA reset control. USB mass-storage interface. USB mode switching. The firmware will on power up hold the AVR XMEGA device in reset while it tries to probe the on-board DataFlash memory. When the firmware has identified the DataFlash device it will read the level of an I/O line to select USB mode. A low level on the I/O line will make the AT90USB1287 chip enter mass-storage mode and share the DataFlash on the USB interface, thus keeping the AVR XMEGA device in reset. If the I/O is high, the AT90USB1287 chip will release the AVR XMEGA device and enter a slave like presence, not interfering with the AVR XMEGA. The AVR XMEGA is now free to access the DataFlash on the board without interference. Table 3-1. Board Controller USB mode switching functionality overview I/O line level AVR XMEGA reset USB mass-storage Left floating / high level Released after init Disabled Pulled low / low level Held in reset after init Enabled For specific mode switching behavior on the Xplain board, see chapter 3.1.1 USB Mode Switching on the Xplain Board on page 4. For more information about the mass-storage interface see chapter 2.1.2 USB Massstorage Interface on page 2. 3

3.1.1 USB Mode Switching on the Xplain Board To select between the two different USB modes on the Xplain board, the user has to either pull the TDI pin on the JTAG USB header to ground or leave it floating. This is done by placing a jumper between TDI and GND pin, see the figure below. Figure 3-1. USB mode switch pins located on the Xplain board 4 AVR1922

AVR1922 3.2 Compiling the Board Controller Firmware The following step by step guide will compile the board controller firmware for the Xplain board. 1. Download and uncompress the compressed file archive from www.atmel.com/products/avr -> Application Notes -> AVR1922 Xplain Board Controller Firmware containing the Xplain board controller source code. 2. Open up your favorite command line console and change into the directory extracted from the compressed file archive. 3. Enter the apps/xplain-bc directory. 4. Compile the application by telling the build system what kind of configuration you would like to use. This is done by setting the CONFIG symbol. For additional help, type make help on the command line. See the example below for how to compile for the Xplain board: make CONFIG=xplain-bc 5. The application s output binaries will be in the top level build/xplain-bc/xplain-bc/gnu directory. The xplain-bc.elf and xplain-bc.hex files are probably most interesting. If the user does not use the GNU toolchain, the GCC part of the path must be changed appropriately. Also, the board name must be changed if another configuration has been used. 6. Use your favorite programming software and tool to program the ELF or HEX file into the AT90USB1287 chip on the Xplain board. See chapter 4.1 Reprogramming the Xplain AT90USB1287 and ATxmega128A1 Firmware for further details. 4 Suggested Reading 4.1 Reprogramming the Xplain AT90USB1287 and ATxmega128A1 Firmware 4.2 Display Xplained Firmware Getting Started For details about how to program either device on the Xplain board see the application note AVR1921: Reprogramming the Xplain AT90USB1287 and ATxmega128A1 Firmware. This describes how to program the devices using either a programming tool, like AVRONE!, JTAGICE mkii or AVR Dragon, or programming software, like FLIP. The application note is available from the website at www.atmel.com/dyn/products/tools_card_v2.asp?tool_id=4506. It is recommended to look into the AVR1913: Display Xplained Firmware Getting Started application note, as this describes how the build system works and how to start using the software framework. The application note is available from the website at www.atmel.com/dyn/products/tools_card_v2.asp?tool_id=4506. 5

Disclaimer Headquarters International Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Atmel Asia Unit 1-5 & 16, 19/F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon Hong Kong Tel: (852) 2245-6100 Fax: (852) 2722-1369 Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-en- Yvelines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11 Atmel Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Product Contact Web Site http://www.atmel.com/ Technical Support avr@atmel.com Sales Contact www.atmel.com/contacts Literature Request www.atmel.com/literature 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 ATMEL S TERMS AND CONDITIONS OF SALE LOCATED ON ATMEL S WEB SITE, 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 OF 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 s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. 2010 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof, AVR, AVR logo, DataFlash and others, are the registered trademarks, XMEGA TM and others are trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.