Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

atmega8 clock fuse problems

Status
Not open for further replies.

anonymous.

Junior Member level 3
Junior Member level 3
Joined
Apr 16, 2012
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,485
Hi , I have an atmega8 with its clock fuses unknown !!

I want to program it but I dont know what type of oscillator to use
is there anyway to restore the fuses to original state (1 Mhz internal oscillator)???
I have a USBasp programmer only .
 

You can program the fuse bits using usbasp.

If by any mistake you programmed wrong fuse bits, there is a chance that you have selected external clock instead of crystal oscillator and internal oscillator. I have faced a similar problem while programming an avr. In such case, you need to provide an external clock (around 1MHz or like that) at one of the Xtal input pin and then need to try to correct the fuse bits using usbasp. Most probably if you have written the L.FUSE to 0x00, this will happen...

In linux, to program the fuse bits, I used to do it in command line as below:
Code:
sudo avrdude -c usbasp -p m8 -U lfuse:w:0xfe:m
(where 0xfe is the lfuse)

I don't know if it is applicable to you in windows...
 

Connect a 1Mhz crystal, if it is set to internal RC then the crystal will just be ignored.
If it is set to external clock then you'll have to use an external pulse source
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top