Go Down

Topic: ATMega8 No Crystal (Read 1 time) previous topic - next topic

DuaneB

Hi,
   I would like to progam an ATMega8 to run without a crystal. I am reasonably confident that I can set up my current UNO to act as an ISP with optiLoader, which conveniently has an image for an ATMega8 boot loader built in.

   Looking at the ATMega8 datasheet I see that I would need to change some of the fuse settings to get it to run from an internal 8Mhz oscillator.

   Looking at the optiLoader source code, I see that the current fuses are set as follows -

during programming - 0x3F, 0xBF, 0xCC, 0, 0

after programming - 0x2F, 0xBF, 0xCC, 0, 0

However I have not been able to work out why there are apparently 5 bytes here.

I am making the dangerous assumption that the first two bytes are the low and high fuse bytes ?

From there I am going further out on a limb -

By using the fuse tool at this link I have attempted a configuration for the 8Mhz Internal Oscillator which gives me 24,BF for the low high fuses.

http://www.engbedded.com/fusecalc/

Can anyone confirm that my approach is correct and review my fuse settings ?

Your help is very much appreciated,
Thanks

  Duane B

rcarduino.blogspot.com

Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

DuaneB

Well, if no one is going to stop me, there is only one thing to do.

Fingers crossed !

 
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

mysteredding


DuaneB

Hi,
   I noticed that my ATMega8's were actually a variety of different versions, some 16Mhz, some 8Mhz, at that point I got side tracked by some 328s that arrived from a back order I haven't gone back to the 8's yet but I still have them so will get around to this sometime soon.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Riva

Quote
I would like to progam an ATMega8 to run without a crystal. I am reasonably confident that I can set up my current UNO to act as an ISP with optiLoader, which conveniently has an image for an ATMega8 boot loader built in.

I think you need a bootloader suitable for use at 8mHz (or whatever internal clock speed you decide on). I burned a couple of ATmega8 chips using ArduinoISP on my UNO v2 board and they work well. Only small gripe is the bootloader is old and waits about 8 seconds from reset to starting the main program but it does not matter enough to de-solder the chips and put a better bootloader on as they only get re-booted once per day at most.
http://forum.arduino.cc/index.php?action=unread;boards=5,67,10,11,66,12,15,17,21,22,23,24,25,29;ALL

perhof


I think you need a bootloader suitable for use at 8mHz (or whatever internal clock speed you decide on). I burned a couple of ATmega8 chips using ArduinoISP on my UNO v2 board and they work well. Only small gripe is the bootloader is old and waits about 8 seconds from reset to starting the main program but it does not matter enough to de-solder the chips and put a better bootloader on as they only get re-booted once per day at most.


Did you ever try the Optiboot bootloader that I posted?
http://arduino.cc/forum/index.php/topic,116404.0.html

Riva


Did you ever try the Optiboot bootloader that I posted?
http://arduino.cc/forum/index.php/topic,116404.0.html

Sorry perhof I never got round to it but I will be ripping one of the 8's out of service in a week or two (nearer two as I'm on holiday next week) and will try it then and let you know.
http://forum.arduino.cc/index.php?action=unread;boards=5,67,10,11,66,12,15,17,21,22,23,24,25,29;ALL

Go Up