Offline
Newbie
Karma: 0
Posts: 18
|
 |
« on: March 18, 2013, 08:25:29 pm » |
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.pngI'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
Faraday Member
Karma: 33
Posts: 3619
@ssh0le
|
 |
« Reply #1 on: March 18, 2013, 09:37:37 pm » |
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
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Denmark
Offline
God Member
Karma: 19
Posts: 678
|
 |
« Reply #2 on: March 19, 2013, 04:13:31 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2244
|
 |
« Reply #3 on: March 19, 2013, 04:20:26 am » |
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.htmlI'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
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2244
|
 |
« Reply #4 on: March 19, 2013, 05:12:14 am » |
OK, that surprised me...  Still, now I know how to use ATtinys as USB devices.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2244
|
 |
« Reply #5 on: March 20, 2013, 02:02:52 am » |
OK, that surprised me...  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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 43
|
 |
« Reply #6 on: March 20, 2013, 06:23:10 am » |
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
Offline
Edison Member
Karma: 65
Posts: 2244
|
 |
« Reply #7 on: March 20, 2013, 07:02:44 am » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 43
|
 |
« Reply #8 on: March 20, 2013, 04:59:14 pm » |
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
God Member
Karma: 19
Posts: 678
|
 |
« Reply #9 on: March 21, 2013, 05:42:50 am » |
|
|
|
|
|
Logged
|
|
|
|
|
|