Sunteți pe pagina 1din 12

Engbedded Atmel AVR® Fuse Calculator

Device selection
Select the AVR device type you want to configure. When changing this setting, default fuse
settings will automatically be applied. Presets (hexadecimal representation of the fuse settings)
can be reviewed and even be set in the last form at the bottom of this page.

ATmega8A Select
AVR part name: (141 parts currently listed)

Feature configuration

This allows easy configuration of your AVR device. All changes will be applied instantly.

Features
Int. RC Osc. 1 MHz; Start-up time: 6 CK + 64 ms; [CKSEL=0001 SUT=10]; default value

Brown-out detection enabled; [BODEN=0]


Brow n-out detection level at VCC=2.7 V; [BODLEVEL=1]

Boot Reset vector Enabled (default address=$0000); [BOOTRST=0]


Boot Flash section size=1024 w ords Boot start address=$0C00; [BOOTSZ=00] ; default value

Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]


CKOPT fuse (operation dependent of CKSEL fuses); [CKOPT=0]
Serial program downloading (SPI) enabled; [SPIEN=0]
Watch-dog Timer always on; [WDTON=0]
Reset Disabled (Enable PC6 as i/o pin); [RSTDISBL=0]

Apply feature settings

Manual fuse bits configuration

This table allows reviewing and direct editing of the AVR fuse bits. All changes will be applied instantly.

Note: means unprogrammed (1); means programmed (0).

Bit Low High


7
BODLEVEL RSTDISBL
Brown out detector trigger level Disable reset
6
BODEN WTDON
Brown out detector enable Enable watchdog

5
SUT1 SPIEN
Select start-up time Enable Serial programming and Data Downloading

4
SUT0 CKOPT
Select start-up time Oscillator Options

3
CKSEL3 EESAVE
Select Clock Source EEPROM memory is preserved through chip erase

2
CKSEL2 BOOTSZ1
Select Clock Source Select Boot Size

1
CKSEL1 BOOTSZ0
Select Clock Source Select Boot Size

0
CKSEL0 BOOTRST
Select Clock Source Select Reset Vector

Apply manual fuse bit settings

Current settings

These fields show the actual hexadecimal representation of the fuse settings from above. These are the values you have to program

into your AVR device. Optionally, you may fill in the numerical values yourself to preset the configuration to these values. Changes

in the value fields are applied instantly (taking away the focus)!

Low High Action arguments


AVRDUDE

E1 D9 Apply values Defaults -U lfuse:w:0xe1:m -U hfuse:w:0xd9:m


0x 0x
Select (try triple-click) and copy-and-paste this option string into
Apply manual changes to the values on the
avrdude command line. You may specify multiple -U arguments
left side, or load factory default values for
within one call of avrdude.
the selected device.

References
All information based on database ATmega8A.xml build 1.
Applied patches: SUT and WDTON default values (Mark Haemmerling)

No responsibility is taken for the correctness of the presented information.


Copyright © 2006-2014 Mark Hämmerling. This is a free service of Engbedded. Use at your own risk.
User interface version: 0.9.2.

If you find bugs in the user interface or the database backend(s), please report them.
Engbedded Atmel AVR® Fuse Calculator

Device selection
Select the AVR device type you want to configure. When changing this setting, default fuse
settings will automatically be applied. Presets (hexadecimal representation of the fuse settings)
can be reviewed and even be set in the last form at the bottom of this page.

ATmega8 Select
AVR part name: (141 parts currently listed)

Feature configuration

This allows easy configuration of your AVR device. All changes will be applied instantly.

Features
Int. RC Osc. 1 MHz; Start-up time: 6 CK + 64 ms; [CKSEL=0001 SUT=10]; default value

Brown-out detection enabled; [BODEN=0]


Brow n-out detection level at VCC=2.7 V; [BODLEVEL=1]

Boot Reset vector Enabled (default address=$0000); [BOOTRST=0]


Boot Flash section size=1024 w ords Boot start address=$0C00; [BOOTSZ=00] ; default value

Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]


CKOPT fuse (operation dependent of CKSEL fuses); [CKOPT=0]
Serial program downloading (SPI) enabled; [SPIEN=0]
Watch-dog Timer always on; [WDTON=0]
Reset Disabled (Enable PC6 as i/o pin); [RSTDISBL=0]

Apply feature settings

Manual fuse bits configuration

This table allows reviewing and direct editing of the AVR fuse bits. All changes will be applied instantly.

Note: means unprogrammed (1); means programmed (0).

Bit Low High


7
BODLEVEL RSTDISBL
Brown out detector trigger level Disable reset
6
BODEN WTDON
Brown out detector enable Enable watchdog

5
SUT1 SPIEN
Select start-up time Enable Serial programming and Data Downloading

4
SUT0 CKOPT
Select start-up time Oscillator Options

3
CKSEL3 EESAVE
Select Clock Source EEPROM memory is preserved through chip erase

