Step 45Program the AVR: Set the fuse bits
We set the lower fuse byte (lfuse) to 0b11101111, and the high fuse byte to 0b11001001. (0b means that everything after the b is in binary).
We used avrdude and USBtinyISP (http://www.ladyada.net/make/usbtinyisp/) to program our ATmega.
In all the following examples, we will be using an Ubuntu Linux computer. The commands should be identical if you run avrdude on Windows.
- avrdude -c usbtiny -p m32 -U lfuse:w:0b11101111:m
- avrdude -c usbtiny -p m32 -U hfuse:w:0b11001001:m
Warning: If you get this wrong, you could easily brick your ATmega! If you for example disable the reset button, you won't be able to re-program it. If you select the wrong clock source, it might not boot at all.
| « Previous Step | Download PDFView All Steps | Next Step » |


































































































![Hard Wired LED Cube: [No Programming]](http://img.instructables.com/files/deriv/FTD/SF1T/GO8DC8KW/FTDSF1TGO8DC8KW.SQUARE.jpg)















C:\>avrdude -c usbtiny -p m32 -U lfuse:w:0b11101111:m
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Thanks in advance
Thank you!
and i this programe i can write fuse bit 0b101000
i need write 0x_ number i want
see in this picture
http://www.siz.co.il/my/oztnfz2adjdk.png
Thank you
ylan
I'm having a problem using a USBASP dongle to program the chip. I am able to set the lfuse ok using avrdude.
However when I then try to set the hfuse to disable jtag it does not work and I get a message that I cannot set the sck period and programming fails.
I have checked all the connections and I am sure I set the lfuse correctly as I have tried 2 different chips just in case.
I have tried usinb the -B function to mess around with clocks but to no avail.
Any advice would be appreciated.
Cheers
James
So, first of all my hands are made from some kind of a**.
I will not post my pictures of boards, it is not so simply looking as here, no 8pin cables, only one cable on one resistor etc.
And now i got a question.
Soldered it all and bought usbASP instead usbtiny.
Problem: first i was doing it wrong, didn't solder normally, then i connected to cube: made special VCC for mega32 and usbASP. Grounded all in Power Block.
When i plug in usbASP in my mac -> get a warning about switching off usb (unfortunately i have only one usb in laptop) because as i understand all schema use more than 0.4 A.
So, what can i do?
If you have used the right capacitors my second thought would be that the crystal is damaged .
Sorry, my mistake.
Thanks!
I am quite sure someone can help. We just need to see the exact problem.
http://imgur.com/3hKcF
http://imgur.com/skZ8c
I tried changing the speed the usbtiny was reading with the -B # command. Nothing seemed to work there.
(the response device signature = 0x00000000 is the same response to not having the usbtiny connected to anything at all. :(
And how to check up, whether I have spoiled ports on the microcontroller?
Thank you.