Universal AVR programmer

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Universal AVR programmer

Postby zejtuni » Tue Sep 04, 2012 12:14 pm

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 ??
zejtuni
 
Posts: 2
Joined: Tue Sep 04, 2012 11:11 am

Re: Universal AVR programmer

Postby adafruit_support_rick » Tue Sep 04, 2012 12:34 pm

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
adafruit_support_rick
 
Posts: 3139
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Universal AVR programmer

Postby westfw » Tue Sep 04, 2012 8:28 pm

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.
User avatar
westfw
 
Posts: 1328
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area

Re: Universal AVR programmer

Postby eventhorizon » Mon Dec 24, 2012 12:16 am

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?
-----------------------------------------------------------------------------------------------
Out of one hole, and into another.
eventhorizon
 
Posts: 114
Joined: Tue Jan 25, 2011 5:09 pm
Location: Quezon City, Philippines


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]