Go Down

Topic: Programming ATtiny13, Problems... (Read 1 time) previous topic - next topic

TronSR

I uploaded "Blink", it works a treat.
Some one needs to write up a good tut for noobs like me, with this one. Lots of pic's... I might give it ago.

Erni

#6
Jan 22, 2013, 01:13 pm Last Edit: Jan 22, 2013, 01:29 pm by Erni Reason: 1
I have a guide for Attiny85
http://www.ernstc.dk/arduino/attiny85.html
and attiny2313
http://www.ernstc.dk/arduino/2313.htm

Maybe I should make one for Attiny13. On the other hand you have already done that!  :D

TronSR

Very nice Erni, pictures help so much.
For the Tiny13A wiring.c just needs the string added in below.
Code: [Select]
|| (__AVR_ATtiny13__)

From this,
Code: [Select]
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
SIGNAL(TIM0_OVF_vect)
#else
SIGNAL(TIMER0_OVF_vect)
#endif


To this,
Code: [Select]
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || (__AVR_ATtiny13__)
SIGNAL(TIM0_OVF_vect)
#else
SIGNAL(TIMER0_OVF_vect)
#endif

When I opened the file up in notepad, it was very tricky to find, all the text run horizontally. It was a nightmare, but if you know what to look out for it's still tricky. In the end I just to used word.
Pasted as (Keep text Only). Oh yes! Be sure to make a copy off the original, if you FUBAR it you can role back with the original!!
My file was located here,
Quote
C:\Arduino\arduino-1.0.3\hardware\arduino\cores\arduino


This tut is good, newb's like me will struggle, some parts are vague.. I still don't know what "fuse bytes" are or what they are used for. I had disregard it all but plugged away...
http://tekstop.wordpress.com/2011/12/30/programming-attiny13-using-arduino-isp-and-all-the-hacking-involved/

Go Up