Electronics > Electronics

programming the ATMEGA32 - internal RC

(1/1)

TrickyNekro:
Hello to everyone...
I'm trying to use the external osclinator of my atmega32 cause not only if far faster and precise but also to finish my development board and be able to present it!!!
I'm using BASCOM AVR for programming and ponyprog to download (both most recent editions)
I'm runnong on 1MHz while I have a crystal of 16MHz...
Can anyone tell me by any mean possible how to unlock this fuse bits?!?!?


Warm Regards
Lefteris, Greece

rgcustodio:
Read CAREFULLY:

http://www.scienceprog.com/programming-avr-fuse-bits-oscillator-settings/

"CAREFULLY" is emphasized because if you make an error you might get locked out of the fuse bit settings of your chip. Yep that IS bad.

TrickyNekro:
I think I've messed it up a little... The chip not responding BUT I have learned at least how to do this!!!
I had some spear attiny2313 and I messed up a little but i got them working....
Thanks for the respond!!!

It's a common fact that if you don't break you don't learn...

Also a comment that might be usefull for others...
If you want just to unlock the chip to it's best of capabilities just check SUT0 to your programmer (not quite sure but that's what I've done)
When changing fuse bits in ponyprog the first writing verification would fail... Uncheck the fuse bit back to the options and run again the downloading process, it should verify it and you are ready to go!!!

And last, that's a way to save your chip but don't know if always works!!! If the chip says no, you say yes... DO NOT ABORT the download, JUST IGNORE!!! I have just saved my ATtiny2313 that way!!!

I'm always talking about ponyprog

Thanks again for the answer...
Warm regards
Lefteris, Greece

rgcustodio:

--- Quote from: TrickyNekro on June 27, 2007, 03:45:50 PM ---Also a comment that might be usefull for others...
If you want just to unlock the chip to it's best of capabilities just check SUT0 to your programmer (not quite sure but that's what I've done)
--- End quote ---

Check the section "Clock Sources" for your part's data sheet (ie ATmega8).

This section defines the possible values of SUT0 and SUT1. The settings of SUT0 .. SUT1 must match the characteristic of the oscillator that you are using for a specific speed, specially if you are using an external oscillator. If you are using the internal oscillator you are free to play with the values, of course do so always with caution.

Also this only affects start-up times and doesn't "speed-up" the actual processing of your MCU. There is no actual advantage in setting this.


--- Quote ---When changing fuse bits in ponyprog the first writing verification would fail... Uncheck the fuse bit back to the options and run again the downloading process, it should verify it and you are ready to go!!!
--- End quote ---
Before programming the fuse bits make sure that you have setup the correct part! A failure in verifying/writing the fuse bits is a sign that either your programming speed is too high or you have an incorrect part setting. I have once tried to program the fuse bit of an ATmega168 when my programmer settings were for an ATmega169! This is a very simple way to destroy your MCU.



--- Quote ---It's a common fact that if you don't break you don't learn...
--- End quote ---
Yep but I attribute this kind of learning to blindly doing something without reading/researching first. Or going over your current capabilities. Comprehend/understand something before acting. It'll lead to lesser frustrations, headaches and  broken things. Cheers!

TrickyNekro:

--- Quote ---Before programming the fuse bits make sure that you have setup the correct part! A failure in verifying/writing the fuse bits is a sign that either your programming speed is too high or you have an incorrect part setting. I have once tried to program the fuse bit of an ATmega168 when my programmer settings were for an ATmega169! This is a very simple way to destroy your MCU.

--- End quote ---

I've probably setted the programming speed too high, you're right... I have the minimun delay available check... But once a guy told me that this only concern my PC and how fast it is not the chip, anyways......


--- Quote ---Yep but I attribute this kind of learning to blindly doing something without reading/researching first. Or going over your current capabilities. Comprehend/understand something before acting. It'll lead to lesser frustrations, headaches and  broken things. Cheers!
--- End quote ---

I can say I misunderstood things here a little due to lack of paying the needed attention :-\....
Well I also burned my first LCD but now I can modify them to extremes (costume characters, backlight mods, polarizer mods e.t.c.)!!!!


I only hope I can revive my ATMEGA.... desoldering 40 pins can be a great headache even the thought!!!!! :-[ :'( :'(

Anyway,
Thanks for your help a lot.... Alone may have done some time to find these....

Most Warm Regards,
Lefteris, Greece

Navigation

[0] Message Index

Go to full version