Hi , I have an atmega8 with its clock fuses unknown !!
I want to program it but I dont know what type of oscillator to use
is there anyway to restore the fuses to original state (1 Mhz internal oscillator)???
I have a USBasp programmer only .
If by any mistake you programmed wrong fuse bits, there is a chance that you have selected external clock instead of crystal oscillator and internal oscillator. I have faced a similar problem while programming an avr. In such case, you need to provide an external clock (around 1MHz or like that) at one of the Xtal input pin and then need to try to correct the fuse bits using usbasp. Most probably if you have written the L.FUSE to 0x00, this will happen...
In linux, to program the fuse bits, I used to do it in command line as below:
Code:
sudo avrdude -c usbasp -p m8 -U lfuse:w:0xfe:m
(where 0xfe is the lfuse)
I don't know if it is applicable to you in windows...
Connect a 1Mhz crystal, if it is set to internal RC then the crystal will just be ignored.
If it is set to external clock then you'll have to use an external pulse source