Pages: [1]   Go Down
Author Topic: ATtiny85 as ISP  (Read 1274 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello there,

Just wondering if it's feasible to "easily" make ATtiny85's into AVR programmers?
I'm making a little AVR programming box for our learning centre. I'd much rather use our centre's extreme excess of ATtiny85's for a buck each rather than use an actual Arduino. I saw that there is SPI on a diagram here http://arduinoelettronica.files.wordpress.com/2012/02/attiny85_pinout.png

I've also read that ATtiny's do not actually have native SPI, so I'm not sure if this is even possible. Or how much fuse-diving and code-diving would be involved. Or if SPI is even needed necessarily.

Any direction, suggestions, or comments are greatly appreciated. The idea is to be able to flash code for other ATtiny's, ATmega's, and maybe even other MCU's if possible.

-Nic
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the 85 doesnt have enough ram

maybe it could be done, I dunno, but out of the box your looking at ram and the lack of serial hardware.
Logged


Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1049
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This one?

http://tequals0.wordpress.com/2011/09/26/attiny45-based-usbtinyisp-programmer/
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 142
Posts: 5275
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello there,

Just wondering if it's feasible to "easily" make ATtiny85's into AVR programmers?

"Easily?" No.

I'm making a little AVR programming box for our learning centre. I'd much rather use our centre's extreme excess of ATtiny85's for a buck each rather than use an actual Arduino.

Decent ISP programmers go for about $8 on eBay. There's some cheaper ones, too, but I never tried them.

With a few cheap programmers you could put your pile of Tiny85s to use as little programmable chips. Teach people to build stuff with them.

http://arduino.cc/forum/index.php/topic,148155.0.html

I've also read that ATtiny's do not actually have native SPI

The have "USI" which is hardware support for a number of serial interfaces like SPI, I2C, etc. You have to add a tiny bit of software to make it work as SPI.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Valencia, Spain
Online Online
Faraday Member
**
Karma: 142
Posts: 5275
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


OK, that surprised me... smiley

Still, now I know how to use ATtinys as USB devices.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Valencia, Spain
Online Online
Faraday Member
**
Karma: 142
Posts: 5275
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, that surprised me... smiley

Although it shouldn't. The Tiny2313 in my ISP programmer has less RAM/flash than a Tiny85.

And that begs the question: Why do they use Tiny2313s in ISP programmers? They cost more than Tiny85s and also make the PCB bigger (more expensive).
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Newbie
*
Karma: 1
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

not sure if im right or wrong but I have the arduino core files for the tiny85 so was under the impression it can be done




although I have never tried it yet
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 142
Posts: 5275
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

not sure if im right or wrong but I have the arduino core files for the tiny85 so was under the impression it can be done

although I have never tried it yet

You can program them, sure. I do it every day. I was surprised to see one uses as the programmer.

Program a Tiny85 using a Tiny85 which has been soldered to the end of a USB cable.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Newbie
*
Karma: 1
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

not sure if im right or wrong but I have the arduino core files for the tiny85 so was under the impression it can be done

although I have never tried it yet

You can program them, sure. I do it every day. I was surprised to see one uses as the programmer.

Program a Tiny85 using a Tiny85 which has been soldered to the end of a USB cable.


to me it would sound logical as the ATiny85 has the relevant Pins needed

MOSI, MISO, SCK, RST, +5v, GND, and not needed for ICSP but the RXD & TXD
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1049
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually you only need one Attiny85 to program an Attiny85  smiley-cool

For example Digispark use the Micronucleus bootloader to make a USB-enabled Attiny85

https://raw.github.com/Bluebie/micronucleus-t85/master/firmware/releases/micronucleus-1.04.hex

Schematic:

https://s3.amazonaws.com/digispark/DigisparkSchematicFinal.pdf

Digispark

http://digistump.com/product.php?id=1

There are other bootloaders, for example USBasploader:

https://github.com/embedded-creations/USBaspLoader-tiny85

And Tom Carpenter from this forum made a bootloader for the Tiny's

https://github.com/TCWORLD/ATTinyCore/tree/master/tiny/bootloaders/optiboot
Logged

Pages: [1]   Go Up
Jump to: