This is an old revision of the document!


Using the ATmega8

If you build your SpiffChorder with an ATmega8 instead of the ATmega168 you will need to make one or two changes to the Makefile. You will also need to set the fuses differently when you program the chip. All these changes are documented here.

If you like me, build the hex file, then program by using avrdude or some other program directly, you only need to make the first change below.

Makefile changes

1 - Change the MCU name

Where for the ATmega168 it says:

  
# MCU name
MCU = atmega168

For the Atmega8 it should read:

# MCU name
MCU = atmega8

2 - Change the fuse settings

If you are not using the usb bootloader and want to use the Makefile to program your chip, you will also need to change the fuse settings in the Makefile as follows.

Where for the ATmega168 it says:

fuse:
        $(AVRDUDE) $(AVRDUDE_FLAGS) -U hfuse:w:0xDD:m -U lfuse:w:0xFF:m

For the Atmega8 it should read:

fuse:
        $(AVRDUDE) $(AVRDUDE_FLAGS) -U hfuse:w:0xD9:m -U lfuse:w:0x3F:m
spiffchorder/using_the_atmega8.1241449448.txt.gz · Last modified: 2009/05/04 11:04 by priestdo
Top of the Wiki www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0