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.
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.
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.
Riva:
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.
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.