0
\$\begingroup\$

I am using usbasp with atmega16a. I try to use external crystal 16MHZ with 22p capacitor. With mistake i use this command to change the fuse setting.

avrdude -c usbasp -p atmega16 -U lfuse:w:0b00000000:m hfuse:w:0b10011001:m

The atmega16a is dead. How to fix it?

pls. Any solution:

\$\endgroup\$
12
  • \$\begingroup\$ I first assumed you had by mistake set the fuse settings incorrectly. But I guess it is unlikely you would make the same mistake twice. Nevertheless I would first check the XTAL2 pin with a 'scope to see if the clock was running. \$\endgroup\$ Commented Sep 7, 2016 at 14:05
  • \$\begingroup\$ @RedGrittyBrick What does it mean check XTAL2 pin with a 'scope to see if the clock was running'? But then i try to run with atmega8l still not working internal crystal. How i reset usbasp to factory setting? \$\endgroup\$
    – Alex Cerry
    Commented Sep 7, 2016 at 14:21
  • \$\begingroup\$ @AlexCerry There is no "internal crystal" in Atmega, only simple RC oscillator. \$\endgroup\$ Commented Sep 7, 2016 at 14:37
  • \$\begingroup\$ @lustful-rat how i solve this problem? \$\endgroup\$
    – Alex Cerry
    Commented Sep 8, 2016 at 1:04
  • \$\begingroup\$ I change the question now usbasp working with atmega8l. But not working with atmega16a. \$\endgroup\$
    – Alex Cerry
    Commented Sep 8, 2016 at 1:26

1 Answer 1

1
\$\begingroup\$

if you are using windows os there are avr studio 4 is available. in this ide you can modify your fuse bits and it is one type gui based software which indicates your all fuse bytes and all.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.