After waiting few months for the smoke from the last development board I fried to vanish in to the thin air, I bought another board. It is a ATMega32 board. But I have a problem with it. It does not have an external oscillator!. The hfuse bits seems to be at its defaults.
Code: Select all
lfuse
avrdude: writing output file "con"
:01000000E11E
:00000001FF
hfuse
avrdude: writing output file "con"
:010000009966
:00000001FF
So, the lfuse is 0xE1 and hfuse is 0x99. I need to use an external crystal (which I am yet to find) with this one. I have not programmed fuse bits before and I am a little bit worried that I am going to kill this one too. So, I need some help and verification on this thing.
I am going to use an 8MHz crystal (might later switch to 16MHz if 8MHz is not enough). I have calculalted the fuses and I need some experienced people to have a look at them.
Code: Select all
for 8MHz,
Leaving hfuse untouched.
lfuse
0b11111111
Using the longest startuptime.No BOD
As I understand the things in the datasheet, it seems like I should set CKOPT to "0" when using a higher clock. Is it correct?.
Code: Select all
avrdude -P com9 -p m32 -c avrisp2 -U lfuse:w:0xff:m
Thanks!.