attiny45

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
matulisc
 
Posts: 5
Joined: Sun Dec 02, 2007 9:30 pm

attiny45

Post by matulisc »

what is the best way to connect the attiny45 to the tinyisp cable.

CCarlson
 
Posts: 35
Joined: Mon Sep 24, 2007 11:55 am

Post by CCarlson »

If it's a DIP-style ATtiny45, make a minimalist target board.

matulisc
 
Posts: 5
Joined: Sun Dec 02, 2007 9:30 pm

Post by matulisc »

I am using ATTINY45V-10SU-ND I think it is a surface mount.

CCarlson
 
Posts: 35
Joined: Mon Sep 24, 2007 11:55 am

Post by CCarlson »

Aha. Are you perchance making LED fireflies?

In any case, get a Pomona 5250 SOIC test clip and a copy of the ATtiny45 datasheet. Wiring up the clip to connect the appropriate pins is straightforward.

I *do* recommend making an adapter cable for the clip rather than soldering it directly to the ribbon cable coming from the USBtinyISP.

User avatar
caitsith2
 
Posts: 217
Joined: Thu Jan 18, 2007 11:21 pm

Post by caitsith2 »

The ATtiny45 is identical in pinout to ATtiny25 and ATtiny85. (just different flash sizes.)

Pin 1 = Reset
Pin 2 = XTAL1 (if external oscillator is required) (Fuses are set by default to use internal oscillator.)
Pin 3 = XTAL2 (if external oscillator is required)
Pin 4 = Gnd
Pin 5 = Mosi
Pin 6 = Miso
Pin 7 = Sck
Pin 8 = Vcc.

Finally, if you only have USBTinyISP available, Never EVER set the debugwire, reset disable or ISP disable fuses, if you wish to be able to program the chip again.

matulisc
 
Posts: 5
Joined: Sun Dec 02, 2007 9:30 pm

Post by matulisc »

Yes I am trying to make the led fireflies.

I got the Pomona 5250 SOIC and wired it up and i can read the attiny45v but cant write. I am not sure what file I need to upload to the chip. I tried the firefly.hex and the song1a.h file

This is what my cmd.exe looks like

C:\user\matuli>avrdude -c usbtiny -p attiny45 -u flash:w:firefly.hex

avrdude: AVR device initialized and ready to accept instructions

Reading : ######################### : 100% 0.01s

avrdude: Device signature = 0x1e9206

avrdude done. thank you.

C\Users\matuli>

I put the hex file in the C: dir

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

you need a -U not a -u

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

Return to “USBtinyISP”