Hi

How about simply adding 1 ms every other second? You could then fine tune it by 
picking a small number of seconds to not add a ms to.

Bob



On Nov 24, 2011, at 7:16 AM, Javier Herrero <jherr...@hvsistemas.es> wrote:

> El 24/11/2011 13:56, Miguel Gonçalves escribió:
>> 
>> 
>> Right! That is what I am doing.
>> 
>> The problem is the drift between adjustments. Arduino's clock is slow 25 ms 
>> every minute and if temperature changes it will surely be different.
>> 
>> 
> That is more than 400ppm error, that sounds quite high. Is the clock 
> frequency of the Arduino so drifted? I would try first to check (and correct 
> a bit) the source of that error. If the crystal frequency is ok, perhaps 
> there is an error in the programming of the timer that generates the timing 
> interrupt.
> 
> Regards,
> 
> Javier
> 
> 
> _______________________________________________
> time-nuts mailing list -- time-nuts@febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.

_______________________________________________
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to