mpthompson
Joined: 02 Jan 2006 Posts: 650 Location: San Carlos, CA
|
Posted: Thu Apr 27, 2006 6:06 am Post subject: Timing for 20/16 MHz resonators |
|
|
While contemplating the support of 20 MHz resonator on the ATmega168 and and 16MHz resonator for ATmega8 I added appropriate #defines in the config.h, adc.c and pwm.c files to support faster clock rates. This is actually not supported in the current OpenServo hardware for technical reasons explained in other threads.
I'm going to check this code into CVS so as to not lose the changes. However, my worry is that the timing values won't be maintained properly as we all will likely be using the internal 8MHz oscillator built into the AVR MCU. I will put a compile time warning that will indicate if #define FAST_CLOCK_ENABLED is set all timing dependent values need to be verified by the user.
-Mike |
|