I used an Atmega8 whose fuse bits was not set to use an external oscillator(fuse bits were at factory settings), in a circuit with a 12Mhz oscillator and powered on the circuit.
needless to say the program did not work. Now when I try to program this Atmega8, Avrdude says "AVR device not responding"
Is there any way I can get my atmega8 to work again?
Your considerations are not plausible. In fact, by connecting an external clock source to XTAL1, you get the oportunity to access an ATmega indpendent of the presently set oscillator fuses. See datasheet, "Serial Downloading", Figure 112.
The factory fuse configuration sets internal RC oscillator and allows programming without (or with) external oscillator. If programming doesn't work, I would rather expect a trivial hardware problem.
since the atmega that i had used by mistake was not flashed even once after being bought, i said that.
There were 2 atmega8 s side by side and I got confused.
In fact, by connecting an external clock source to XTAL1, you get the oportunity to access an ATmega indpendent of the presently set oscillator fuses. See datasheet, "Serial Downloading", Figure 112.
The factory fuse configuration sets internal RC oscillator and allows programming without (or with) external oscillator. If programming doesn't work, I would rather expect a trivial hardware problem.
Assuming your observations are correct, I see two possible reasons, why the device can't be accessed by a serial programmer:
- It's damaged
- The SPIEN fuse has been previously reset by a parallel programmer. In this case, a parallel programmer would be needed to re-enable it.
Assuming your observations are correct, I see two possible reasons, why the device can't be accessed by a serial programmer:
- It's damaged
- The SPIEN fuse has been previously reset by a parallel programmer. In this case, a parallel programmer would be needed to re-enable it.