Great, mature but far from obsolete, budget programmer for use with Microchip/ATMEL devices. It is available since many, many years.
You can obtain both - a good quality DIY kit and a soldered, fully functional version. It works under Linux, Windows and MacOS. Official project page: www.fischl.de/usbasp. You will find there more detailed documentation and free for download firmware as well.
Programmer connects with the computer over USB port and acts as serial programmer (SPI). With just few wires attached, it can program chips directly, can also be used to access them over dedicated ports/circuits (ISCP). Of course it doesn't work just by itself. The program to drive the programmer is named avrdude. It is available as source code here: savannah.nongnu.org/projects/avrdude. Check bottom of this page for compiled, ready for use Windows binary version.
Avrdude is console application that can work in terminal mode. Invoking it can be automated with use of Makefile-s. It can be integrated with popular IDE-s like AVR Studio and/or Arduino as well.
To program ATmega devices or their smaller brothers - ATtiny ones, only few signal wires are needed plus the DC power supply.
usbasp X2 pin | uC pin |
---|---|
1 | MOSI |
2 | JP1 USB 5V |
5 | RESET |
7 | SCK |
9 | MISO |
8,10 | GND |
Here is an example of getting on the screen value of low fuse byte. Important options to remember are the -p followed by the target uC model name and -U with four colon-separated fields. 1st one is the accessed memory type, like: flash, eeprom, lfuse or hfuse. 2nd tells the type of operation performed and can be r, w or v. It stands for read, write and verify respectively. 3rd parameter is disk file name or "-" character for console output. And finally, 4th field tells the format of handled data: i-intel, r-raw_binary, h-hex, d-decimal, etc.
$ avrdude -c usbasp -p t25 -q -q -U lfuse:r:-:h 0xdf $
To get full avrdude output on the screen, just remove the two -q switches. It's not a mistake they've been given twice... Much more can be found in the program manual or in other online resources.
File | Version | SHA1 |
---|---|---|
Design diagram | R2 | bb3865ee67f0d502d9ae901d35bde1dcd15298ec |
PCB layout | R2 | 6c523a554b3274fe6ff94601770d4f1422167a9c |
avrdude | 6.3 | a9fa4f1e22c59803d6f7a411ae5a359ca039d976 |
libusb | 1.2.6.0 | e1362d9ba4a9c9b30394691e7acdee05631fd54e |
Winddows 10 | 1 | 19951d948cd5e15a3bd063965fb7f0604461f8f1 |
Firmware fun | 1 | 00ef2e8d5cbdc4514c8765f3aa3548a111060a89 |