Does 10% freq error directly equate to +/- 3 min over on a 30 min timer?
If there's a way to calculate for an inaccurate clock there's a way to compensate with code or design.
I'm trying to understand just what , for example a 5% error would consist of on a 8 MHz clock
Would that show up as a couple of seconds per minute (gained or lost depending on the error) or a few millis?
Coding Badly, if you're still here, I see the TinyTuner stuff is your baby. Will this need much tweaking to work on a 328P?
#if defined( __AVR_ATtiny2313__ ) typedef TinyTunerTemplate<0x1B,0> Tiny2313Tuner; typedef Tiny2313Tuner TinyTuner;#elif defined( __AVR_ATtiny84__ ) typedef TinyTunerTemplate<0x16,1> Tiny84Tuner; typedef Tiny84Tuner TinyTuner;#elif defined( __AVR_ATtiny85__ ) typedef TinyTunerTemplate<0x16,4> Tiny85Tuner; typedef Tiny85Tuner TinyTuner;#elif defined( __AVR_ATtiny45__ ) typedef TinyTunerTemplate<0x16,4> Tiny45Tuner; typedef Tiny45Tuner TinyTuner;#else #error Add a definition for your processor.#endif
#elif defined( __AVR_ATmega328P__ ) typedef TinyTunerTemplate<0x03,7> Tiny328Tuner; typedef Tiny328Tuner TinyTuner;
The parameters are I/O port, bit. I usually put Tiny Tuner on the XTAL2 pin. The snippet above should put the Tiny Tuner input on PINB7.Version 2 is easier to configure (TinyTuner2.h) and already has a binding for the m328p processor (XTAL2 / PINB7).