Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
TICK_COUNT prev;TICK_COUNT appInitSoftware(TICK_COUNT loopStart){ prev = loopStart; // Store start value for the clock .. rest of your code ..}TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart){ if( loopStart < prev ){ // The clock has wrapped around } prev = loopStart; .. rest of your code ..}
isn't a RTC add-on a better option?
Quote from: madsci1016 on May 02, 2010, 08:12:25 PMisn't a RTC add-on a better option? Is there a chip for this?
Thanks for posting the link. Is this a hint that there will be a webbotlib driver fo it? ;-)
Whats the error buildup rate of an RTC? I glanced through the datasheet, didn't see anything. Probably depends on the external crystal and thermal aspects of the environment . . .Even with a 0.1% error rate, thats 10 minutes a week, or 8 hours/year . . .I'd probably need a 0.01% accuracy to do things I have in my head . . . and thats 40 minutes per year error.