Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #466562

Re: F to bits

From rickman <gnuarm@gmail.com>
Newsgroups sci.electronics.design
Subject Re: F to bits
Date 2017-07-02 13:52 -0400
Organization A noiseless patient Spider
Message-ID <ojbblt$8u5$2@dont-email.me> (permalink)
References (2 earlier) <2a34b32b-fbbf-4649-98d1-38ce736fa91f@googlegroups.com> <ojb46l$hhg$1@dont-email.me> <86525d0b-a54c-4c4f-a951-05c8e7464481@googlegroups.com> <ojb542$ki8$1@dont-email.me> <2b53ccf6-3c14-4a04-82b3-fd99d86355ad@googlegroups.com>

Show all headers | View raw


edward.ming.lee@gmail.com wrote on 7/2/2017 1:20 PM:
> On Sunday, July 2, 2017 at 9:00:42 AM UTC-7, rickman wrote:
>> edward.ming.lee@gmail.com wrote on 7/2/2017 11:51 AM:
>>> On Sunday, July 2, 2017 at 8:45:00 AM UTC-7, rickman wrote:
>>>> edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM:
>>>>> On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote:
>>>>>> On 7/1/2017 8:13 PM, David Lesher wrote:
>>>>>>> Seeking a packaged line (~~60hz) frequency [or period] counter
>>>>>>> with I2C or SPI output to feed a Mega2560 box. The goal is to
>>>>>>> monitor a b/u generator's speed.
>>>>>>>
>>>>>>> Suggestions?
>>>>>>
>>>>>> How accurate do you need to be?  Presumably, the mains will not be
>>>>>> available when the generator's output is "of interest".  But, the
>>>>>> device you're contemplating could be located *on* the "backed
>>>>>> up mains" just as easily as on the output of the genset.
>>>>>>
>>>>>> Can it be indoors? (i.e., in a relatively constant environment)
>>>>>> Or, does it have to reside in the same environment that the generator
>>>>>> is likely located (which may be out-of-doors)
>>>>>
>>>>> I believe the main concern is the start/stop kick in/out times.  If it's feeding some time clocks, they could be off by seconds.  To be truly accurate, you would need to adjust following frequencies to compensate.
>>>>>
>>>>> To echo rickman, perfect job for an FPGA.
>>>>
>>>> This is one where you need to pay attention to detail to get it right.  Most
>>>> stuff in an FPGA is actually simple, basic logic design, but this is not a
>>>> beginner design without a little help.
>>>>
>>>> I designed a freq counter circuit once and it requires attention to the fact
>>>> that two clocks are involved.  I'm sure there are plenty of reference
>>>> designs available today.  I didn't have one when I rolled mine.  I had to
>>>> figure it out from first principles.
>>>>
>>>
>>> I am thinking the same.  Perhaps two 64 bits counter.  One for internal time base and one for external real counts.  Run the generator and/or inverter at slightly higher frequency.  Chop cycles for adjustments.  AVR's 16 bit counter is not going to be enough for good accuracy.
>>
>> I expect a 24 bit counter will do nicely.  Consider the time base accuracy
>> and you'll see anything beyond 1 ppm is not just icing on the cake, but
>> sprinkles on the icing.
>
> The correct answer is going to be somewhere between 24 and 64.  Don't forget that this time base counter is counting/dividing a typical 20M to 50M clock.

Frequency is not the issue, it's accuracy.  Why use a 0.01 ppm counter when 
the xtal accuracy is 1000 times worse?

-- 

Rick C

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 03:13 +0000
  Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-01 20:27 -0700
    Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 05:21 +0000
      Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:36 -0700
  Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-01 22:34 -0700
    Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:55 -0700
      Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 11:44 -0400
        Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 08:51 -0700
          Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 12:00 -0400
            Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 10:20 -0700
              Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 13:52 -0400
      Re: F to bits Neon John <no@never.com> - 2017-07-02 13:41 -0400
      Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:22 -0700
      Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 12:55 -0700
        Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 13:12 -0700
          Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 13:27 -0700
          Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:18 -0700
            Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 14:37 -0700
              Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:44 -0700
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:48 -0700
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 15:44 -0700
                Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:23 -0700
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:26 -0700
                Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:36 -0700
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:44 -0700
                Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:13 -0700
                Re: F to bits krw@notreal.com - 2017-07-02 19:53 -0400
                Re: F to bits Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-07-03 10:30 +0300
                Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:44 -0700
                Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:50 -0700
                Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:18 +0000
              Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:44 -0500
            Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:42 -0500
            Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:11 +0000
        Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:32 -0400
          Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:40 -0700
            Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 16:45 -0700
            Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:55 -0400
              Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:07 -0700
                Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 20:30 -0400
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 17:39 -0700
                Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 18:09 -0700
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 18:45 -0700
                Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 17:49 -0700
                Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 22:56 -0400
                Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 21:52 -0700
                Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 01:38 -0400
                Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 12:37 +0200
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 04:23 -0700
                Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 14:10 +0200
                Re: F to bits leongdentalsf@gmail.com - 2017-07-03 06:14 -0700
                Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 15:46 +0100
                Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 08:24 -0700
                Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 17:12 +0100
                Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 12:50 -0400
                Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 18:36 +0100
                Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-05 02:01 -0400
                Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-03 09:30 -0700
                Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 12:32 +0100
    Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 00:54 +0000
      Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 18:14 -0700
        Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 02:33 +0000
          Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 21:29 -0700
          Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 22:46 -0700
  Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-02 12:40 -0500
    Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:38 -0700
      Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:51 -0500

csiph-web