On Fri, Apr 9, 2010 at 1:06 AM, mattschinkel <[email protected]>wrote:

> > If you take 301/2048 as a basis, you are 100% accurate (in the sense
> > that the software does not add any deviation) with little processing.
> >
> > Joep
>
> This calculation seems good for a 20mhz oscillator, but what if
> someone uses another osc speed? I did my calculation based on the
> oscillator, so later, I can make a init procedure to do the
> calculation for any osc speed.
>
> 20_000_000 is a decimal number, that's why I used decimal. by using
> large variables I could calculate for a random osc such as 21.3234
> mhz.
>
> > How do you expect this can be tested?
> > Vasile
>
> Good question. At first, I just want to make sure the calculations are
> 100% correct. If all calculations are correct, it should only depend
> on the accuracy of the osc.
>

  I can only guess 1ppb OCXO will cost you more than your board+your
programming time+many other toys. You can't test that with a 2ppm
oscillator, is useless. And you will not able to test for 1S output in a
short time because you need a periodmeter with 11digits and it's resolution
equal with the last digit accuracy. This kind of tool AFIK is very hard to
find (if exist). Maybe at NASA?
So what left is a weekly or monthly time accuracy check...

Some philosophers said that time does not exist. Other experiments
demonstrate that time is elapsing different inside a pyramid than outside
(and that needs such zero error routine and temperature compensated
hardware).

The length of the interrupt routine may affect the time, if an interrupt
event is lost (you don't have only that code in your ISR). For such precise
computation the time-base granularity should be less than one second. A
better option is at least 10mS (better 1mS, but difficult). In that way
measuring the time accuracy is not so painfull.

Vasile

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to