Learn how to use an Arduino in order to set the fusebits on a ATmega chip to be used with an external crystal.

Arduino ISP with ATmega on breadboard For setup schematics and to learn how to program an ATmega using an Arduino Click Here


*** Command lines for common crystal setups ***
*** REMOVE QUOTES ***

ATmega8 (1Mhz, Internal osc): "avrdude -P COM5 -b 19200 -c avrisp -p m8 -U lfuse:w:0xE1:m -U hfuse:w:0xD9:m"

ATmega8 (8Mhz): "avrdude -P COM4 -b 19200 -c avrisp -p m8 -U lfuse:w:0xDC:m -U hfuse:w:0xD9:m"

ATmega8 (16Mhz): "avrdude -P COM5 -b 19200 -c avrisp -p m8 -U lfuse:w:0xFF:m -U hfuse:w:0xC9:m"

ATmega16 (1Mhz, Internal osc): "avrdude -P COM5 -b 19200 -c avrisp -p m168 -U lfuse:w:0x62:m -U hfuse:w:0xDF:m -U efuse:w:0x1:m"

ATmega16 (16Mhz): "avrdude -P COM5 -b 19200 -c avrisp -p m168 -U lfuse:w:0xdf:m -U hfuse:w:0xDF:m -U efuse:w:0xF9:m"

ATmega32 (1Mhz, Internal osc): "avrdude -P COM5 -b 19200 -c avrisp -p m328p -U lfuse:w:0x62:m -U hfuse:w:0xD9:m -U efuse:w:0x7:m"

ATmega32 (16Mhz): "avrdude -P COM5 -b 19200 -c avrisp -p m328p -U lfuse:w:0xdf:m -U hfuse:w:0xDF:m -U efuse:w:0xF9:m"