
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
Tool needed to develop firmware:
AVR Studio 4
•
• WinAVR
• Programmer (JTAGICE MKII, AVRISP MKII, STK500)
®
500)
AVR based
125kHz RFID
Evaluation Kit
(Re)Programming
Guide
Fuse Settings:
Fuse bits must be set properly for the kit to function. The only fuse bits that should be
set are listed below.
•
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.
ATA2270-EK1
5241A–RFID–12/07

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
5241A–RFID–12/07

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.
5241A–RFID–12/07
3