X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/00bb9c112fa6dfa84d3571659527c13af7170279..HEAD:/firmware/Makefile diff --git a/firmware/Makefile b/firmware/Makefile index fd422b165..d80018f92 100755 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -6,16 +6,20 @@ # 20140329 Peter Henn F_CPU parameter added # -# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef +# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef F_CPU=12000000 +# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef F_CPU=16000000 # TARGET=atmega48 HFUSE=0xdd LFUSE=0xff +# TARGET=atmega168 HFUSE=0xdd LFUSE=0xef EFUSE=0x01 F_CPU=12000000 +# TARGET=atmega168 HFUSE=0xdd LFUSE=0xef EFUSE=0x01 F_CPU=16000000 +# TARGET=atmega168 HFUSE=0xdd LFUSE=0xe7 EFUSE=0x01 F_CPU=18000000 # TARGET=atmega328 HFUSE=0xd9 LFUSE=0xef EFUSE=0x05 F_CPU=12000000 # TARGET=atmega328 HFUSE=0xd9 LFUSE=0xef EFUSE=0x05 F_CPU=16000000 +# TARGET=atmega328 HFUSE=0xd9 LFUSE=0xe7 EFUSE=0x05 F_CPU=18000000 # TARGET=at90s2313 -TARGET=atmega328p -HFUSE=0xd9 +TARGET=atmega8 +HFUSE=0xc9 LFUSE=0xef -EFUSE=0x05 -F_CPU=16000000 +F_CPU=12000000 # ISP=bsd PORT=/dev/parport0 # ISP=ponyser PORT=/dev/ttyS1 @@ -137,6 +141,33 @@ avrdude: # 0xe0 = divide/1,no clock output,fast raising power,external Oszil. # 0xff = divide/1,no clock output,slow raising power,low Pw Oszil 8.. Mhz # +# Fuse atmega168p high byte hfuse: +# 0xdf = 1 1 0 1 1 1 1 1 factory setting +# ^ ^ ^ ^ ^ \-+-/ +# | | | | | +------ BODLEVEL (Brown out disabled) +# | | | | + --------- EESAVE (don't preserve EEPROM over chip erase) +# | | | +-------------- WDTON (WDT not always on) +# | | +---------------- SPIEN (allow serial programming) +# | +------------------ DWEN (debug wire is disabled) +# +-------------------- RSTDISBL (reset pin is enabled) +# 0xdd = ext.reset, no DW, SPI, no watchdog, no save eeprom, BOD 2.7V +# Fuse atmega168p low byte lfuse: +# 0x62 = 0 1 1 0 0 0 1 0 factory setting +# ^ ^ \ / \--+--/ +# | | | +------- CKSEL 3..0 (internal 8Mhz Oszillator) +# | | +--------------- SUT 1..0 (start-up time) +# | +------------------ CKOUT (no clock output) +# +-------------------- CKDIV8 (divide clock by 8) +# 0xef = divide/1,no clock output,fast raising power,low Pw Oszil 8.. Mhz +# Fuse atmega168p extended byte efuse: +# 0xf9 = 1 1 1 1 1 0 0 1 factory setting +# \-+-+-+---/ ^ ^ ^---- BOOTRST (boot reset vector at 0x0000) +# ^ | +------ BOOTSZ0 +# | +-------- BOOTSZ1 +# +-------------- not used +# Note: avrdude masks not used fuse bits to zero. Therefore use only +# the lower three bits to define the BOOTSZx and BOOTRST +# # Fuse atmega328p high byte hfuse: # 0xd9 = 1 1 0 1 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000) # ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0