Recently I’ve been doing some Atmel AVR Xmega work. The Atmel website says that their low-cost programmer, the AVRISP2, can be used to program an xmega device. But their (current) documentation would appear to tell a very different story. If you read the documentation, you’d reasonably conclude that it wouldn’t work at all.
In fact the AVRISP MkII can be used to program an Xmega part. You just need to know how to hook it up.
First of all, make sure you’re using the very latest version of AVR Studio, as you’ll need to use that as your programming software. (AVR Studio also contains a decent IDE, and a plugin to support the free WinAVR C compiler, so it’s actually much more than just a programming program, if you want it to be.)
The AVRISP2 has a 6-pin header. Here’s how to connect it to an Xmega part:
AVRISP2
PIN1 - xmega PDI data pin
2 - xmega VCC power rail
3 - no connect
4 - no connect
5 - xmega PDI clock (often the xmega reset pin)
6 - xmega GND power rail
That’s it. Only 4 pins to hook up. Now you can tell AVR studio which xmega part you have, select the AVRISP MkII programmer, and program away. Easy!
5 Responses
Willie Visagie
26|Oct|2009 1This is true. I also use the AVR ISP MKII to program XMega’s via PDI programming. Very fast actually. Question though? How do you use this vir AVRDude, so that I can use this via eclipse?
Regards
frank
26|Oct|2009 2I don’t know. Last time I checked AVRdude, it didn’t support this. I guess it’s just a matter of keeping an eye on AVRdude periodically and waiting until it’s supported.
a.shyamsundar
27|Oct|2009 3hi
this is shyam sundar actually i also heard about AVR but how to use/program it is not known can any one tell me how to ues it/program it
frank
27|Oct|2009 4This is a good place to start:
http://www.avrfreaks.net/
Willie Visagie
17|Mar|2010 5It works in eclipse. Just need to install new usb drivers. Google it…
Leave a reply
Search
Categories
Archives
Links
Calendar
A design creation of Design Disease
Copyright © 2009 - Frank's Random Wanderings - is proudly powered by WordPress
InSense 1.0 Theme by Design Disease.