Fixing Wrong Fuse ATmega8

October 3, 2009

ATmega is one of most  popular microcontroller of the world, this is the reason why I use it. For your Information I use :

Operating System :  Ubuntu Hardy

software programmer : avrdude

hardware programmer :  usbasp

microcontroller : AVR-ATmega8L-8PU, ATmega8-16PU

fuse programmer : avrfuse 1.0.1

Fusing

For some reason, such as to booster its performance, we change the fuse setting.

Becarefull!!! ……Jancok I’m not kidding you!!   You maybe make your ATmega8 useless if you set with wrong fuse.

For information, there is the default fuse setting for a brand new ATmega8-16PU

default_fuse

default_fuse


I often use  16 MHz external Crystal Oscilator for my Atmega, so I set it to :

fuse 16 MHz

fuse 16 MHz

Wrong Fusing

If you make a wrong fuse setting, your ATmega will not responding.

This  is  error log  after I set a wrong fuse, I can’t flash or my ATmega not respond anymore  :

error

error

Calm Down!!!

Don’t throw your ATmega to the trash!!, your ATmega8 is still Ok.  There is some explanation about this problem :

  • ATmega or mikrocontroler must has clock/pulse/signal  to working. I guess it lost its clocks after you setting a wrong fuse.
  • You Must  give Him external clock (not from crystal that usually connected to XTAL1 and XTAL2)

You should do

I have some experience to make ATmega come live again, there is a lot of way to make ATmega come alive again :

1.  With STK 500, I will it post later

2. With R – C combination, I usually fail with this method, I don’t know why, but I will post it.

3. With Signal / Pulse Generator, I never fail with this method.  There is the step :

  • Pray
  • Connect port XTAL1 (pin9) and GND (pin8) to SIgnal generator set to about 1 MHz.
  • Bingo!! Jancok!! Hore !! He still alive (but don’t remove the signal from signal generator)
  • Set the fuse setting to default. I use avrfuse 1.0.1
  • disconnect the signal generator
  • try with none signal from signal generator……Case closed
  • Alhamdulillah…Thanks God

Entry Filed under: AVR Freaks. .

2 Comments Add your own

  • 1. sandeep  |  October 25, 2009 at 4:55 am

    I have at mega8L devices can this device be flashed with ponyprog .If not waht is the solution.And what r fuse setting to implement 8Mhz crystal to it ?

    Reply
    • 2. nastelroy  |  October 25, 2009 at 10:49 am

      I’m so sorry..I never use ponyprog programmer, but I think you can use with ponyprog (i guess). if you failed you can try with avrfuse

      Reply

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories – Kategori

VIEWED - Dilihat

CALENDAR – Kalender

October 2009
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  

ARCHIVES – Arsip

Comments – Komentar

Recent Posts

Blogroll