avr-fuses - a commandline fuse value calculator for AVR microcontrollers
$ avr-fuses --part m328 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0x62:m $ avr-fuses --part m328 CKDIV8=1 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U lfuse:w:0xE2:m
This program interprets the contents of definition files ("ATDF files") provided by Microchip (formerly Atmel) that describe the configuration fuses of AVR microcontrollers.
Individual fuses may be named on the commandline, each giving a value in the form NAME=VALUE. These will be applied on top of the default values for the chosen part.
NAME=VALUE
The program ends by printing new values for the fuse configuration registers, in a form suitable to paste directly into an avrdude commandline. This may be useful in a shell fragment, such as
$ avrdude -c avrisp -p m328 $(avr-fuses -p m328 CKDIV8=1)
Displays a summary of the commandline and options
Describe the meaning of each individual named fuse while parsing it
Gives the part name of the chosen microcontroller. Parts may be specified in the following ways:
ATmega328PB atmega328pb m328pb ATtiny84A attiny84a t84a
Specfically, these are the same forms as recognised by avr-gcc's -mmcu option and avrdude's -p option, for convenience in Makefiles and build scripts.
-mmcu
-p
Supplies a value from one of the fuse configuration registers. This is useful combined with the --verbose option to decode values read from an AVR chip.
--verbose
Paul Evans <leonerd@leonerd.org.uk>
To install App::AVR::Fuses, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::AVR::Fuses
CPAN shell
perl -MCPAN -e shell install App::AVR::Fuses
For more information on module installation, please visit the detailed CPAN module installation guide.