2
CKSEL2 BOOTSZ1
Select Clock Source Select Boot Size

1
CKSEL1 BOOTSZ0
Select Clock Source Select Boot Size

0
CKSEL0 BOOTRST
Select Clock Source Select Reset Vector

Apply manual fuse bit settings

Current settings

These fields show the actual hexadecimal representation of the fuse settings from above. These are the values you have to program

into your AVR device. Optionally, you may fill in the numerical values yourself to preset the configuration to these values. Changes

in the value fields are applied instantly (taking away the focus)!

Low High Action arguments


AVRDUDE

E1 D9 Apply values Defaults -U lfuse:w:0xe1:m -U hfuse:w:0xd9:m


0x 0x
Select (try triple-click) and copy-and-paste this option string into
Apply manual changes to the values on the
avrdude command line. You may specify multiple -U arguments
left side, or load factory default values for
within one call of avrdude.
the selected device.

References
All information based on database ATmega8.xml build 186.
Applied patches: SUT and WDTON default values (Mark Haemmerling)

No responsibility is taken for the correctness of the presented information.


Copyright © 2006-2014 Mark Hämmerling. This is a free service of Engbedded. Use at your own risk.
User interface version: 0.9.2.

If you find bugs in the user interface or the database backend(s), please report them.
Engbedded Atmel AVR® Fuse Calculator

Device selection
Select the AVR device type you want to configure. When changing this setting, default fuse
settings will automatically be applied. Presets (hexadecimal representation of the fuse settings)
can be reviewed and even be set in the last form at the bottom of this page.

ATmega8 Select
AVR part name: (141 parts currently listed)

Feature configuration

This allows easy configuration of your AVR device. All changes will be applied instantly.

Features
Int. RC Osc. 8 MHz; Start-up time: 6 CK + 64 ms; [CKSEL=0100 SUT=10]

Brown-out detection enabled; [BODEN=0]


Brow n-out detection level at VCC=2.7 V; [BODLEVEL=1]

Boot Reset vector Enabled (default address=$0000); [BOOTRST=0]


Boot Flash section size=1024 w ords Boot start address=$0C00; [BOOTSZ=00] ; default value

Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]


CKOPT fuse (operation dependent of CKSEL fuses); [CKOPT=0]
Serial program downloading (SPI) enabled; [SPIEN=0]
Watch-dog Timer always on; [WDTON=0]
Reset Disabled (Enable PC6 as i/o pin); [RSTDISBL=0]

Apply feature settings

Manual fuse bits configuration

This table allows reviewing and direct editing of the AVR fuse bits. All changes will be applied instantly.

Note: means unprogrammed (1); means programmed (0).

Bit Low High


7
BODLEVEL RSTDISBL
Brown out detector trigger level Disable reset
6
BODEN WTDON
Brown out detector enable Enable watchdog

5
SUT1 SPIEN
Select start-up time Enable Serial programming and Data Downloading

4
SUT0 CKOPT
Select start-up time Oscillator Options

3
CKSEL3 EESAVE
Select Clock Source EEPROM memory is preserved through chip erase

2
CKSEL2 BOOTSZ1
Select Clock Source Select Boot Size

1
CKSEL1 BOOTSZ0
Select Clock Source Select Boot Size

0
CKSEL0 BOOTRST
Select Clock Source Select Reset Vector

Apply manual fuse bit settings

Current settings

These fields show the actual hexadecimal representation of the fuse settings from above. These are the values you have to program

into your AVR device. Optionally, you may fill in the numerical values yourself to preset the configuration to these values. Changes

in the value fields are applied instantly (taking away the focus)!

Low High Action arguments


AVRDUDE

E4 D9 Apply values Defaults -U lfuse:w:0xe4:m -U hfuse:w:0xd9:m


0x 0x
Select (try triple-click) and copy-and-paste this option string into
Apply manual changes to the values on the
avrdude command line. You may specify multiple -U arguments
left side, or load factory default values for
within one call of avrdude.
the selected device.

References
All information based on database ATmega8.xml build 186.
Applied patches: SUT and WDTON default values (Mark Haemmerling)

No responsibility is taken for the correctness of the presented information.


Copyright © 2006-2014 Mark Hämmerling. This is a free service of Engbedded. Use at your own risk.
User interface version: 0.9.2.

If you find bugs in the user interface or the database backend(s), please report th

Engbedded Atmel AVR® Fuse Calculator


Device selection
Select the AVR device type you want to configure. When changing this setting, default fuse
settings will automatically be applied. Presets (hexadecimal representation of the fuse settings)
can be reviewed and even be set in the last form at the bottom of this page.

ATmega328P Select
AVR part name: (141 parts currently listed)

Feature configuration

This allows easy configuration of your AVR device. All changes will be applied instantly.

Features
Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms; [CKSEL=0010 SUT=10]; defa

Clock output on PORTB0; [CKOUT=0]


