Page 1 of 1

USB-device on ATMega8.

Posted: Wed Oct 28, 2009 12:42 pm
by uchar
Prompt please, whether probably to make the USB-device on chip ATMega8, using the built in RC-generator?

Re: USB-device on ATMega8.

Posted: Wed Oct 28, 2009 4:46 pm
by christian
You can use the 12.8 MHz version on the Mega8 with the built-in RC oscillator.

Re: USB-device on ATMega8.

Posted: Sun Nov 01, 2009 2:29 am
by Guest
I try to use autocalibration algorythm for ATMega8 and it does not work. Maybe because ATMega8 with the built-in RC oscillator has initial frequency 8Mhz

Re: USB-device on ATMega8.

Posted: Sun Nov 01, 2009 2:36 am
by Guest
I was run hid-mouse example after set calibration register to 226 value (manually). But calibration algorythm calculate another value for 12Mhz non-crystal Atmega8 (I see it in EEPROM), and device does not recognize :(

Re: USB-device on ATMega8.

Posted: Sun Nov 01, 2009 10:48 am
by christian
If you use the 12.8 MHz module (the 12 MHz module won't work because it requires an EXACT clock rate), you also need to add the oscillator calibration. There are two types, see the libs-device directory in the driver distribution. The calibration will tune the oscillator from 8 MHz to 12.8 MHz.

Re: USB-device on ATMega8.

Posted: Mon Nov 02, 2009 6:52 pm
by Guest
I understand, but calibration does not work properly. OSCAL value is incorrect after calibration and device does not recognized