Setting AVR fuse bits correctly is most important and equally confusing part for many beginners. In this post I have presented some of the ready to use fuse bit settings and corresponding batch files, which can be used with AVRdude.
Link for downloading avrdude batch files (to be used with USBasp) is given at the end of this post.
Factory Default Settings for ATmega16/32.
H fuse:
JTAG : Enabled
OCD : Disabled
SPI Programming : Enabled
CKOPT : Unprogrammed
EEPROM Preserve : Unprogrammed (EEPROM not preserved)
BOOT size : 1024 words
Reset Vector : User flash code
L fuse:
Brown-out level : 2.7V
Brown-out detect: Disabled
Startup timing : Default
Clock Source : Internal, 1MHz
Factory Default Settings for ATmega8.
H fuse:
Reset Disabled : Unprogrammed (Reset pin is enabled)
Watchdog : Off
SPI Programming : Enabled
CKOPT : Unprogrammed
EEPROM Preserve : Unprogrammed (EEPROM not preserved)
BOOT size : 1024 words
Reset Vector : User flash code
L fuse:
Brown-out level : 2.7V
Brown-out detect: Disabled
Startup timing : Default
Clock Source : Internal, 1MHz
H fuse:
Self programming: Disabled
debugWire : Disabled
Brown-out detect: Disabled
Reset Disabled : Unprogrammed (Reset pin is enabled)
L fuse:
SPI Programming : Enabled
EEPROM Preserve : Unprogrammed (EEPROM not preserved)
Watchdog : Off
Clock div by 8 : Enabled
Startup timing : Default
Clock Source : Internal, 9.6MHz
Fuse programming is most crucial and any mistake might lead to non-functioning AVR controller. I have also made DOS batch files, which can be used to apply above mentioned settings with AVRdude and USBasp. You can download these files from :
AVR Dude – DOS batch files for fuse bit settings using USBasp. Archive password : mega16
http://www.megaupload.com/?d=S9BCR2RJ
Be the first to like this post.This entry was posted on April 3, 2010 at 7:43 pm and is filed under AVR microcontroller. Tagged: AVR Micocontroller, avrdude, Fuse bits. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
No comments:
Post a Comment