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

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

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

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

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

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

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

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

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

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

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

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

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

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

8-bit Microcontroller with 2K/4K/8K Bytes In-System Programmable Flash. Appendix A. Preliminary. ATtiny261 ATtiny461 ATtiny861 Automotive

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

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

AVR ONE!... Quick-start Guide. EVK Windows 32103C AVR ONE! 02/10

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

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

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

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

Rad Hard FPGA. AT40KEL-DK Design Kit Content. Description. Kit Content. Reference Material. Support

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

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

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

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

ATDH2200E Programming Kit... User Guide

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

Atmel QT600 Quick Start Guide Touch Solutions

AVR32 UC3 Software Framework... User Manual

STK521. User Guide B AVR 01/12

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

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

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

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

ATA2270-EK1. User Guide

Interfacing the internal serial EEPROM

AT89C51CC03 UART Bootloader

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

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

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

Embedded AVR Microcontroller Including RF Transmitter and Immobilizer LF Functionality for Remote Keyless Entry ATA5795. Summary.

ATAVRAUTO User Guide

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

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

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

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

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

AVR515: Migrating from ATmega48/88/168 and ATmega48P/88P/168P/328P to ATtiny48/88. 8-bit Microcontrollers. Application Note. Features.

CAN, 80C51, AVR, Microcontroller. Application Note

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

ATAVRAUTO User Guide

Trusted Platform Module AT97SC3203S. SMBus Two-Wire Interface. Summary

512K (64K x 8) 3-volt Only Flash Memory AT29LV512

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

AVR501: Replacing ATtiny15 with ATtiny25. 8-bit Microcontrollers. Application Note PRELIMINARY. Features. 1 Introduction

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

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

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Preparations. Creating a New Project

4-megabit (512K x 8) 5-volt Only 256-byte Sector Flash Memory AT29C040A

2-megabit (256K x 8) 5-volt Only Flash Memory AT29C020

SAM Boot Assistant (SAM-BA)... User Guide

1-megabit (128K x 8) 3-volt Only Flash Memory AT29LV010A

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

AT17 Series FPGA. Configuration Memory. Application Note. In-System Programming Circuits for AT17 Series Configurators with Atmel and Xilinx FPGAs

2-megabit (256K x 8) Single 2.7-volt Battery-Voltage Flash Memory AT29BV020

AT89STK-10 Starter Kit... Hardware User Guide

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

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI

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

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

Section 1 ATAVRAUTOEK1 Getting Started

Atmel CryptoAuthentication Starter Kit

8-bit Microcontroller. Application Note. AVR030: Getting Started with C for AVR

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

AT89C5131 Starter Kit... Software User Guide

MARC4. Application Note. Hints and Tips for Hard- and Software Developments with MARC4 Microcontrollers

64K (8K x 8) High Speed Parallel EEPROM with Page Write and Software Data Protection AT28HC64BF

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

8-bit Microcontroller. Application Note. AVR031: Getting Started with ImageCraft C for AVR

1-megabit (128K x 8) Paged Parallel EEPROM AT28C010

AT17(A) Series FPGA Configuration Memory. Application Note

T89C51CC02 CAN Bootloader

hex file. The example described in this application note is written for the AT94K using the FPSLIC Starter Kit. Creating a New Project

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

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

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

AT91 ARM Thumb Microcontrollers. Application Note. Migrating to an AT91SAM9G20-based System from an AT91SAM9260-based System. 1. Scope. 2.

Power Management and Analog Companions (PMAAC) Application Note. AT73C240 Power-On and Power-Off Sequences. 1. Scope. 2. Operating Conditions

TSC695. Application Note. Annulled Cycle Management on the TSC695. References

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

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

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

AT73C246-EK1 Evaluation Kit... User Guide

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

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

64K (8K x 8) Battery-Voltage Parallel EEPROM with Page Write and Software Data Protection AT28BV64B

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

Transcription:

