本帖最后由 guqi 于 2013-9-16 10:53 编辑
abstract:Use arduino IDE and make a hex. file before uploading it into attiny13 thr avr fighter with usbasp if you use IDE more fluently
than any other.
step 1
put the core13 into the right folder positon,such as "E:\arduino-1.0.1\hardware\arduino\cores" in my PC.
step 2
add the boards information into arduino folder.
step 3
open the IDE from arduino and choose [email protected] clock from tools.
step 4
add an address which can save the hex.file
step 5
choose the blink program and swap the ledpin from 13 to 0,and then clip the verify.
Don't forget to make the flash page room from 64 to 32 before uploading or you will meet a mistake when the flash is verfied
in avr fighter.
step 6
open the avr fighter and choose the chip "attiny13",set the low fuses=69 and high fuses=FF.
step 7
load flash and upload onto the chip,attiny13.
step 8
you can see the led blinking when its negative is wired into ground and the positive is wired into pin0 which is defined PB0 in
attiny13
Last but not least,thanks for the geek-workshop and thanks for all of people who help me patiently.
***********************************************************************************************
references
http://www.geek-workshop.com/forum.php?mod=viewthread&tid=761
http://elabz.com/arduino-shrunk-how-to-use-attiny13-with-arduino-ide
http://www.geek-workshop.com/forum.php?mod=viewthread&tid=959
http://see.sl088.com/wiki/AVR_fighter
http://wenku.baidu.com/view/252eb5dc50e2524de5187e33.html
http://hlt.media.mit.edu/?p=1695
http://www.atmel.com/images/doc2535.pdf
|