USBtinyISP
Created by lady ada
Last updated on 2018-08-22 03:35:13 PM UTC
Guide Contents
Guide Contents
Overview
AVR programmer & SPI interface
Introduction
What's so great about it?
Easy to make
Easy to use
Easy to power
Easy to extend
2
4
4
4
4
4
4
5
5
F.A.Q.
Is this sold as an assembled programmer?
How hard is it to assemble?
Does this work with linux?
Why is there no Serial/COM/port (or /dev/ttyXX device) ?
Can I send serial messages using the USBtiny as well as programming, like an Arduino?
What chips can be programmed?
Can I program a bootloader (like an Arduino one) with USBtinyISP?
How do I program a bootloader onto an Arduino?
I need help getting this working
Does this work with the 8051-core (AT89) series chips?
What is "Self Program"?
6
6
6
6
6
6
6
6
6
7
7
7
Make It!
Make Make Make
Step-by-step
8
8
8
Preparation
Get ready to solder, sports-racers!
Tutorials
Tools
9
9
9
9
Parts list
Kit parts list
Schematic (v2.0)
14
14
15
Solder it!
Ouch, hot!
Make 6-pin cable (Old kits, without pre-made 6-pin cables)
Case
17
17
37
41
Parts (v1.0)
Kit parts list
Solder (v1.0)
V1.0 instructions!
Its very unlikely you have a v1.0 but we're keeping it around for historical record
Solder it!
Make 6-pin cable
Case
44
44
46
46
46
46
57
61
This is the list for very old kits, its very unlikely you have a v1.0 but we're keeping it around for historical record 44
Use It!
© Adafruit Industries
https://learn.adafruit.com/usbtinyisp
63
Page 2 of 88
How to use it!
Indicator LEDs
Programming Cables
Jumper JP3 (USB power to target)
Using it as an SPI interface
63
63
63
63
64
User Manual
How to use it!
Indicator LEDs
Programming Cables
Jumper JP3 (USB power to target)
Using it as an SPI interface
65
65
65
65
65
66
Drivers
AVR programmer & SPI interface
Windows 7, 8 & XP
Mac OS X & Linux
67
67
67
69
AVRDUDE
Using the programmer with AVRDUDE
For Windows
For Mac OS X
For Linux
AVRStudio
AVRISP/STK500v2 compatibility bridge
Notes
Step 1. COM bridge
Step 2. Install AVRStudio
Step 3. Download USBtiny500
70
70
71
71
72
74
74
74
74
80
80
Download
Windows Drivers
AVRDUDE
Hardware/Firmware Files for v2.0
Hardware/Firmware Files for v1.0
USBtiny500 compatibility bridge for AVR Studio
83
83
83
83
84
84
HELP!!!
Frequently Asked Questions
I'm running avrdude and I get "Initialization failed, rc=1"
Check:
It doesn't work with a USB 3 port
It's not working!
I'm running avrdude and I get "USB read error: expected 4, got -1" (or something similar)
My 64 bit computer doesn't seem to work!
I'm having trouble compiling/burning the chip for this project...
I'm running avrdude and I get "Could not find USB device 0x1781/0xc9f"
I'm having trouble building this project from scratch...
I'm running avrdude and I get "error at avrdude.conf:370 unrecognized character: 'u'"
I'm running avrdude and I get 'avrdude: Can't find programmer id "usbtiny"
85
85
85
85
85
86
86
86
86
87
87
87
88
© Adafruit Industries
https://learn.adafruit.com/usbtinyisp
Page 3 of 88
Overview
AVR programmer & SPI interface
Introduction
This is documentation for a simple open-source USB AVR programmer and SPI interface. It is
low
cost
(https://adafru.it/cf1),
easy to make
(https://adafru.it/cf2),
works great with
avrdude
(https://adafru.it/cf3),
is
AVRStudio-compatible
(https://adafru.it/cf4)
and tested under Windows, Linux and MacOS X. Perfect for students and
beginners, or as a backup programmer.
The project is based off of the
USBtiny code & design
(https://adafru.it/cf5).
The main improvements are: adjusting the
code to allow it to act as a
SpokePOV
(https://adafru.it/cf6)
interface, adding lowlevel bitbang commands, and addition
of a "USB good" LED. Other changes are new VID/PID (to make it official), removing some of the commands, and
moving around the pins a bit.
You can build this design using the
schematic and firmware
(https://adafru.it/cf7),
or buy a kit from the
Adafruit
webshop
(https://adafru.it/aK1).
Having a full kit available solves the "chicken & egg" problem of purchasing or building
a USB programmer that then needs a programmer of some sort to 'kick start'. (See
USBasp
(https://adafru.it/aNU),
AVRdoper
(https://adafru.it/cf8),
USBprog
(https://adafru.it/cf9))
All the firmware code is distributed under the GPL, the hardware design layout files are
CC 2.5 Attrib./Share-
alike
(https://adafru.it/c37).
What's so great about it?
Easy to make
Ultra low cost: programmer is $16 in parts, less than half the price of the AVRISP v2 ! (Kits are $22 and
available
from the adafruit shop
(https://adafru.it/aK1).)
Kit comes with both 6-pin and 10-pin AVR-standard connectors and cables. Almost no programmers that are not
from Atmel have both! (Including the AVRISP v2)
Easy to build: All through-hole parts, all common and available from large distributors.
Easy to use
© Adafruit Industries
https://learn.adafruit.com/usbtinyisp
Page 4 of 88
AVRdude compatible -
support for usbtiny added in v5.5!
(https://adafru.it/cf3)
USB drivers available for Windows
(https://adafru.it/cf7)
using libusb, no drivers needed for Mac OS X or Linux.
Durable off-the-shelf enclosure
High speed! Max clock rate is 400KHz. Write speed:1Kb/s, read speed: 2Kb/s. (Atmega8 takes 8s to write, 4s to
read/verify)
2 LEDs to indicate "USB/Power good" and "Busy"
I/O is buffered to allow programming of 2V-6V targets (v2)
Works with any AVR ISP chip with 64K of flash (or less) - does not work with Atmega1281/1280/2561/2560
Easy to power
Powered off of 5V USB bus at less than 100mA to allow it to be used with unpowered USB hubs
Easily accessable jumper to power target project off of USB (target must be 5V tolerant, of course)
Remove the jumper and it will self-power but buffer the I/O to match the target device. (v2)
Easy to extend
Easily interfaced with libusb
Existing firmware allows for fast SPI interfacing using USB
Bit-bang commands provide 8 bits of I/O control (including LED) for open-ended project ideas
© Adafruit Industries
https://learn.adafruit.com/usbtinyisp
Page 5 of 88