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,