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


Groups > sci.electronics.design > #466717

Re: F to bits

Subject Re: F to bits
Newsgroups sci.electronics.design
References (13 earlier) <0b9ae365-1a81-439d-ad63-5860986eb4e6@googlegroups.com> <ojdbvs$vd4$2@dont-email.me> <5a647735-1bd6-4716-8df2-1c6e270acb43@googlegroups.com> <cNs6B.86428$_F5.33559@fx40.am4> <60dd3527-3c2e-42f4-851e-c4f87b72cf7e@googlegroups.com>
From Tom Gardner <spamjunk@blueyonder.co.uk>
Message-ID <Q1u6B.86429$_F5.85568@fx40.am4> (permalink)
Organization virginmedia.com
Date 2017-07-03 17:12 +0100

Show all headers | View raw


On 03/07/17 16:24, edward.ming.lee@gmail.com wrote:
> On Monday, July 3, 2017 at 7:46:39 AM UTC-7, Tom Gardner wrote:
>> On 03/07/17 14:14, leongdentalsf@gmail.com wrote:
>>> On Monday, July 3, 2017 at 5:10:14 AM UTC-7, David Brown wrote:
>>>> On 03/07/17 13:23, edward.ming.lee@gmail.com wrote:
>>>>> On Monday, July 3, 2017 at 3:37:20 AM UTC-7, David Brown wrote:
>>>>>> On 03/07/17 06:52, John Miles, KE5FX wrote:
>>>>>>> On Sunday, July 2, 2017 at 7:56:19 PM UTC-7, rickman wrote:
>>>>>>>> You mean less or less, no?  Clearly it won't reach 1 MIPS per
>>>>>>>> MHz if *any* instructions you use are more than one clock.  I
>>>>>>>> found a large number of important instructions that are more
>>>>>>>> than 1 clock just as you would find with many MCUs.
>>>>>>>
>>>>>>> (Shrug) You'd have to take that up with Microchip's marketing
>>>>>>> department, I suppose.  These parts have long been colloquially
>>>>>>> referred to as "1 MIPS per MHz."  Usually this gets trotted out
>>>>>>> in flame wars between PIC advocates and AVR devotees.  Now that
>>>>>>> the same company owns both architectures, and given how archaic
>>>>>>> they both are, it hardly seems worth arguing about.
>>>>>>>
>>>>>>> But... given that I've implemented a 3600 bps software modem (or
>>>>>>>  at least the 'dem' half) on an ATmega128 without even resorting
>>>>>>>  to assembly, I'm sure they can be used to measure the speed of
>>>>>>> pretty much any motor or generator to an adequate degree of both
>>>>>>> accuracy and precision.  AVRs are great parts, much better than
>>>>>>> PICs. <g,d&r>
>>>>>>>
>>>>>>
>>>>>> I once made a 115 kbaud software UART on an AVR.  But I admit to
>>>>>> using assembly :-)  I have also seen application notes for
>>>>>> /software/ USB 1.0, 1.5 Mb/s, on an AVR.
>>>>>>
>>>>>> And we are talking here about measuring the frequency of a 60 Hz
>>>>>> clock with a 16 MHz microcontroller.  266,667 ticks per cycle.
>>>>>> Measure over four cycles for 1 ppm resolution.  If you have good
>>>>>> enough analogue parts to give a clean signal, it can be handled in
>>>>>> an 8-bit hardware timer.  It's peanuts.
>>>>>
>>>>> No, we are not.
>>>>>
>>>>> "Why do you think overloading will affect the frequency?  It does not
>>>>> take much power for zero crossings.  I beg it would not change the
>>>>> frequency at all.  However, it will distort the wave form and make it
>>>>> more triangular than sinusoidal. In other words, you need to capture
>>>>> the exact waveform, not just oversampling it."
>>>>>
>>>>
>>>> If you need to look at the waveform accurately, and not just measure the
>>>> frequency, then I have misunderstood the problem.  Yes, that requires a
>>>> good deal more effort.  Whether it needs an FPGA or not depends on the
>>>> sample rates you need and what you are doing with the waveform - an AVR
>>>> is absolutely fine for measuring power, peaks, periods, etc., but not
>>>> for calculating harmonics.
>>>
>>> FPGA is absolutely essential for noise and distortion measurements.  I studied line waveform with my handwired FPGA/SRAM/A2D board before.  We needed single cycle capture, not just the average of many cycles.  Perhaps 12 bits are good enough, but 16 bits are not too difficult to build.
>>
>> I'm not so sure of that anymore.
>>
>> I wonder whether the XMOS multicore devices might be sufficient;
>> they have several attributes helpful for DSP applications (MAC
>> operations, saturating arithmetic, many independent cores etc).
>
> Can they meet the burst sampling spec?  Namely, initial sampling at 10us.  When the signal exceed certain percentage of the expected sinusoidal value, sample at 100ns.  Switching has to be done within 10us.

XMOS devices aren't a replacement for FPGAs, but they are
encroaching into their territory in ways ARMs etc cannot.
They are distinctive tool in the toolbox.

I would expect it can sample at 100ns, given that it
can implement a software 100Mb/s ethernet MAC. Whether it
can do sufficient processing as well is a different issue!
A lot would depend on what processing can be done within
one sampling period in one core, whether bursts can be
buffered for subsequent processing, and whether an
application can be partitioned across multiple cores.

I'm not an XMOS expert and I don't understand your
application, but my understanding is...

Each core is 100MIPs, and input instructions take 1 cycle.
If an input isn't available, the core simply stalls until
it is available. Maximum response time to multiple random
asynchronous events is <100ns, due to the event-driven ports,
interconnects, processor primitives, and language. Basically
the programming paradigm is simple, well developed over the
decades, and nice.

There are no caches, nor interrupts to foul up worst-case
timing. The IDE will state the execution times, based on
a call-flow analysis of the object code.

IO clocks can be up to 250MHz, and there are "FPGA-like"
i/o structures on each port (internal/external clocks,
SERDES, strobes, master-slave, ignore until equal/different,
do i/o on a specified clock cycle etc).

FFI a suitable starting point is their architecture flyer,
http://www.xmos.com/published/xcore-architecture-flyer?version=latest

A simple tutorial of the programming paradigm is at
http://www.xmos.com/support/tools/programming?component=17653

XMOS has a plausible funding strategy, e.g.
https://www.ft.com/content/7de0d9d4-0e9a-11e4-a1ae-00144feabdc0?mhq5j=e1
and I presume there is more recent news.

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