Divide clock by 8 internally; [CKDIV8=0]
Boot Reset vector Enabled (default address=$0000); [BOOTRST=0]
Boot Flash section size=2048 w ords Boot start address=$3800; [BOOTSZ=00] ; default value

Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]


Watch-dog Timer always on; [WDTON=0]
Serial program downloading (SPI) enabled; [SPIEN=0]
Debug Wire enable; [DWEN=0]
Reset Disabled (Enable PC6 as i/o pin); [RSTDISBL=0]
Brow n-out detection disabled; [BODLEVEL=111]

Apply feature settings

Manual fuse bits configuration

This table allows reviewing and direct editing of the AVR fuse bits. All changes will be applied instantly.

Note: means unprogrammed (1); means programmed (0).

Bit Low High Extended


7
CKDIV8 RSTDISBL
Divide clock by 8 External reset disable
6
CKOUT DWEN
Clock output debugWIRE Enable

5
SUT1 SPIEN
Select start-up time Enable Serial programming and Data Downloading

4
SUT0 WDTON
Select start-up time Watchdog Timer Always On

3
CKSEL3 EESAVE
Select Clock Source EEPROM memory is preserved through chip erase

2
CKSEL2 BOOTSZ1 BODLEVEL2
Select Clock Source Select boot size Brown-out Detector trigger level

1
CKSEL1 BOOTSZ0 BODLEVEL1
Select Clock Source Select boot size Brown-out Detector trigger level

0
CKSEL0 BOOTRST BODLEVEL0
Select Clock Source Select reset vector Brown-out Detector trigger level

Apply manual fuse bit settings

Current settings

These fields show the actual hexadecimal representation of the fuse settings from above. These are the values you have to program

into your AVR device. Optionally, you may fill in the numerical values yourself to preset the configuration to these values. Changes

in the value fields are applied instantly (taking away the focus)!

Low High Extended Action arguments


AVRDUDE

62 D9 FF Apply values -U lfuse:w:0x62:m -U hfuse:w:0xd9:m


0x 0x 0x *
efuse:w:0xff:m
Defaults
Select (try triple-click) and copy-and-paste this option string into y
Apply manual changes to avrdude command line. You may specify multiple -U arguments w
the values on the left one call of avrdude.
side, or load factory
* Note that some numerical values refer to fuses containing undefin
default values for the
bits (set to '1' here). Depending on the target device these fuse bits
selected device.
be read either as '0' or '1'. Verification errors will occur if the value
read back with undefined bits set to '0'. Everything is fine if the val
read from the device are either the same as programmed, or the
following values (undefined set to '0'): Extended: 0x07.

References
All information based on database ATmega328P.xml build 1.
Unreviewed original XML backend database from Atmel. Probably buggy! Please report.

No responsibility is taken for the correctness of the presented information.


Copyright © 2006-2014 Mark Hämmerling. This is a free service of Engbedded. Use at your own risk.
User interface version: 0.9.2.

If you find bugs in the user interface or the database backend(s), please report them.

AVR fuse bits settings

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.

H L
Microcontroller fuse fuse Description

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:
ATmega16/32 0x99 0xE1 Brown-out level : 2.7V
Brown-out detect: Disabled
Startup timing : Default
Clock Source : Internal, 1MHz

External Crystal upto 16MHz, JTAG disabled


ATmega16/32 0xD9 0xFF Rest of the options : Default.

Internal 8MHz oscillator, JTAG disabled. R


ATmega16/32 0xD9 0xE4 of the options : Default.

Factory Default Settings for ATmega8.

H fuse:
Reset Disabled : Unprogrammed (Reset pin
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
ATmega8 0xD9 0xE1 Clock Source : Internal, 1MHz

External Crystal upto 16MHz. Rest of the


ATmega8 0xD9 0xEF options : Default.
Factory Default Settings for ATtiny13.

H fuse:
Self programming: Disabled
debugWire : Disabled
Brown-out detect: Disabled
Reset Disabled : Unprogrammed (Reset pin
enabled)

L fuse:
SPI Programming : Enabled
EEPROM Preserve : Unprogrammed (EEPROM not
preserved)
Watchdog : Off
Clock div by 8 : Enabled
Startup timing : Default
ATtiny13 0xFF 0x6A Clock Source : Internal, 9.6MHz

Internal 4.8MHz oscillator, Divide clock b


ATtiny13 0xFF 0x69 8. Rest of the options : Default

Internal 9.6MHz oscillator, clock is not


ATtiny13 0xFF 0x79 divided by 8. Rest of the options : Defaul

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. [Note: Your
antivirus may mark these files as suspicious since they are executable BATCH
files. Ignore those warnings or disable antivirus temporarily]
https://www.dropbox.com/s/k0q52biat2h9m8m/AVRDude_Batch%20Programs%
20for%20fuse%20bit%20settings.zip?dl=0

S-ar putea să vă placă și