Page 1 of 1

Using Hidkeys with internal RC oscillator? (on atmega8L?)

Posted: Thu Apr 17, 2008 9:13 am
by beau
Howdy.

Is it possible to change the hidkeys project to run of the internal oscillator?.

I want to build one, then modify it and learn how it works, but i can't find 12MHZ crystals anywhere near me.

Cheers

Posted: Thu Apr 17, 2008 9:30 am
by christian
Can you get 15 or 16 MHz? The Mega8 has no 16 MHz RC oscillator option. You may have success with calibrating the RC oscillator to 12 MHz, but that's not reliable.

Posted: Thu Apr 17, 2008 1:12 pm
by Guest
local store doesn't have 15 or 16Mhz crystals at all it seems.

They stock 8,10 then it jumps to 20Mhz. I think 20Mhz is too high for the mega8 to run properly.

would it be possible to use a 10, 8 or 6 mhz crystal? or are these to slow?

Posted: Thu Apr 17, 2008 2:47 pm
by christian
You need exactly one of the supported values which are 12, 15, 16 and 16.5. A module for 20 MHz is planned, but not yet available.

Posted: Fri Apr 18, 2008 7:39 am
by Guest
So it's not possible to get it working with the internal oscillator? (it says on the main page some micros work with it).

If so i'll just see what i can find from the net lol.

Cheers

Posted: Fri Apr 18, 2008 1:37 pm
by christian
You can try tuning the RC oscillator to 12 MHz. I had success on a test board. But the spec says that it should not work reliably.

See the EasyLogger example. Copy the oscillator calibration from there and set F_CPU to 12 MHz. The oscillator should then be calibrated to 12 MHz. If it works, you can use it until your crystals arrive.