Overview Atmel encourages the use of this kit to develop a prototype platform for evaluation of the intended application. The source code is included in the CD with the kit, but for the latest revision please check the Atmel web site (www.atmel.com) for new releases. This kit was designed to make modification or upgrading the firmware a very simple and quick process. The kit accepts two very common programming interfaces, ISP and JTAG. Firmware v3.0 and later will also allow re-programming via the serial port. Tools needed for firmware upgrade: AVR Studio 4 Programmer (AVRISP MKII, JTAGICE MKII, STK 500) Tool needed to develop firmware: AVR Studio 4 WinAVR Programmer (JTAGICE MKII, AVRISP MKII, STK500) Fuse Settings: Fuse bits must be set properly for the kit to function. The only fuse bits that should be set are listed below. AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1 JTAG Interface Enabled; (JTAGEN=0) Serial program downloading (SPI) enabled; (SPIEN=0) Boot Flash section size=1024 words Boot start address=$fc00; (BOOTSZ=10) Boot Reset vector Enabled (default address = $0000; (BootRST=0) Brown-out detection level at VCC=2.7V; (BODLEVEL=1) Int. RC OSC. 8MHz; Start-up time; 6CK + 64ms; (CKSEL=0100 SUT=10) All others should be unchecked These fuses can be programmed using the tools described below. This only needs to be preformed once. Subsequent flashing of the memory does not affect the fuse settings. Fuse settings should only be modified if the change is well understood. For example, changing the clocking from Int. RC OSC to external could render the device unusable without extensive work. Or removing the SPI enabled fuse setting could make programming impossible without using a second tool. ISP Programming ISP is a downloading method where only six I/O lines are needed. The provided header works with the ATSTK500 as well as the AVR ISP In-System Programmer (ATAVRISP MKII). Both of these are available from Atmel or distributors for very low cost program development.

To program the flash memory and the EEPROM, first connect the programming tool to the Main Board (MB) using a six-pin ribbon connector. The ISP header is the six pins located directly above the power plug. Make sure that proper orientation is maintained by aligning pin1 to prevent power to ground shorts. 1. Open AVR Studio4 and select "Program AVR", then "Connect..." from the "Tools" menu. Cancel the welcome screen if necessary. 2. Connect to the STK500 or AVRISP MKII by selecting "STK500 or AVRISP MKII" in the Platform List. Then select "Connect...". 3. The programming dialog box should appear. Note that the system supports other programming platforms as well, like the JTAGICE mkii. 4. Next select the AVR target device (ATmega128) from the pull-down menu on the Program tab and locate the Intel-hex file to download. This can be the pre-compiled firmware that was downloaded from the Atmel web site (or from the CD) or code that has been customized for a specific application. 5. Select the "program" button. 6. Repeat this procedure with the file containing EEPROM initial values. 2 ATA2220

ATA2220 JTAG Programming/Debugging The same steps apply when using the JTAGICE MKII as a simple programmer. Simply connect the JTAG 10-pin cable to the MB header, above the ISP connector, and proceed as detailed in the ISP section. The benefit of the JTAG Platform is that it allows more control during software development by allowing real-time debugging of the source code. The JTAGICE MKII supports setting breakpoints and stepping through the code being executed on the target micro in real-time. This is very useful for a more complex software project such as this one. To get started, make sure that the latest version of AVR Studio and WinAVR has been installed on the PC. Download the latest revision of the firmware for the ATA2270-EK1 kit from the Atmel web site and unzip it to a working folder. Start AVR Studio and click the Open button on the welcome screen. Select the ATA2270-EK1.aps file from the working folder. 3

This will open up the C complier in AVR Studio and allow development and debugging of the firmware all from one simple platform. Once opened, this platform displays the source files on the left (both.c and.h) and allows editing of each file in the main screen. Once the changes have been made, real-time debugging is achieved by selecting Build then Build and Run from the menu. This will compile the source code, flash the target device, and begin code execution. 4 ATA2220

ATA2220 Serial Port Bootloader Programming This section applies only to kits with firmware v3.0 or later already programmed into the microcontroller. The bootloader firmware allows the kit to be upgraded using only the serial port on the kit. In order to begin, on the ATA2270-EK1 first navigate to the PC>Upgrade Firmware option and press ENTER. Press ENTER a second time to confirm the desire to enter bootloader mode. On the PC, open AVR Studio and choose Tools>AVR Prog from the menu. Press the Browse button and choose the appropriate flash (Intel-hex) file to load. This should have a.hex extension. 5

Press the Program button under the Flash section. Answer Yes to the two warning messages that will appear. These are warnings that the boot section can not be overwritten and that portion of the file will be ignored. Again press the Browse button and locate the EEPROM file. This has a.eep extension. Press the Program button located in the EEPROM section. Once both of these actions have been successful, pressing the Exit button will leave bootloader mode. The ATA2270-EK1 should re-start and display the main screen with the newly upgraded firmware. 6 ATA2220

ATA2220 The complete User Guide for the ATA2270-EK1 is available on the Atmel website along with other Application Notes and Datasheets to help with problems encountered. If you have any other questions about using the Evaluation Kit or designing with Atmel RFID, please do not hesitate to contact us: Toby Prescott, North American RFA Applications Engineer, 719-540 6947, tprescott@cso.atmel.com Jim Goings, North American RFA Applications Manager, 719-540-6873, jgoings@cso.atmel.com Nicolas Schieli, North American RFID Business Development, 514-878-8113 x228, nschieli@cso.atmel.com 7

Revision History Doc Rev. Date Comments 5241A 12/2007 Initial document release. 8 ATA2220

Headquarters International Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Atmel Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 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 www.atmel.com Technical Support rfid@atmel.com Sales Contact www.atmel.com/contacts Literature Requests 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 CONDI- TIONS 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 INCIDEN- TAL 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. 2007 Atmel Corporation. All rights reserved. Atmel, logo and combinations thereof, AVR, AVRStudio, STK and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.