diff Makefile @ 18:021e6e0006f4

debug printing, 5v adc, fixes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Jun 2013 23:44:59 +0800
parents 21717153e0f1
children 5f9a40d6991b bc48a1d17edf
line wrap: on
line diff
--- a/Makefile	Thu Jun 13 20:42:54 2013 +0800
+++ b/Makefile	Thu Jun 13 23:44:59 2013 +0800
@@ -29,7 +29,7 @@
 LIBS       = -lm
 
 # default but 2mhz
-FUSES      = -U hfuse:w:0xd9:m -U lfuse:w:0x62:m
+FUSES      = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m
 
 # ATMega8 fuse bits used above (fuse bits for other devices are different!):
 # Example for 8 MHz internal oscillator
@@ -43,12 +43,17 @@
 #        | +------------------ DWEN
 #        +-------------------- RSTDISBL (if set to 0, RESET pin is disabled)
 # Fuse low byte:
+# 0x77   0 1 1 1   0 1 1 1  (low rising, full swing, crystal)
 # 0x62 = 0 1 1 0   0 0 1 0
 #        ^ ^ \ /   \--+--/
 #        | |  |       +------- CKSEL 3..0 (8M internal RC)
 #        | |  +--------------- SUT 1..0 (slowly rising power)
 #        | +------------------ CKOUT
-#        +-------------------- CLKDIV8
+#        +-------------------- CLKDIV8 (initial)
+
+# Extended fuse:
+# 0xfd = 2.7V BOD
+#   
 #
 # For computing fuse byte values for other devices and options see
 # the fuse bit calculator at http://www.engbedded.com/fusecalc/