Hi,
is there a function within the AVR firmware which allows the main loop to find out if enumeration was successful?
I'm still thinking about some possibility to do a self calibration of the RC oscillator. One slow but working solution would be to modify OSCCAL until enumeration is successful, then find out the extreme values where enumeration fails and sit in the middle.
Thanks, Tom
enumeration detect for AVR?
Just for your information: We have released EasyLogger 2008-02-28 today. This version adds self-calibration of the RC oscillator.
In principle, this calibration algorithm can be used to calibrate the RC oscillator directly to 12 MHz. However, the precision is not high enough for the 12 MHz module (because it does not have a software PLL) and 12 MHz is outside the specified range of OSCCAL values. It's still an interesting field for experiments...
The new AVR-USB also offers hooks to inform the application firmware about USB reset and device enumeration.
In principle, this calibration algorithm can be used to calibrate the RC oscillator directly to 12 MHz. However, the precision is not high enough for the 12 MHz module (because it does not have a software PLL) and 12 MHz is outside the specified range of OSCCAL values. It's still an interesting field for experiments...
The new AVR-USB also offers hooks to inform the application firmware about USB reset and device enumeration.