ts-7000
[Top] [All Lists]

[ts-7000] Re: 983.04 Khz timer

To:
Subject: [ts-7000] Re: 983.04 Khz timer
From: "Jesse Off" <>
Date: Thu, 20 Apr 2006 00:22:14 -0000
This is great Lennert!  Thanks for looking into this!  

At first glance it seems you skip calling timer_tick() every once in 
awhile to fix the accumulated error.  Can you comment on how (if at 
all) this might effect worst case process and timer event scheduling 
and small interval event timing now that theres a potential ~2x longer 
clock period every so often.  Specifically, if I'm measuring time 
between two points A and B around 1.45 seconds or so(*) and happen to 
experience the skipped clock tick in-between, would I randomly be 
missing approx 10 ms of real time in my difference calculation?  

(*) For instance, an embedded design that uses the "poor mans ADC" 
technique of timing how long a bleeding capacitor takes to turn from a 
1 to a 0 to determine analog voltage.

//Jesse Off

> Sorry, didn't have much time today.  The patch below (against
> 2.6.17-rc2) should in theory (untested) make linux timekeeping as
> accurate as possible, limited only by accuracy of the hardware.
> 
> Attached to this email is a small simulation program (blah.c) that
> kind of sort of demonstrates that the algorithm is correct.  But of
> course, someone will still have to verify it in practise.  :-)
> 
> 
> cheers,
> Lennert






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU