SMT USB AVR Programmer

 

Here is the first iteration of the AVR µISP programmer. This is based on the usbtinyisp from adafruit, that was in turn based on Dick Streefland's USBTiny and the USB stack at www.obdev.at.  but smaller and with all SMT parts except for the 10 and 6 pin headers. 

I chose to spin my own design since I wanted to use it in a few different modes.First, I wanted to use a standard ISP cable.  Second, I wanted to be able to insert pins from the programmer into boards without requiring the ISP header pins populated.  Third, I wanted the capability to attach QFP and SOIC clips.  And finally, by placing a female connector on the bottom of the programmer, it is possible to place the entire programmer atop a board header.

There are only a few differences in this design

  • 100 Ω series resistors instead of 1500 Ω
  • Mini USB connector
  • Blue LED instead of green
  • Pin mapping of the AVR is slightly different

The entire board is 46mm x 20mm (about 1.8" by 0.8").  The hex code is available below, but if you want to build the code yourself, be certain to use GCC 3.x version.  The 4.x versions do not do well with the AVR code size and this program is extremely tight in the ATTiny2313.  Secondly, you will need a way to load the initial firmware into the AVR.  I used my old standby, the SP12 that I have used for several years. 

Since it is based on other designs, this one works with the avrdude programmer as well.  Unfortunately the USB organization has come down on the people parcelling out PIDs, so you may have a difficult time getting another one if you so desire.

