I am trying to run my ATMega at 16MHz using this crystal
I set the lfuse bit to F7 (see here)
The command I used to set the lfuse bit was
C:\>avrdude -p m328p -P lpt1 -c stk200 -U lfuse:w:0xf7:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "0xf7"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xf7:
avrdude: load data lfuse data from input file 0xf7:
avrdude: input file 0xf7 contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
I had code on the chip that was blinking a LED once every second. After I set the lfuse bit it stopped.
I tried to read the lfuse bit via
C:\Documents and Settings\admin>avrdude -p m328p -P lpt1 -c stk200 -U lfuse:r:-:
h -U hfuse:r:-:h
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
I believe I have the crystal setup correctly on pins 9 (TOSC1) & 10 (TOSC2). I am using 22 pF caps.
I am seeing 5V on pin 10 and 0V on pin 9
What steps can I take to troubleshoot this?