int main(void){
DDRC|= (1<<5); // set PC5 as output
while(1){
PORTC ^= (1<<5); // toggle the pin
}
}
You chip expects an external clock source, unless you provide it it is completely dead so it can't communicate or be reprogrammed.
Connect an external clock source and it will work fine and you will be able to reprogram it.
The simplest thing you can do is use a pin of the working AVR
Code:int main(void){ DDRC|= (1<<5); // set PC5 as output while(1){ PORTC ^= (1<<5); // toggle the pin } }
Now connect that pin to XTAL1 of the other avr with the wrong fuse settings
Yes this is an external oscillator and will work fine but I don't think there is a reason for you to spend so much , just use another avr or even a 555 oscillator
Did you check if your oscillator gives output?
You should measure about 2.5v DC in the XTAL1 pin.
- - - Updated - - -
What is the frequency of the oscillator you have used?
There is no way to kill the chip unless you provide voltages higher than the specs.
What is the frequency of your crystal oscillator?
Which programmer hardware do you have?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?