Historic archive of defunct list thumbgps-devel@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: Patrick Maupin <pmaupin@gmail.com>
To: "Ron Frazier (NTP)" <timekeepingntplist@c3energy.com>
Cc: thumbgps-devel@lists.bufferbloat.net
Subject: Re: [Thumbgps-devel] Fwd: Long term SiRF data
Date: Sat, 17 Mar 2012 16:53:24 -0500	[thread overview]
Message-ID: <CAPz3yKcivpWEFM5EqF+sOpOEULneEtEngpFmSvTY9iKY9LY_9A@mail.gmail.com> (raw)
In-Reply-To: <4F64D22C.60600@c3energy.com>

On Sat, Mar 17, 2012 at 1:04 PM, Ron Frazier (NTP)
<timekeepingntplist@c3energy.com> wrote:
> I don't know what all your design criteria are, but for just the little
> piece of the problem you mentioned above, you could try something like this.
>  Take the output of one of those OCXO's, which I think you said is 26 Mhz.
>  If I'm doing my math right, run that through a 15 bit counter to divide it
> down.  The output should be a very accurate 793.457 Hz square wave.  You
> could, of course add more bits to divide further.  You could also add some
> glue logic to reset the counter at any point you wanted, to get less ugly
> output frequencies.  Take that 793 Hz square wave and feed it into one of
> the handshaking pins, like DCD, on any Prolific or FTDI based serial - usb
> converter that passes handshaking.  I have a Trendnet TU-S9 unit which I
> hope to be testing soon.  This should give you very consistent USB messages
> coming from the converter with a period of about 1.2 ms.

I'm not a huge fan of discrete logic, and I'm buying reasonable sized
FPGAs, so we don't need to do really fancy stuff to get count values
that we want.  It will be dead easy.  In fact, my thought was that the
system could tell it what frequency it wanted to be interrupted.
Sometimes you might want to monitor things closely, other times just
run minimal interrupts in the background.

Also, I can send characters to the host with fairly precise timing
(the parallel mode of the FTDI has a SIWU pin that you can assert to
empty the buffer to the host), so I thought I could send a counter to
the host, so you'd never get "lost".  I can also send timestamps for
external events, if we hook it up to other hardware.

BTW, the FPGA can internally multiply the clock up to around 200 MHz,
with only around 300 ps of jitter, so I can interrupt at pretty much
whatever really precise rate we want.

For work designs, I usually pick a clock rate around 130 MHz or so as
a nice balance -- 7.5 ns gives you close timing, and you can still get
plenty of gates between flops without violating timing.  At work I'm
usually using something like 8.192 MHz * 16 = 131.072 MHz, but with a
26 MHz crystal, I'll just use 26 * 5 = 130.000 MHz.

I've used the parallel mode of the FTDI chip a lot, and I can transfer
data between the FTDI and the FPGA at an equivalent baud rate > 30
MBaud, so we can have pretty tight tolerances there as well.

So the whole thing should be pretty flexible.

Regards,
Pat

  reply	other threads:[~2012-03-17 21:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20111025095801.C9A9D800037@ip-64-139-1-69.sjc.megapath.net>
2012-03-17  2:06 ` Dave Taht
2012-03-17 14:42   ` Ron Frazier (NTP)
2012-03-17 14:58     ` Ron Frazier (NTP)
2012-03-17 16:56     ` Patrick Maupin
2012-03-17 18:04       ` Ron Frazier (NTP)
2012-03-17 21:53         ` Patrick Maupin [this message]
2012-03-17 21:58       ` tz
2012-03-17 23:02         ` Ron Frazier (NTP)
2012-03-17 23:19           ` tz
     [not found]   ` <4F64DCB8.7090603@c3energy.com>
     [not found]     ` <004801cd0476$7e4fe670$7aefb350$@ch@verizon.net>
2012-03-17 21:31       ` [Thumbgps-devel] [ntp:questions] Fwd: Long term SiRF data / NMEA Wandering Ron Frazier (NTP)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPz3yKcivpWEFM5EqF+sOpOEULneEtEngpFmSvTY9iKY9LY_9A@mail.gmail.com \
    --to=pmaupin@gmail.com \
    --cc=thumbgps-devel@lists.bufferbloat.net \
    --cc=timekeepingntplist@c3energy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox