Universal AVR programmer

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
zejtuni
 
Posts: 2
Joined: Tue Sep 04, 2012 12:11 pm

Universal AVR programmer

Post by zejtuni »

Hi all,

I am a newbie to AVR.
I understand there is a whole family of AVR chips- tinyAVR, mega avr, ATmega etc.
Is there a single programmer for them all ?
Do they all have 6 pin or 10 pin ISP pins ??

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Universal AVR programmer

Post by adafruit_support_rick »

zejtuni wrote: Is there a single programmer for them all ?
Depends on what you mean by "programmer". The chips themselves have SPI interfaces, and support programming over SPI. There is no universal device with sockets to accept any bare chip, however. You would typically create a circuit to bring out the SPI lines, and provide a system clock. You would then use a software utility such as avrdude to program the chip through an SPI interface device such as Adafruit's USBtinyISP.

Some AVRs with on-chip USB are shipped from Atmel with a USB bootloader already in flash.

If you look through the Arduino Playground, you can find more information on programing various chips:
Examples:
http://arduino.cc/playground/Code/Programmer2
http://arduino.cc/en/Hacking/ParallelProgrammer

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Universal AVR programmer

Post by westfw »

The chips themselves have SPI interfaces, and support programming over SPI.
Alas, not all of them.
There is also "HV Parallel programming", which is the only way to program some of the older AVRs.
And there is "HV Serial programming", which was needed on the ATtiny11 (which gained some popularity when Atmel was selling them for $0.25 each, and lost it when the chip was discontinued.)
And there are PDI amd JTAG, used on some of the newer chips.
And there is TPI, used to program the extra-tiny ATtiny4 and similar chips.

SPI progammers like the USBtinyISP will program MOST chips, though.

eventhorizon
 
Posts: 114
Joined: Tue Jan 25, 2011 6:09 pm

Re: Universal AVR programmer

Post by eventhorizon »

There is no universal device with sockets to accept any bare chip
What about the AVR Dragon, and STK500? don't those have plenty of sockets and configurations where in you can flash just any AVR chip?

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”