Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
spiffchorder:using_the_atmega8 [2009/05/04 11:04]
priestdo created
spiffchorder:using_the_atmega8 [2009/05/04 11:20]
priestdo
Line 3: Line 3:
 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 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. ​  +If you like me, build the hex file, then program by using avrdude or some other program directly, ​or use the usb bootloader then you only need to make the first change below. ​  
 ===== Makefile changes ===== ===== Makefile changes =====
  
Line 33: Line 33:
         $(AVRDUDE) $(AVRDUDE_FLAGS) -U hfuse:​w:​0xD9:​m -U lfuse:​w:​0x3F:​m         $(AVRDUDE) $(AVRDUDE_FLAGS) -U hfuse:​w:​0xD9:​m -U lfuse:​w:​0x3F:​m
 </​code>​ </​code>​
 +
 +===== Prebuilt code with bootloader =====
 +
 +If you want to start by downloading a known working hexfile with the usb bootloader on it which you can then change by downloading your new program over the usb connection to your spiffchorder,​ you can begin with the hex file below
 +
 +==== Known working Spiffchorder for ATmega8 with usb bootloader in place ====
 +
 +
 +^Known working spiffchorder for ATmega8|{{spiffchorder:​chorder-working-atmega8.hex|}}|
 +^ MD5 checksum| dc681522d0af047330e82347b6343b34 ​ chorder-working-atmega8.hex|
 +==== avrdude commands for above ATmega8 hex file ====
 +
 +When loading a hex image on to the atmega8 do:
 +
 +  avrdude -p m8 -c avrusb500 -e -U flash:​w:​chorder-working-atmega8.hex:​i
 +  avrdude -p m8 -c avrusb500 -u -v -U hfuse:​w:​0xd8:​m
 +  avrdude -p m8 -c avrusb500 -u -v -U lfuse:​w:​0x3F:​m
 +
 +You will need to change the ``-c avrusb500`` to match your programmer.
 +
 +
 +
 +
 + --- //​[[priestdo@cs.vassar.edu|Greg Priest-Dorman]] 2009/03/03 11:35//
  
spiffchorder/using_the_atmega8.txt ยท Last modified: 2009/05/04 11:40 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