Microcontroller › AVR › AVR fuse bits › One more solution that worked
October 20, 2014 at 2:08 pm
#12303
Participant
One more solution that worked for me…If u have another arduino or atmegaXX microcontroller, configure one of the pins to toggle at 1MHz and connect it to XTAL1 (Note that power must be connected to the faulty microcontroller). Wait for a few seconds. If it still doesnt work, try connecting it to XTAL2 (Because i dont remember which pin i connected it to)
This is the code for the recovery atmega:
void main(){
DDRB|=1<<0;
PORTB|=1<<0;
while(1){
PORTB^=1<<0;
_delay_us(1);
}
}
Cheers!