new and workign fuse bits

This commit is contained in:
david 2009-06-24 09:39:23 +02:00
parent d65a17184f
commit 6b8a6babb7

View File

@ -2,7 +2,7 @@
TTY = /dev/tty.PL2303-00002126 TTY = /dev/tty.PL2303-00002126
DEVICE = atmega644 DEVICE = atmega644
F_CPU = 20000000 # in Hz F_CPU = 20000000 # in Hz
FUSE_L = 0xb7 FUSE_L = 0xf7
FUSE_H = 0xd9 FUSE_H = 0xd9
AVRDUDE = avrdude -c usbasp -p $(DEVICE) AVRDUDE = avrdude -c usbasp -p $(DEVICE)
@ -11,6 +11,7 @@ CFLAGS = -Iusbdrv -I. -DDEBUG_LEVEL=0
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o uart.o fifo.o sram.o crc.o debug.o OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o uart.o fifo.o sram.o crc.o debug.o
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE) COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE)
############################################################################## ##############################################################################
# Fuse values for particular devices # Fuse values for particular devices
############################################################################## ##############################################################################
@ -20,7 +21,7 @@ COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE)
# #
################################## ATMega644 ################################## ################################## ATMega644 ##################################
# ATMega644 FUSE_L (Fuse low byte): # ATMega644 FUSE_L (Fuse low byte):
# 0xb7 = 1 0 1 1 0 1 1 1 # 0xf7 = 1 1 1 1 0 1 1 1
# ^ ^ \ / \--+--/ # ^ ^ \ / \--+--/
# | | | +------- CKSEL 3..0 (external >8M crystal) # | | | +------- CKSEL 3..0 (external >8M crystal)
# | | +--------------- SUT 1..0 (crystal osc, BOD enabled) # | | +--------------- SUT 1..0 (crystal osc, BOD enabled)