In addition to using this for programming AVRs, it may be used as a generic SPI controller or JTAG interface.  It does not have enough pins for TMS, TCK, TDI, TRST, and TDO.  However, many parts (and every Xilinx part I've ever used) do not have a TRST so with just the 3 outputs and 1 input it is possible to program Xilinx FPGAs and CPLDs.  You may need a pullup on TDO.  Then you can use the playxsvf program to sent a bitstream to the part.  I currently use a variant of this for programming the ps3toothfairy devices.  I implemented the same thing with the SP12, but it is parallel only and support for parallel ports is dwindling.

modifying the code

If you decide to make some design changes and spin your own board, you'll need to edit the c code and the header file.  The pins are well labeled except for a couple of writes to PORTD.  Just search for PORTD in the spi.c code and update for your particular configuration.  It is wise to read through the USB headers as well as the usbtiny.h file to understand what you can and cannot change in your design.

If you build the code and it is too large for the device, you have a couple of options.  If it is a few bytes off, you can try reducing the string size in usbtiny.h.  If it is much too large, you probably have something wrong in your compile or build settings.  Check the makefile and be certain you aren't building with the gcc 4.x toolchain.

You can operate the device with avrdude.  You may need to add in usb support depending on your platform (it is needed for cygwin).

Anyway, enjoy and thanks to the folks that made previous designs possible.

build it

Here are pictures of the schematic and gerbers.  Download the design below.  We may make some available for purchase (especially since you need some method to initially program the micro).  The build is not difficult with an iron, but it is likely easier with a toaster oven or hotplate reflow.  (I've built a couple all with an iron in a couple of minutes).  Click the images to get a larger view.  The crystal goes either direction since the pins are at the corners. 

Here is the BOM.  None of the parts are particularly critical, other than you need to make sure to get the proper footprint. 

Qty Value Part
RefDes
1  12MHz CTS 406 OSC
2   LED 0805 LED1, LED2
1 0.1uF 0805 C1
3 1.5K 0805 R3, R5, R6
2 3.6V ZENER SOD80C D1, D2
1 10K 0805 R8
2 18pF 0805 C13, C19
2 27 0805 R1, R2
1 74HC125D 74HC125D U1
2 100 0805 R4, R7
1 100uF PANASONIC D C2
1 ATTINY2313SO ATTINY2313SO U2
1 MINI-USB  MINI-USB X1

downloads

Note that updates were made to the Eagle files after the prototype and I haven't fabbed any from this design yet. It should work (as it was just moving some traces), but as with anything you download, trust-but-verify.

license


The USBtiny software is licensed under the terms of the GNU General
Public License as published by the Free Software Foundation, either
version 2 of the license, or (at your option) any later version. A
copy of the GPL version 2 license can be found in the file COPYING.

 

re

Very interesting schema. I never thought it might be so simple though it needs tons of knowledge to accomplish. Anyway thanks for your ideas. It helps me a lot. term paper services

When searching some information about lipodrene ephedra I constantly find lots of interesting posts as this one

Official site for Ed Hardy Designer Hoodies, Womens Blouses, Designer T Shirts, Ed Hardy Tees,
Ed Hardy Hats, Ed Hardy Shoes and Ed Hardy Caps, swimwear
Ed Hardy
Ed Hardy Womens Jeans
Ed Hardy Womens Knits
Ed Hardy Womens Lingerie
Ed Hardy Womens Sandals
Ed Hardy Womens Swimwear
Ed Hardy Womens T-Shirts
Ed Hardy Bags
Ed Hardy sale
Ed Hardy Belts
Ed Hardy Caps
Ed Hardy Sunglasses
Ed Hardy clothes
Ed Hardy shoes

supply in stock and custom lace front wigs, full lace wigs, lace wigs, human hair wigs,
remy lace front wigs, cheap wigs, cheap, buy, celebrity
full lace wigs
lace wigs
lace wigs sale
lace front wigs
synthetic front lace wigs
A Famous Dresses Shop which sell directly Wedding Dresses, Evening Dress, Bridesmaid Dresses,Prom dresses
cheap wedding dresses
cheap evening dresses
cheap prom dresses
cheap evening dresses
cheap prom dresses
Elegant evening dresses are always associated with the brides and their bridesmaids.Shopping for evening dresses and your wedding dress in stylish bridal ..

wedding dresses
on best wedding dresses for 2009 and 2010. You can find latest collection of woman's dresses and casual dresses on this site
discount Prom dresses
discount wedding dresses
a series of discount Wedding Dresses, Including Wedding gowns, Evening gowns, Wedding Dress, Bridal gowns and Bridal Dress
wedding dresses
prom dresses
Look more beautiful than you've ever imagined in top designer dresses

Thank you very much, and I learned a lot here, I intend to set up a period of a sale on the web site design circuit boards to help you Oh, please
completed cross stitch
Chinese embroidery
credit crad

Wish I have the luxury of time to consider using the benefits these site can offer.....

blackhawk holsters

I found some interesting articles about this by means of torrents search and tried this myself already. This is pretty neat. I already use an USBtinyISP ($22, cheaper than mouser’s, from AdaFruit), but I’d consider building one of these just to get some experience with SMD.
Plus, then I could just carry it around. Next time I’m talking to someone and they say “I’d like to try an AVR project sometime”, I could just whip it out and say “here you go, go nuts!”

USB is everywhere now! my Research Paper Writer boss says it's the future!

This is a very great idea :)
You must ensure some security constraints
What kind of widgets can your share? Can you share your panel? Can you share your taskbar or systray? What you are doing is great. I wish you success in what you are doing.

custom essay
- my blog, if you somehow need it.

i'm sure i know some ways to help ya, for example, Professional resume is always here to help you

sorry about the broken download links ....

wty

The Lingerie Store,The lingerie and nightwear SALE at Style Lingerie. All lingerie sale garments marked 30% to 70% off.
Sexy lingerie, ladies underwear and designer nightwear
lingeri shop
Bridal lingerie
sexy lingerie
Lingerie, sleepwear and intimate apparel is our specialty, ranging from sexy lingerie to bridal lingerie,
including corset, bras, thongs and stockings.
lingerie sale
canon thermos travel mug,canon lens 24-105 mug,canon lens 70-200 mug
mugs shop
Canno Lens Mug
Canno Lens Coffee Mug
Nikon Lens Coffee Mug
Lens Coffee Mug
Canno Lens Coffee Mug, Ceramic Mugs,Nikon Lens mugs,canon thermos travel.Best Discount Mugs provider.