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


Groups > sci.electronics.design > #482382 > unrolled thread

Signals and Systems for Dummies

Started byJohn Larkin <jjlarkin@highlandtechnology.com>
First post2017-10-21 10:03 -0700
Last post2017-10-24 08:41 -0700
Articles 20 on this page of 157 — 28 participants

Back to article view | Back to sci.electronics.design


Contents

  Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-21 10:03 -0700
    Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 15:01 -0400
      Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-21 15:34 -0400
        Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 17:12 -0400
          Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-21 14:19 -0700
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-21 15:33 -0700
              Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 19:50 -0400
              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 12:58 +0200
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 10:08 -0400
                  Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 16:44 +0200
                    Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:26 -0700
                      Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:07 -0400
                        Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 19:30 -0700
                          Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:50 -0400
                            Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 23:43 -0400
                              Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 23:53 -0400
                              Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 21:50 -0700
                  Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 08:57 -0700
                    Re: Signals and Systems for Dummies antispam@math.uni.wroc.pl - 2017-10-23 16:45 +0000
                      Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 10:09 -0700
                      Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 18:25 +0100
                        Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:44 +0000
                          Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 11:26 +0100
                            Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-24 21:55 -0400
                              Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 09:03 +0100
                                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-25 09:11 -0700
                                  Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 18:22 +0100
                                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-27 18:38 -0400
                                  Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-28 01:05 +0100
                                    Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-27 20:26 -0400
                                      Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-28 09:07 +0100
                                  Re: Signals and Systems for Dummies upsidedown@downunder.com - 2017-10-28 12:41 +0300
                      Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:31 -0400
                        Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:43 +0000
                          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:13 +0200
                            Re: Signals and Systems for Dummies Jan Panteltje <pNaonStpealmtje@yahoo.com> - 2017-10-24 10:40 +0000
                              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 13:02 +0200
                                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 08:41 -0400
                                  Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 13:09 +0000
                                    Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 09:58 -0400
                                      Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                                        Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:31 -0400
                                          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 16:46 +0000
                                            Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 15:46 -0400
                                              Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-25 12:01 +0000
                                                Re: Signals and Systems for Dummies krw@notreal.com - 2017-10-25 20:28 -0400
                                                  Re: Signals and Systems for Dummies Michael A Terrell <mike.terrell@earthlink.net> - 2017-10-25 20:52 -0400
                                    Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 10:04 -0400
                                      Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                                  Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 16:25 +0200
                                    Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:14 -0400
                                      Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 16:46 +0000
                                        Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:02 -0400
                                          Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:20 -0400
                                            Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:28 -0400
                                          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-25 12:01 +0000
                                    Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                                    Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:28 -0400
                                      Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-25 10:33 +0200
                                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 13:09 +0000
                    Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:20 -0400
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 07:55 -0700
                  Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-23 08:54 -0700
                    Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:35 -0700
                      Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:25 -0400
                  Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 10:41 +0200
                    Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:23 +0100
                      Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-24 02:35 -0700
                        Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:51 +0100
                        Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:38 +0200
                          Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 12:03 +0100
                          Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-21 10:53 +1100
                            Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 09:04 +0100
                              Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-25 10:16 -0400
                                Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-22 09:13 +1100
                                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-26 08:41 +0100
                                  Re: Signals and Systems for Dummies pcdhobbs@gmail.com - 2017-10-26 02:24 -0700
                                    Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-26 10:30 -0700
                      Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:22 +0200
                  Re: Signals and Systems for Dummies "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2017-10-25 04:05 -0400
                Re: Signals and Systems for Dummies Jasen Betts <jasen@xnet.co.nz> - 2017-10-24 18:52 +0000
          Re: Signals and Systems for Dummies Piotr Wyderski <peter.pan@neverland.mil> - 2017-10-22 11:17 +0200
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 09:36 -0700
          Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-22 04:25 -0700
            Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-22 18:50 -0400
        Re: Signals and Systems for Dummies TTman <kraken.sankey@gmail.com> - 2017-10-21 23:00 +0100
          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-22 08:19 +0000
        Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 12:37 +0200
          Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-23 23:15 +1100
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 14:55 +0200
              Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-24 00:24 +1100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 15:54 +0200
                  Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
                    Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 17:43 +0100
                      Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 17:26 +0000
                        Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 18:40 +0100
                          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 17:46 +0000
                            Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 19:01 +0100
                      Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:01 +0200
                        Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:36 +0100
                          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:57 +0200
                            Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 13:09 +0100
                              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 14:38 +0200
                  Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-25 16:34 +1100
                    Re: Signals and Systems for Dummies kevin93 <kevin@whitedigs.com> - 2017-10-25 08:38 -0700
            Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
              Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:39 -0700
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:00 -0700
            Re: Signals and Systems for Dummies bill.sloman@ieee.org - 2017-10-24 20:45 -0700
          Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 13:02 -0400
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 10:05 -0700
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 11:18 -0700
              Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:22 -0700
            Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:43 -0400
              Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 12:05 -0700
                Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:28 -0700
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:32 -0400
                  Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:46 -0700
                  Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 15:28 -0700
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:37 -0400
                Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 15:43 -0400
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:10 +0200
              Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-24 10:16 -0700
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-25 10:43 +0200
      Re: Signals and Systems for Dummies upsidedown@downunder.com - 2017-10-22 15:40 +0300
        Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:09 +0200
          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
            Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:44 -0400
              Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:43 +0000
          Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 13:21 -0400
            Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-23 19:40 +0100
              Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 15:46 -0400
                Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-23 18:10 -0700
                Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-26 10:41 +0100
                  Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-26 10:52 -0400
                    Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-23 08:51 +1100
                      Re: Signals and Systems for Dummies pcdhobbs@gmail.com - 2017-10-26 16:03 -0700
                        Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-27 10:14 +1100
                        Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-27 08:28 +0100
                          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-27 10:46 +0200
                        Re: Signals and Systems for Dummies Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-11-08 21:19 +0200
              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:19 +0200
        Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:14 -0700
      Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-22 13:54 +0100
        Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 09:43 -0700
          Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-22 18:11 +0100
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 10:33 -0700
              Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-22 19:09 +0100
              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:16 +0200
            Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 10:33 -0700
              Re: Signals and Systems for Dummies boB <boB@K7IQ.com> - 2017-10-22 15:09 -0700
                Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 16:07 -0700
              Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 15:49 -0700
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:14 +0200
          Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 16:11 -0700
    Re: Signals and Systems for Dummies bloggs.fredbloggs.fred@gmail.com - 2017-10-24 07:41 -0700
      Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-24 08:41 -0700

Page 6 of 8 — ← Prev page 1 2 3 4 5 [6] 7 8  Next page →


#482664

FromDavid Brown <david.brown@hesbynett.no>
Date2017-10-24 12:57 +0200
Message-ID<osn6as$m5n$1@dont-email.me>
In reply to#482647
On 24/10/17 11:36, Tom Gardner wrote:
> On 24/10/17 10:01, David Brown wrote:
>> On 23/10/17 18:43, Tom Gardner wrote:
>>> On 23/10/17 17:24, Jan Panteltje wrote:
>>>> Very long time ago there was a jive about fighter software
>>>> that did not use any interrupts at all (requirement).
>>>> Was it called Viper? Bing does not find it, maybe the name was
>>>> something else.
>>>
>>> Viper was a mid-80s provable correct processor from RSRE,
>>> except for the bit that wasn't provably correct.
>>> https://en.wikipedia.org/wiki/VIPER_microprocessor
>>>
>>> But interrupts are a hack, originally required because there
>>> were insufficient processing resources that had to be shared
>>> amongst different activities. Nowadays that's not a limitation,
>>> and some enlightened processors (e.g. XMOS' xCORE) manage to
>>> avoid having interrupts (and caches).
>>>
>>> I expect that approach to gradually become more pervasive over
>>> the next few decades. After all, transistors are no longer
>>> the principal limitation; nowadays internal interconnects, pins,
>>> power dissipation and i/o bandwidth are more problematic.
>>
>> I am not convinced that we will see more of the XMOS type of
>> architecture.  (Though I do think that they are a very innovative idea,
>> fun to play with, and ideal for some types of problem.)
>>
>> Basically, it is easier, cheaper, lower power and more developer
>> friendly to have dedicated hardware blocks for peripherals.  Sure, an
>> XMOS is capable of making a 100 Mbit Ethernet MAC in software - but at a
>> price much higher than a dedicated hardware MAC.  An XMOS has the
>> flexibility to have multiple UARTs and SPIs in software - you choose
>> exactly the number you want, and the pins you want to use.  But it is
>> cheaper for an ARM Cortex M microcontroller just to have 5 UARTs and 4
>> SPI units on the chip even though most people will only use one or two
>> of them.
>>
>> There are different kinds of application where different solutions are a
>> better fit.  The XMOS has a place where neither a normal microcontroller
>> nor an FPGA is the ideal fit - but it is a small slot, as "not ideal but
>> good enough" encroaches from both sides.
>>
>> What we are seeing more of in newer devices is asymmetric
>> multiprocessing.  Rather than choosing between a Cortex A9 with massive
>> processing power but unpredictable and costly interrupt response, or a
>> Cortex M4 with mid-level processing, deterministic interrupts and good
>> control of small peripherals, you can now pick a chip with both cores on
>> board.
>>
>>
>> It is all about development time - that's what costs.  Specialist
>> devices cost more to use, in time and money.  There is a decline in the
>> general usage of DSPs, because they are too costly for development -
>> people prefer to use standard microcontrollers or processors (even if
>> the clock rate needs to be higher), or pre-packaged units with all the
>> development work done before (an audio decoder chip, a microcontroller
>> with a graphics unit with video acceleration, etc.).
> 
> That's all sane, therefore I don't disagree.
> 
> However I will note that outside the embedded arena the
> CSP-inspired hardware and software design patterns may
> become more important. There are signs of this with the
> enthusiasm with which Go and Rust are being taken up.
> I haven't used either, and history is littered with
> languages with marginal advantages.

Although XMOS is heavily CSP-inspired, it is quite possible to use CSP
ideas and methods in more conventional processor architectures.  There
are also plenty of OS's that rely heavily on message passing rather than
locks or shared memory for IPC.

> 
> I'll also note that asymmetric processing is scarcely a
> new phenomenon; even mainframes had their special purpose
> i/o processors, of which I am blissfully ignorant. But
> asymmetric processing has never taken off.
> 
> Another example is that many companies have invented i/o
> offload processors (especially for TCP and networking),
> and they have all fallen by the wayside. The usual reason
> is that the main processor ends up waiting for the
> under-powered i/o processor to to the work and synchronise
> memory buffers. That phenomenon seems pretty fundamental
> and unlikely to change.

Certainly systems have been made with multiple processors for different
purposes since the earliest programmable computers.  And there have been
microcontrollers with specialist units for decades too - the 68332 with
a m68k core and a programmable timer processor unit, or chips that
combine DSP cores with a general purpose core.  What is new, I think, is
the current style of mixing two different general purpose cores to get
different balances of characteristics.  It might be to have a high speed
device and a low-speed but deterministic device.  Another combination is
the "big-little" chips with fast ARM cores and slower but lower power cores.

> 
> Finally, even "general purpose" asymmetric processing
> hasn't taken off, e.g. the Cell processor. Perhaps it
> is a case that there are only three numbers that can
> be dealt with easily: 0, 1, and many. 8 is relatively
> difficult.

The Cell was a rather specialised device.  You had a main PPC core that
was a "normal" cpu, but the cell nodes were very restricted - each had
access to only a small section of memory, for example.

> 
> But maybe the time finally has come for asymmetric
> processing.

[toc] | [prev] | [next] | [standalone]


#482667

FromTom Gardner <spamjunk@blueyonder.co.uk>
Date2017-10-24 13:09 +0100
Message-ID<k4GHB.136500$5o3.66659@fx17.am4>
In reply to#482664
On 24/10/17 11:57, David Brown wrote:
> On 24/10/17 11:36, Tom Gardner wrote:
>> On 24/10/17 10:01, David Brown wrote:
>>> On 23/10/17 18:43, Tom Gardner wrote:
>>>> On 23/10/17 17:24, Jan Panteltje wrote:
>>>>> Very long time ago there was a jive about fighter software
>>>>> that did not use any interrupts at all (requirement).
>>>>> Was it called Viper? Bing does not find it, maybe the name was
>>>>> something else.
>>>>
>>>> Viper was a mid-80s provable correct processor from RSRE,
>>>> except for the bit that wasn't provably correct.
>>>> https://en.wikipedia.org/wiki/VIPER_microprocessor
>>>>
>>>> But interrupts are a hack, originally required because there
>>>> were insufficient processing resources that had to be shared
>>>> amongst different activities. Nowadays that's not a limitation,
>>>> and some enlightened processors (e.g. XMOS' xCORE) manage to
>>>> avoid having interrupts (and caches).
>>>>
>>>> I expect that approach to gradually become more pervasive over
>>>> the next few decades. After all, transistors are no longer
>>>> the principal limitation; nowadays internal interconnects, pins,
>>>> power dissipation and i/o bandwidth are more problematic.
>>>
>>> I am not convinced that we will see more of the XMOS type of
>>> architecture.  (Though I do think that they are a very innovative idea,
>>> fun to play with, and ideal for some types of problem.)
>>>
>>> Basically, it is easier, cheaper, lower power and more developer
>>> friendly to have dedicated hardware blocks for peripherals.  Sure, an
>>> XMOS is capable of making a 100 Mbit Ethernet MAC in software - but at a
>>> price much higher than a dedicated hardware MAC.  An XMOS has the
>>> flexibility to have multiple UARTs and SPIs in software - you choose
>>> exactly the number you want, and the pins you want to use.  But it is
>>> cheaper for an ARM Cortex M microcontroller just to have 5 UARTs and 4
>>> SPI units on the chip even though most people will only use one or two
>>> of them.
>>>
>>> There are different kinds of application where different solutions are a
>>> better fit.  The XMOS has a place where neither a normal microcontroller
>>> nor an FPGA is the ideal fit - but it is a small slot, as "not ideal but
>>> good enough" encroaches from both sides.
>>>
>>> What we are seeing more of in newer devices is asymmetric
>>> multiprocessing.  Rather than choosing between a Cortex A9 with massive
>>> processing power but unpredictable and costly interrupt response, or a
>>> Cortex M4 with mid-level processing, deterministic interrupts and good
>>> control of small peripherals, you can now pick a chip with both cores on
>>> board.
>>>
>>>
>>> It is all about development time - that's what costs.  Specialist
>>> devices cost more to use, in time and money.  There is a decline in the
>>> general usage of DSPs, because they are too costly for development -
>>> people prefer to use standard microcontrollers or processors (even if
>>> the clock rate needs to be higher), or pre-packaged units with all the
>>> development work done before (an audio decoder chip, a microcontroller
>>> with a graphics unit with video acceleration, etc.).
>>
>> That's all sane, therefore I don't disagree.
>>
>> However I will note that outside the embedded arena the
>> CSP-inspired hardware and software design patterns may
>> become more important. There are signs of this with the
>> enthusiasm with which Go and Rust are being taken up.
>> I haven't used either, and history is littered with
>> languages with marginal advantages.
>
> Although XMOS is heavily CSP-inspired, it is quite possible to use CSP
> ideas and methods in more conventional processor architectures.  There
> are also plenty of OS's that rely heavily on message passing rather than
> locks or shared memory for IPC.

Very much so. I've even architected and implemented
telecom application-level systems like that :)

I really don't understand why so much attention is
given to procedures, remote procedures, and stream
communications. Maybe coming from a hardware+software
background makes me naturally think in terms of
events/messages.



>> I'll also note that asymmetric processing is scarcely a
>> new phenomenon; even mainframes had their special purpose
>> i/o processors, of which I am blissfully ignorant. But
>> asymmetric processing has never taken off.
>>
>> Another example is that many companies have invented i/o
>> offload processors (especially for TCP and networking),
>> and they have all fallen by the wayside. The usual reason
>> is that the main processor ends up waiting for the
>> under-powered i/o processor to to the work and synchronise
>> memory buffers. That phenomenon seems pretty fundamental
>> and unlikely to change.
>
> Certainly systems have been made with multiple processors for different
> purposes since the earliest programmable computers.  And there have been
> microcontrollers with specialist units for decades too - the 68332 with
> a m68k core and a programmable timer processor unit, or chips that
> combine DSP cores with a general purpose core.  What is new, I think, is
> the current style of mixing two different general purpose cores to get
> different balances of characteristics.  It might be to have a high speed
> device and a low-speed but deterministic device.  Another combination is
> the "big-little" chips with fast ARM cores and slower but lower power cores.

I'd forgotten the big-little ARM concept, mainly because
I've never used it. It is a reasonable example of a viable
asymmetric processor, but I wonder how generally applicable
it is. Time will tell.

In any case that's "merely" a hardware implementation; would
I be right to presume inter-processor comms are bog-standard
C/C++ RPC or shared memory? Or are there libraries with more
interesting properties?


>> Finally, even "general purpose" asymmetric processing
>> hasn't taken off, e.g. the Cell processor. Perhaps it
>> is a case that there are only three numbers that can
>> be dealt with easily: 0, 1, and many. 8 is relatively
>> difficult.
>
> The Cell was a rather specialised device.  You had a main PPC core that
> was a "normal" cpu, but the cell nodes were very restricted - each had
> access to only a small section of memory, for example.

Indeed, but I would expect asymmetric processors to
have limitations; provided the programming is easy,
that shouldn't be a problem. But as we are both aware,
programming is usually the problem.


>> But maybe the time finally has come for asymmetric
>> processing.

[toc] | [prev] | [next] | [standalone]


#482668

FromDavid Brown <david.brown@hesbynett.no>
Date2017-10-24 14:38 +0200
Message-ID<osnc82$3oe$1@dont-email.me>
In reply to#482667
On 24/10/17 14:09, Tom Gardner wrote:
> On 24/10/17 11:57, David Brown wrote:
>> On 24/10/17 11:36, Tom Gardner wrote:
>>> On 24/10/17 10:01, David Brown wrote:
>>>> On 23/10/17 18:43, Tom Gardner wrote:
>>>>> On 23/10/17 17:24, Jan Panteltje wrote:
>>>>>> Very long time ago there was a jive about fighter software
>>>>>> that did not use any interrupts at all (requirement).
>>>>>> Was it called Viper? Bing does not find it, maybe the name was
>>>>>> something else.
>>>>>
>>>>> Viper was a mid-80s provable correct processor from RSRE,
>>>>> except for the bit that wasn't provably correct.
>>>>> https://en.wikipedia.org/wiki/VIPER_microprocessor
>>>>>
>>>>> But interrupts are a hack, originally required because there
>>>>> were insufficient processing resources that had to be shared
>>>>> amongst different activities. Nowadays that's not a limitation,
>>>>> and some enlightened processors (e.g. XMOS' xCORE) manage to
>>>>> avoid having interrupts (and caches).
>>>>>
>>>>> I expect that approach to gradually become more pervasive over
>>>>> the next few decades. After all, transistors are no longer
>>>>> the principal limitation; nowadays internal interconnects, pins,
>>>>> power dissipation and i/o bandwidth are more problematic.
>>>>
>>>> I am not convinced that we will see more of the XMOS type of
>>>> architecture.  (Though I do think that they are a very innovative idea,
>>>> fun to play with, and ideal for some types of problem.)
>>>>
>>>> Basically, it is easier, cheaper, lower power and more developer
>>>> friendly to have dedicated hardware blocks for peripherals.  Sure, an
>>>> XMOS is capable of making a 100 Mbit Ethernet MAC in software - but
>>>> at a
>>>> price much higher than a dedicated hardware MAC.  An XMOS has the
>>>> flexibility to have multiple UARTs and SPIs in software - you choose
>>>> exactly the number you want, and the pins you want to use.  But it is
>>>> cheaper for an ARM Cortex M microcontroller just to have 5 UARTs and 4
>>>> SPI units on the chip even though most people will only use one or two
>>>> of them.
>>>>
>>>> There are different kinds of application where different solutions
>>>> are a
>>>> better fit.  The XMOS has a place where neither a normal
>>>> microcontroller
>>>> nor an FPGA is the ideal fit - but it is a small slot, as "not ideal
>>>> but
>>>> good enough" encroaches from both sides.
>>>>
>>>> What we are seeing more of in newer devices is asymmetric
>>>> multiprocessing.  Rather than choosing between a Cortex A9 with massive
>>>> processing power but unpredictable and costly interrupt response, or a
>>>> Cortex M4 with mid-level processing, deterministic interrupts and good
>>>> control of small peripherals, you can now pick a chip with both
>>>> cores on
>>>> board.
>>>>
>>>>
>>>> It is all about development time - that's what costs.  Specialist
>>>> devices cost more to use, in time and money.  There is a decline in the
>>>> general usage of DSPs, because they are too costly for development -
>>>> people prefer to use standard microcontrollers or processors (even if
>>>> the clock rate needs to be higher), or pre-packaged units with all the
>>>> development work done before (an audio decoder chip, a microcontroller
>>>> with a graphics unit with video acceleration, etc.).
>>>
>>> That's all sane, therefore I don't disagree.
>>>
>>> However I will note that outside the embedded arena the
>>> CSP-inspired hardware and software design patterns may
>>> become more important. There are signs of this with the
>>> enthusiasm with which Go and Rust are being taken up.
>>> I haven't used either, and history is littered with
>>> languages with marginal advantages.
>>
>> Although XMOS is heavily CSP-inspired, it is quite possible to use CSP
>> ideas and methods in more conventional processor architectures.  There
>> are also plenty of OS's that rely heavily on message passing rather than
>> locks or shared memory for IPC.
> 
> Very much so. I've even architected and implemented
> telecom application-level systems like that :)
> 
> I really don't understand why so much attention is
> given to procedures, remote procedures, and stream
> communications. Maybe coming from a hardware+software
> background makes me naturally think in terms of
> events/messages.
> 

Different solutions work better in different circumstances.  And some of
it is habit, or experience - some is just due to bad design choices in
the past.

Take TCP/IP for example.  It is a stream protocol - you see if there is
some data available by trying to read some, possibly with a timeout.
You don't know at the start how much data might be there, and you don't
know when it is finished.  It's great for things like telnet, which is
why it was developed - a network equivalent of a UART.  But it is
/stupid/ for most network communication where each end simply wants to
send a lump of data to the other end in a nice reliable
connection-oriented manner.

So why do we use streams?  Because people have got too used to
workarounds and manual coding with streams, and don't realise there are
better ways to transfer data.

> 
> 
>>> I'll also note that asymmetric processing is scarcely a
>>> new phenomenon; even mainframes had their special purpose
>>> i/o processors, of which I am blissfully ignorant. But
>>> asymmetric processing has never taken off.
>>>
>>> Another example is that many companies have invented i/o
>>> offload processors (especially for TCP and networking),
>>> and they have all fallen by the wayside. The usual reason
>>> is that the main processor ends up waiting for the
>>> under-powered i/o processor to to the work and synchronise
>>> memory buffers. That phenomenon seems pretty fundamental
>>> and unlikely to change.
>>
>> Certainly systems have been made with multiple processors for different
>> purposes since the earliest programmable computers.  And there have been
>> microcontrollers with specialist units for decades too - the 68332 with
>> a m68k core and a programmable timer processor unit, or chips that
>> combine DSP cores with a general purpose core.  What is new, I think, is
>> the current style of mixing two different general purpose cores to get
>> different balances of characteristics.  It might be to have a high speed
>> device and a low-speed but deterministic device.  Another combination is
>> the "big-little" chips with fast ARM cores and slower but lower power
>> cores.
> 
> I'd forgotten the big-little ARM concept, mainly because
> I've never used it. It is a reasonable example of a viable
> asymmetric processor, but I wonder how generally applicable
> it is. Time will tell.

I've only "used" the big-little ARM devices in terms of "I've used a
phone with one".  (Not my phone either - I have a cheap "young person"
telephone.  It's the young folk in the family that have the expensive
ones!).

I have briefly used a Cortex A + Cortex M chip, but I haven't used one
seriously as yet.

> 
> In any case that's "merely" a hardware implementation; would
> I be right to presume inter-processor comms are bog-standard
> C/C++ RPC or shared memory? Or are there libraries with more
> interesting properties?

I'd imagine shared memory is the main method.

It always bugs me that processors for SMP or ASMP don't have more
efficient communication methods.  It is so /simple/ in hardware to have
something like a dedicated block of locks or hardware semaphores - and
so much more efficient than load/store reserved, or bus locking
protocols, and endless cache snooping.  You can then build your software
semaphores, message passing, or whatever on top of these hardware locks.

> 
> 
>>> Finally, even "general purpose" asymmetric processing
>>> hasn't taken off, e.g. the Cell processor. Perhaps it
>>> is a case that there are only three numbers that can
>>> be dealt with easily: 0, 1, and many. 8 is relatively
>>> difficult.
>>
>> The Cell was a rather specialised device.  You had a main PPC core that
>> was a "normal" cpu, but the cell nodes were very restricted - each had
>> access to only a small section of memory, for example.
> 
> Indeed, but I would expect asymmetric processors to
> have limitations; provided the programming is easy,
> that shouldn't be a problem. But as we are both aware,
> programming is usually the problem.
> 
> 
>>> But maybe the time finally has come for asymmetric
>>> processing.
> 

[toc] | [prev] | [next] | [standalone]


#482837

FromChris Jones <lugnut808@spam.yahoo.com>
Date2017-10-25 16:34 +1100
Message-ID<XnVHB.35224$YH1.17992@fx18.am4>
In reply to#482534
On 24/10/2017 00:54, David Brown wrote:
> On 23/10/17 15:24, Chris Jones wrote:
>> On 23/10/2017 23:55, David Brown wrote:
>>> On 23/10/17 14:15, Chris Jones wrote:
>>>> On 23/10/2017 21:37, David Brown wrote:
>> [...]
>>>>> Of course interrupt jitter can be a problem on RISC processors.  How
>>>>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>>>>> instructions can take as long as 7 cycles (like far calls on the big
>>>>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>>>>> in the interrupt response from the cpu is going to be small and
>>>>> deterministic - but it still varies.
>>>>
>>>> I have found on some PICs that there is not even one cycle of jitter in
>>>> the interrupt timing (with one source of interrupts from a timer, and
>>>> never disabling them). Perhaps I am lucky and the compiler avoids using
>>>> some multi-cycle instruction, or perhaps it is always like that.
>>>>
>>>
>>> No, I think you are simply mistaken.  On all the PICs I have used (which
>>> is a few types, but admittedly long ago), most instructions take one
>>> instruction cycle (4 cpu clock cycles) - but there are some that take 2
>>> or perhaps more.  Typically call and return, especially "far" versions
>>> (for the PICs with paged memory), take a little longer.  There is very
>>> little jitter, certainly, but not quite zero.
>>
>> I'll check this again, when I have time. It will either be no cycles of
>> jitter, or it will be sometimes at least one cycle of jitter. It should
>> not be half a cycle, pi-and-a-seventh cycles or something weird like
>> that. Therefore I should be able to see any jitter, if I look at a pin
>> that goes high at the start of each interrupt, sampled with enough
>> timing resolution that I am sure that I can see one cycle of jitter. Of
>> course I need to capture enough cycles that I would see some interrupts
>> during each type of instruction that could be running when the timer
>> causes an interrupt.
>>
>> FWIW, the datasheet of the PIC18F2XK20/4XK20 says:
>> "For external interrupt events, such as the INT pins or the PORTB
>> interrupt-on-change, the interrupt latency will be three to four
>> instruction cycles. The exact latency is the same for one-cycle or
>> two-cycle instructions."
>>
>> Perhaps they pad out the time of one cycle instructions so that it is
>> just as slow as interrupting a two-cycle instruction.
> 
> Or perhaps they are just contradicting themselves.  The interrupt (at
> least in these simple microcontrollers) is much just like injecting a
> "call interruptRoutine" instruction (plus interrupt disable) injected
> into the instruction stream.  This will take two cycles, like any other
> call on those chips.  So the current instruction takes one or two
> cycles, then you get two cycles for the interrupt call giving a latency
> of three or four instruction cycles - and therefore a jitter of one
> instruction cycle.
It would not be difficult to make sure that the current instruction 
(being executed when the interrupt occurs) would always take two cycles, 
even if it would normally take one cycle in the absence of an interrupt. 
I can't say whether they did that until I do some testing.


[toc] | [prev] | [next] | [standalone]


#482877

Fromkevin93 <kevin@whitedigs.com>
Date2017-10-25 08:38 -0700
Message-ID<af2fb257-aac4-4cb7-93b1-508e663241ef@googlegroups.com>
In reply to#482837
On Tuesday, October 24, 2017 at 10:34:51 PM UTC-7, Chris Jones wrote:
...
> It would not be difficult to make sure that the current instruction 
> (being executed when the interrupt occurs) would always take two cycles, 
> even if it would normally take one cycle in the absence of an interrupt. 
> I can't say whether they did that until I do some testing.

One way to do that if the software can be synchronized to the interrupt adequately is to use the Wait for Interrupt Instruction available on some processors.

kevin

[toc] | [prev] | [next] | [standalone]


#482548

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2017-10-23 16:24 +0000
Message-ID<osl54q$ete$2@news.datemas.de>
In reply to#482530
On a sunny day (Mon, 23 Oct 2017 23:15:16 +1100) it happened Chris Jones
<lugnut808@spam.yahoo.com> wrote in <t3lHB.29626$Jl3.28321@fx10.am4>:

>On 23/10/2017 21:37, David Brown wrote:
>> On 21/10/17 21:34, bitrex wrote:
>>> On 10/21/2017 03:01 PM, rickman wrote:
>>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>>> I have the book:
>>>>>
>>>>>
>>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>>
>>>>>
>>>>>
>>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>>
>>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>>
>>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>>> deck.
>>>>>
>>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>>> not bad.
>>>>
>>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>>> with DMA driving the ADC.  The the software timing only needs to keep
>>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>>> will be from the actual clock and not any clock cycle level jitter in
>>>> the CPU.
>>>>
>>>
>>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>>> AVRs, at least - the only jitter in the interrupt timing is due to the
>>> fact that not all instructions take exactly one cycle to complete and
>>> the ISR can't execute until whatever it is is done, but nearly all take
>>> a single cycle, some take two, and a very small number take four. The
>>> typical jitter isn't more than one clock slow or fast, and if you're
>>> running it at 20MHz and using a 16 bit counter that's going to be about
>>> a thousandth of a percent of the PWM base frequency.
>>>
>> 
>> Of course interrupt jitter can be a problem on RISC processors.  How
>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>> instructions can take as long as 7 cycles (like far calls on the big
>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>> in the interrupt response from the cpu is going to be small and
>> deterministic - but it still varies.
>
>I have found on some PICs that there is not even one cycle of jitter in 
>the interrupt timing (with one source of interrupts from a timer, and 
>never disabling them). Perhaps I am lucky and the compiler avoids using 
>some multi-cycle instruction, or perhaps it is always like that.

Yes, PICs can be very efficient code wise.
I have done analog signal video processing in a PIC 12F629, using the 2 PIC comparators
as sync slicer and video level detector.
Never a delay problem
Same in a 18F14K22.
in x dimension:
  https://www.youtube.com/watch?v=4D1K0Lia90I
 Oh, end it makes the RC servo signals too,
in x,y 
 https://www.youtube.com/watch?v=xS_K4caj7vc
Just to get those F35 you know :-)

But you need to read the datasheets and understand how the hardware in it works.
All in asm, mind you.
Just typing some C will never work, it is all based on instruction cycle counting.
got used to that in Z80 days when programming in binary :-)

Simulation??? I do not even have mplab.
All I Need Is A Scope And One I/O Pin.
gpasm
Wrote the programming software too.

Its easy :-)

[toc] | [prev] | [next] | [standalone]


#482554

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-10-23 09:39 -0700
Message-ID<6m6suc5k248i3o8jbb4ipuort0uuidto9u@4ax.com>
In reply to#482548
On Mon, 23 Oct 2017 16:24:56 GMT, Jan Panteltje
<pNaOnStPeAlMtje@yahoo.com> wrote:

>On a sunny day (Mon, 23 Oct 2017 23:15:16 +1100) it happened Chris Jones
><lugnut808@spam.yahoo.com> wrote in <t3lHB.29626$Jl3.28321@fx10.am4>:
>
>>On 23/10/2017 21:37, David Brown wrote:
>>> On 21/10/17 21:34, bitrex wrote:
>>>> On 10/21/2017 03:01 PM, rickman wrote:
>>>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>>>> I have the book:
>>>>>>
>>>>>>
>>>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>>>
>>>>>>
>>>>>>
>>>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>>>
>>>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>>>
>>>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>>>> deck.
>>>>>>
>>>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>>>> not bad.
>>>>>
>>>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>>>> with DMA driving the ADC.  The the software timing only needs to keep
>>>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>>>> will be from the actual clock and not any clock cycle level jitter in
>>>>> the CPU.
>>>>>
>>>>
>>>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>>>> AVRs, at least - the only jitter in the interrupt timing is due to the
>>>> fact that not all instructions take exactly one cycle to complete and
>>>> the ISR can't execute until whatever it is is done, but nearly all take
>>>> a single cycle, some take two, and a very small number take four. The
>>>> typical jitter isn't more than one clock slow or fast, and if you're
>>>> running it at 20MHz and using a 16 bit counter that's going to be about
>>>> a thousandth of a percent of the PWM base frequency.
>>>>
>>> 
>>> Of course interrupt jitter can be a problem on RISC processors.  How
>>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>>> instructions can take as long as 7 cycles (like far calls on the big
>>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>>> in the interrupt response from the cpu is going to be small and
>>> deterministic - but it still varies.
>>
>>I have found on some PICs that there is not even one cycle of jitter in 
>>the interrupt timing (with one source of interrupts from a timer, and 
>>never disabling them). Perhaps I am lucky and the compiler avoids using 
>>some multi-cycle instruction, or perhaps it is always like that.
>
>Yes, PICs can be very efficient code wise.
>I have done analog signal video processing in a PIC 12F629, using the 2 PIC comparators
>as sync slicer and video level detector.
>Never a delay problem
>Same in a 18F14K22.
>in x dimension:
>  https://www.youtube.com/watch?v=4D1K0Lia90I
> Oh, end it makes the RC servo signals too,
>in x,y 
> https://www.youtube.com/watch?v=xS_K4caj7vc
>Just to get those F35 you know :-)
>
>But you need to read the datasheets and understand how the hardware in it works.
>All in asm, mind you.
>Just typing some C will never work, it is all based on instruction cycle counting.
>got used to that in Z80 days when programming in binary :-)
>
>Simulation??? I do not even have mplab.
>All I Need Is A Scope And One I/O Pin.
>gpasm
>Wrote the programming software too.
>
>Its easy :-)

I wrote one cross assembler for a Motorola 8-bit CPU, that showed
instruction timing in the listing for every instruction. I'm glad I
don't have to do that sort of thing any more.



-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#482546

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-10-23 09:00 -0700
Message-ID<9c4suctr9q9i988dr4h5dnvf70dqqs2orj@4ax.com>
In reply to#482523
On Mon, 23 Oct 2017 12:37:48 +0200, David Brown
<david.brown@hesbynett.no> wrote:

>On 21/10/17 21:34, bitrex wrote:
>> On 10/21/2017 03:01 PM, rickman wrote:
>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>> I have the book:
>>>>
>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>
>>>>
>>>>
>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>
>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>
>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>> deck.
>>>>
>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>> not bad.
>>>
>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>> with DMA driving the ADC.  The the software timing only needs to keep
>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>> will be from the actual clock and not any clock cycle level jitter in
>>> the CPU.
>>>
>> 
>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>> AVRs, at least - the only jitter in the interrupt timing is due to the
>> fact that not all instructions take exactly one cycle to complete and
>> the ISR can't execute until whatever it is is done, but nearly all take
>> a single cycle, some take two, and a very small number take four. The
>> typical jitter isn't more than one clock slow or fast, and if you're
>> running it at 20MHz and using a 16 bit counter that's going to be about
>> a thousandth of a percent of the PWM base frequency.
>> 
>
>Of course interrupt jitter can be a problem on RISC processors.  How
>much of a problem depends on your needs, and on the cpu.  On some AVRs
>instructions can take as long as 7 cycles (like far calls on the big
>devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>in the interrupt response from the cpu is going to be small and
>deterministic - but it still varies.
>
>The main source of jitter, however, is from sections of code where
>interrupts are disabled, such as for accessing critical data, making
>atomic accesses, etc.  And if you have more than one interrupt in the
>system then that will cause additional jitter (sometimes very large jitter).
>
>The answer to low jitter on the hardware is to do as Rick suggests - set
>up the hardware to update the signal regularly from a timer, and use the
>interrupts to prepare for the next output or outputs (with DMA if you've
>got it, or just double buffering of some sort).
>


"One experiment is worth a thousand expert opinions."

Werner Von Braun


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#482827

Frombill.sloman@ieee.org
Date2017-10-24 20:45 -0700
Message-ID<7d6beb47-fd1f-4286-87ec-00fe38c2d2e4@googlegroups.com>
In reply to#482546
On Tuesday, October 24, 2017 at 3:00:44 AM UTC+11, John Larkin wrote:
> On Mon, 23 Oct 2017 12:37:48 +0200, David Brown
> <david.brown@hesbynett.no> wrote:
> 
> >On 21/10/17 21:34, bitrex wrote:
> >> On 10/21/2017 03:01 PM, rickman wrote:
> >>> John Larkin wrote on 10/21/2017 1:03 PM:
> >>>> I have the book:
> >>>>
> >>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
> >>>>
> >>>>
> >>>>
> >>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
> >>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
> >>>> The spice sim uses a sample+hold and quantizer to simulate that.
> >>>>
> >>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
> >>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
> >>>> The FFT shows the corresponding sidebands around 50 KHz.
> >>>>
> >>>> This stuff is fun, in a geeky sort of way. Better than working on the
> >>>> deck.
> >>>>
> >>>> The filter was made from parts that were already on the pcb BOM; it's
> >>>> not bad.
> >>>
> >>> Driving timing from an interrupt can add jitter.  Better to use a part
> >>> with DMA driving the ADC.  The the software timing only needs to keep
> >>> up with the data rate keeping the DMA buffer full.  The only jitter
> >>> will be from the actual clock and not any clock cycle level jitter in
> >>> the CPU.
> >>>
> >> 
> >> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
> >> AVRs, at least - the only jitter in the interrupt timing is due to the
> >> fact that not all instructions take exactly one cycle to complete and
> >> the ISR can't execute until whatever it is is done, but nearly all take
> >> a single cycle, some take two, and a very small number take four. The
> >> typical jitter isn't more than one clock slow or fast, and if you're
> >> running it at 20MHz and using a 16 bit counter that's going to be about
> >> a thousandth of a percent of the PWM base frequency.
> >> 
> >
> >Of course interrupt jitter can be a problem on RISC processors.  How
> >much of a problem depends on your needs, and on the cpu.  On some AVRs
> >instructions can take as long as 7 cycles (like far calls on the big
> >devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
> >in the interrupt response from the cpu is going to be small and
> >deterministic - but it still varies.
> >
> >The main source of jitter, however, is from sections of code where
> >interrupts are disabled, such as for accessing critical data, making
> >atomic accesses, etc.  And if you have more than one interrupt in the
> >system then that will cause additional jitter (sometimes very large jitter).
> >
> >The answer to low jitter on the hardware is to do as Rick suggests - set
> >up the hardware to update the signal regularly from a timer, and use the
> >interrupts to prepare for the next output or outputs (with DMA if you've
> >got it, or just double buffering of some sort).
> >
> 
> 
> "One experiment is worth a thousand expert opinions."
> 
> Werner Von Braun

One properly constructed experiment is worth a thousand expert opinions, but it takes at least one expert to construct an experiment that will test the hypothesis you want tested - and you probably need the same expert, or somebody like him, to frame the hypothesis in a form that is testable and falsifiable.

Tinkerers thrashing about can construct all sort of inconclusive experiments, and draw loads of misleading conclusions from them, as anybody who has had to debug a board with a committee will tell you, at tedious length.

One of my superiors at Cambridge Instruments was brilliant at sorting out what an experiment was really telling you. He wasn't as great at sorting out the problem once it had been identified, but we had plenty of John Larkin types around to do that.

-- 
Bill Sloman, Sydney

[toc] | [prev] | [next] | [standalone]


#482557

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-10-23 13:02 -0400
Message-ID<u6qdnRXBo9kUvXPEnZ2dnUU7-UnNnZ2d@supernews.com>
In reply to#482523
On 10/23/2017 06:37 AM, David Brown wrote:
> On 21/10/17 21:34, bitrex wrote:
>> On 10/21/2017 03:01 PM, rickman wrote:
>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>> I have the book:
>>>>
>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>
>>>>
>>>>
>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>
>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>
>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>> deck.
>>>>
>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>> not bad.
>>>
>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>> with DMA driving the ADC.  The the software timing only needs to keep
>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>> will be from the actual clock and not any clock cycle level jitter in
>>> the CPU.
>>>
>>
>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>> AVRs, at least - the only jitter in the interrupt timing is due to the
>> fact that not all instructions take exactly one cycle to complete and
>> the ISR can't execute until whatever it is is done, but nearly all take
>> a single cycle, some take two, and a very small number take four. The
>> typical jitter isn't more than one clock slow or fast, and if you're
>> running it at 20MHz and using a 16 bit counter that's going to be about
>> a thousandth of a percent of the PWM base frequency.
>>
> 
> Of course interrupt jitter can be a problem on RISC processors.  How
> much of a problem depends on your needs, and on the cpu.  On some AVRs
> instructions can take as long as 7 cycles (like far calls on the big
> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
> in the interrupt response from the cpu is going to be small and
> deterministic - but it still varies.

The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
cycles when coming from mainline code, and 8 cycles when coming from a
lower-priority ISR.  (There are caveats on this in the ARM docs, but
we've found it to be so in practical cases.)

Works very nicely. JL said that there were no other interrupts,
interrupts are never disabled, and the interrupt is generated
synchronously with the CPU clock, so where's the jitter coming from?
Seems as though the clock oscillator is the only major contributor.


Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#482558

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-10-23 10:05 -0700
Message-ID<f88suchm5l9fjgrmjeuj8o1as6jn32hibr@4ax.com>
In reply to#482557
On Mon, 23 Oct 2017 13:02:00 -0400, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 10/23/2017 06:37 AM, David Brown wrote:
>> On 21/10/17 21:34, bitrex wrote:
>>> On 10/21/2017 03:01 PM, rickman wrote:
>>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>>> I have the book:
>>>>>
>>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>>
>>>>>
>>>>>
>>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>>
>>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>>
>>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>>> deck.
>>>>>
>>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>>> not bad.
>>>>
>>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>>> with DMA driving the ADC.  The the software timing only needs to keep
>>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>>> will be from the actual clock and not any clock cycle level jitter in
>>>> the CPU.
>>>>
>>>
>>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>>> AVRs, at least - the only jitter in the interrupt timing is due to the
>>> fact that not all instructions take exactly one cycle to complete and
>>> the ISR can't execute until whatever it is is done, but nearly all take
>>> a single cycle, some take two, and a very small number take four. The
>>> typical jitter isn't more than one clock slow or fast, and if you're
>>> running it at 20MHz and using a 16 bit counter that's going to be about
>>> a thousandth of a percent of the PWM base frequency.
>>>
>> 
>> Of course interrupt jitter can be a problem on RISC processors.  How
>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>> instructions can take as long as 7 cycles (like far calls on the big
>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>> in the interrupt response from the cpu is going to be small and
>> deterministic - but it still varies.
>
>The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
>cycles when coming from mainline code, and 8 cycles when coming from a
>lower-priority ISR.  (There are caveats on this in the ARM docs, but
>we've found it to be so in practical cases.)
>
>Works very nicely. JL said that there were no other interrupts,
>interrupts are never disabled, and the interrupt is generated
>synchronously with the CPU clock, so where's the jitter coming from?
>Seems as though the clock oscillator is the only major contributor.
>
>
>Cheers
>
>Phil Hobbs

The clock is an external XO. The internal clock wouldn't be
frequency-accurate enough.




-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#482568

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-10-23 11:18 -0700
Message-ID<4acsuc1kou637h45ghpr6i82ummo9ch2sj@4ax.com>
In reply to#482557
On Mon, 23 Oct 2017 13:02:00 -0400, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 10/23/2017 06:37 AM, David Brown wrote:
>> On 21/10/17 21:34, bitrex wrote:
>>> On 10/21/2017 03:01 PM, rickman wrote:
>>>> John Larkin wrote on 10/21/2017 1:03 PM:
>>>>> I have the book:
>>>>>
>>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
>>>>>
>>>>>
>>>>>
>>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
>>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
>>>>> The spice sim uses a sample+hold and quantizer to simulate that.
>>>>>
>>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
>>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
>>>>> The FFT shows the corresponding sidebands around 50 KHz.
>>>>>
>>>>> This stuff is fun, in a geeky sort of way. Better than working on the
>>>>> deck.
>>>>>
>>>>> The filter was made from parts that were already on the pcb BOM; it's
>>>>> not bad.
>>>>
>>>> Driving timing from an interrupt can add jitter.  Better to use a part
>>>> with DMA driving the ADC.  The the software timing only needs to keep
>>>> up with the data rate keeping the DMA buffer full.  The only jitter
>>>> will be from the actual clock and not any clock cycle level jitter in
>>>> the CPU.
>>>>
>>>
>>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
>>> AVRs, at least - the only jitter in the interrupt timing is due to the
>>> fact that not all instructions take exactly one cycle to complete and
>>> the ISR can't execute until whatever it is is done, but nearly all take
>>> a single cycle, some take two, and a very small number take four. The
>>> typical jitter isn't more than one clock slow or fast, and if you're
>>> running it at 20MHz and using a 16 bit counter that's going to be about
>>> a thousandth of a percent of the PWM base frequency.
>>>
>> 
>> Of course interrupt jitter can be a problem on RISC processors.  How
>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>> instructions can take as long as 7 cycles (like far calls on the big
>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>> in the interrupt response from the cpu is going to be small and
>> deterministic - but it still varies.
>
>The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
>cycles when coming from mainline code, and 8 cycles when coming from a
>lower-priority ISR.  (There are caveats on this in the ARM docs, but
>we've found it to be so in practical cases.)

They prefetch instructions from dual-port flash and apparently
speculatively prefetch branch destinations, to guarantee zero waits.
But I bet they don't prefetch vectors. So they can keep the chip
perfectly predictable if they add a fixed delay to the interrupt
process. Well, there's a lot of stuff to do to service an interrupt,
too.




-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#482575

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-10-23 12:22 -0700
Message-ID<0c189e3f-9eac-444b-a803-97aaf17e162a@googlegroups.com>
In reply to#482568
Den mandag den 23. oktober 2017 kl. 20.18.35 UTC+2 skrev John Larkin:
> On Mon, 23 Oct 2017 13:02:00 -0400, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> wrote:
> 
> >On 10/23/2017 06:37 AM, David Brown wrote:
> >> On 21/10/17 21:34, bitrex wrote:
> >>> On 10/21/2017 03:01 PM, rickman wrote:
> >>>> John Larkin wrote on 10/21/2017 1:03 PM:
> >>>>> I have the book:
> >>>>>
> >>>>> https://www.amazon.com/Signals-Systems-Dummies-Mark-Wickert/dp/111847581X/ref=sr_1_1?ie=UTF8&qid=1508604326&sr=8-1&keywords=signals+systems+dummies
> >>>>>
> >>>>>
> >>>>>
> >>>>> Here's my DDS sim. A tiny ARM cpu generates a DDS sine wave in
> >>>>> software, with a 50 KHz interrupt rate and its internal 10 bit DAC.
> >>>>> The spice sim uses a sample+hold and quantizer to simulate that.
> >>>>>
> >>>>> When V4 is around 400 Hz, the output looks really nice. At, say, 5377
> >>>>> Hz, you can zoom in on the voltage peaks and see them getting ragged.
> >>>>> The FFT shows the corresponding sidebands around 50 KHz.
> >>>>>
> >>>>> This stuff is fun, in a geeky sort of way. Better than working on the
> >>>>> deck.
> >>>>>
> >>>>> The filter was made from parts that were already on the pcb BOM; it's
> >>>>> not bad.
> >>>>
> >>>> Driving timing from an interrupt can add jitter.  Better to use a part
> >>>> with DMA driving the ADC.  The the software timing only needs to keep
> >>>> up with the data rate keeping the DMA buffer full.  The only jitter
> >>>> will be from the actual clock and not any clock cycle level jitter in
> >>>> the CPU.
> >>>>
> >>>
> >>> Interrupt jitter isn't that big a problem on RISC processors; well 8 bit
> >>> AVRs, at least - the only jitter in the interrupt timing is due to the
> >>> fact that not all instructions take exactly one cycle to complete and
> >>> the ISR can't execute until whatever it is is done, but nearly all take
> >>> a single cycle, some take two, and a very small number take four. The
> >>> typical jitter isn't more than one clock slow or fast, and if you're
> >>> running it at 20MHz and using a 16 bit counter that's going to be about
> >>> a thousandth of a percent of the PWM base frequency.
> >>>
> >> 
> >> Of course interrupt jitter can be a problem on RISC processors.  How
> >> much of a problem depends on your needs, and on the cpu.  On some AVRs
> >> instructions can take as long as 7 cycles (like far calls on the big
> >> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
> >> in the interrupt response from the cpu is going to be small and
> >> deterministic - but it still varies.
> >
> >The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
> >cycles when coming from mainline code, and 8 cycles when coming from a
> >lower-priority ISR.  (There are caveats on this in the ARM docs, but
> >we've found it to be so in practical cases.)
> 
> They prefetch instructions from dual-port flash and apparently
> speculatively prefetch branch destinations, to guarantee zero waits.
> But I bet they don't prefetch vectors. So they can keep the chip
> perfectly predictable if they add a fixed delay to the interrupt
> process. Well, there's a lot of stuff to do to service an interrupt,
> too.

on the registers are pushed on the stack in parallel with the fetch 
of the interrupt handler

afaiu the M0 and M0+ also have an option to always force the maximum 
latency so it'll have zero jitter
 

[toc] | [prev] | [next] | [standalone]


#482571

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-10-23 14:43 -0400
Message-ID<qLqHB.31464$1U2.13883@fx25.iad>
In reply to#482557
On 10/23/2017 01:02 PM, Phil Hobbs wrote:

>> Of course interrupt jitter can be a problem on RISC processors.  How
>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>> instructions can take as long as 7 cycles (like far calls on the big
>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>> in the interrupt response from the cpu is going to be small and
>> deterministic - but it still varies.
> 
> The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
> cycles when coming from mainline code, and 8 cycles when coming from a
> lower-priority ISR.  (There are caveats on this in the ARM docs, but
> we've found it to be so in practical cases.)
> 
> Works very nicely. JL said that there were no other interrupts,
> interrupts are never disabled, and the interrupt is generated
> synchronously with the CPU clock, so where's the jitter coming from?
> Seems as though the clock oscillator is the only major contributor.
> 
> 
> Cheers
> 
> Phil Hobbs
> 
> 

The only place it could come from is that the ISR can interrupt a 
mainline instruction mid-execution and it doesn't "know" how many clock 
cycles that instruction has left to complete after the interrupt returns.

[toc] | [prev] | [next] | [standalone]


#482574

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-10-23 12:05 -0700
Message-ID<h2fsucpebenhobqhamn80elobi42qh1v1a@4ax.com>
In reply to#482571
On Mon, 23 Oct 2017 14:43:34 -0400, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 10/23/2017 01:02 PM, Phil Hobbs wrote:
>
>>> Of course interrupt jitter can be a problem on RISC processors.  How
>>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>>> instructions can take as long as 7 cycles (like far calls on the big
>>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>>> in the interrupt response from the cpu is going to be small and
>>> deterministic - but it still varies.
>> 
>> The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
>> cycles when coming from mainline code, and 8 cycles when coming from a
>> lower-priority ISR.  (There are caveats on this in the ARM docs, but
>> we've found it to be so in practical cases.)
>> 
>> Works very nicely. JL said that there were no other interrupts,
>> interrupts are never disabled, and the interrupt is generated
>> synchronously with the CPU clock, so where's the jitter coming from?
>> Seems as though the clock oscillator is the only major contributor.
>> 
>> 
>> Cheers
>> 
>> Phil Hobbs
>> 
>> 
>
>The only place it could come from is that the ISR can interrupt a 
>mainline instruction mid-execution and it doesn't "know" how many clock 
>cycles that instruction has left to complete after the interrupt returns.

The interrupt hardware could just do a timeout that's longer than the
longest instruction.

Some divides can take 12 clocks in an M3, coincidence?, but I doubt
that we'll be doing any divides.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#482576

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-10-23 12:28 -0700
Message-ID<776622a4-418d-43bb-8f2f-aff0f0bd4a6c@googlegroups.com>
In reply to#482574
Den mandag den 23. oktober 2017 kl. 21.05.44 UTC+2 skrev John Larkin:
> On Mon, 23 Oct 2017 14:43:34 -0400, bitrex
> <bitrex@de.lete.earthlink.net> wrote:
> 
> >On 10/23/2017 01:02 PM, Phil Hobbs wrote:
> >
> >>> Of course interrupt jitter can be a problem on RISC processors.  How
> >>> much of a problem depends on your needs, and on the cpu.  On some AVRs
> >>> instructions can take as long as 7 cycles (like far calls on the big
> >>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
> >>> in the interrupt response from the cpu is going to be small and
> >>> deterministic - but it still varies.
> >> 
> >> The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
> >> cycles when coming from mainline code, and 8 cycles when coming from a
> >> lower-priority ISR.  (There are caveats on this in the ARM docs, but
> >> we've found it to be so in practical cases.)
> >> 
> >> Works very nicely. JL said that there were no other interrupts,
> >> interrupts are never disabled, and the interrupt is generated
> >> synchronously with the CPU clock, so where's the jitter coming from?
> >> Seems as though the clock oscillator is the only major contributor.
> >> 
> >> 
> >> Cheers
> >> 
> >> Phil Hobbs
> >> 
> >> 
> >
> >The only place it could come from is that the ISR can interrupt a 
> >mainline instruction mid-execution and it doesn't "know" how many clock 
> >cycles that instruction has left to complete after the interrupt returns.
> 
> The interrupt hardware could just do a timeout that's longer than the
> longest instruction.
> 
> Some divides can take 12 clocks in an M3, coincidence?, but I doubt
> that we'll be doing any divides.

the 12 cycles is because the interrupt controller stacks a number of registers so the interrupt can be written in straight C

instructions that take multiple cycles will just be aborted and retried after the return, multiple load/store will remember their state and continue where they were interrupted

I think the only thing that adds a cycle is bitbanding and unaligned access

[toc] | [prev] | [next] | [standalone]


#482578

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-10-23 15:32 -0400
Message-ID<jtrHB.20566$5e.3358@fx03.iad>
In reply to#482574
On 10/23/2017 03:05 PM, John Larkin wrote:

>>> Works very nicely. JL said that there were no other interrupts,
>>> interrupts are never disabled, and the interrupt is generated
>>> synchronously with the CPU clock, so where's the jitter coming from?
>>> Seems as though the clock oscillator is the only major contributor.
>>>
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>>
>>>
>>
>> The only place it could come from is that the ISR can interrupt a
>> mainline instruction mid-execution and it doesn't "know" how many clock
>> cycles that instruction has left to complete after the interrupt returns.
> 
> The interrupt hardware could just do a timeout that's longer than the
> longest instruction.
> 
> Some divides can take 12 clocks in an M3, coincidence?, but I doubt
> that we'll be doing any divides.
> 
> 

Well, if it times out until the current instruction is done executing 
it's not really an "interrupt", then. And could cause a problem if e.g. 
the instruction it failed to interrupt modified something the ISR 
expected to be unmodified.

But it would be straightforward to overcome the execution-clock jitter 
in software. You can look at the hardware timer register and the program 
counter and instruction pointer etc. whatever you need so you can add 
the delay required to compensate.

[toc] | [prev] | [next] | [standalone]


#482583

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-10-23 12:46 -0700
Message-ID<595132a8-a4dc-454f-b26b-e2b50036d8cb@googlegroups.com>
In reply to#482578
Den mandag den 23. oktober 2017 kl. 21.32.36 UTC+2 skrev bitrex:
> On 10/23/2017 03:05 PM, John Larkin wrote:
> 
> >>> Works very nicely. JL said that there were no other interrupts,
> >>> interrupts are never disabled, and the interrupt is generated
> >>> synchronously with the CPU clock, so where's the jitter coming from?
> >>> Seems as though the clock oscillator is the only major contributor.
> >>>
> >>>
> >>> Cheers
> >>>
> >>> Phil Hobbs
> >>>
> >>>
> >>
> >> The only place it could come from is that the ISR can interrupt a
> >> mainline instruction mid-execution and it doesn't "know" how many clock
> >> cycles that instruction has left to complete after the interrupt returns.
> > 
> > The interrupt hardware could just do a timeout that's longer than the
> > longest instruction.
> > 
> > Some divides can take 12 clocks in an M3, coincidence?, but I doubt
> > that we'll be doing any divides.
> > 
> > 
> 
> Well, if it times out until the current instruction is done executing 
> it's not really an "interrupt", then. 

tell that an 8051 ...

> And could cause a problem if e.g. 
> the instruction it failed to interrupt modified something the ISR 
> expected to be unmodified.

what? an interrupt can happen at any time, it can't rely on it happening before or after some arbitrary instruction

> 
> But it would be straightforward to overcome the execution-clock jitter 
> in software. You can look at the hardware timer register and the program 
> counter and instruction pointer etc. whatever you need so you can add 
> the delay required to compensate.

hmm good luck..

[toc] | [prev] | [next] | [standalone]


#482589

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2017-10-23 15:28 -0700
Message-ID<0tmsucptfskrnh4an3tn8cp4rqu13f00h2@4ax.com>
In reply to#482578
On Mon, 23 Oct 2017 15:32:30 -0400, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 10/23/2017 03:05 PM, John Larkin wrote:
>
>>>> Works very nicely. JL said that there were no other interrupts,
>>>> interrupts are never disabled, and the interrupt is generated
>>>> synchronously with the CPU clock, so where's the jitter coming from?
>>>> Seems as though the clock oscillator is the only major contributor.
>>>>
>>>>
>>>> Cheers
>>>>
>>>> Phil Hobbs
>>>>
>>>>
>>>
>>> The only place it could come from is that the ISR can interrupt a
>>> mainline instruction mid-execution and it doesn't "know" how many clock
>>> cycles that instruction has left to complete after the interrupt returns.
>> 
>> The interrupt hardware could just do a timeout that's longer than the
>> longest instruction.
>> 
>> Some divides can take 12 clocks in an M3, coincidence?, but I doubt
>> that we'll be doing any divides.
>> 
>> 
>
>Well, if it times out until the current instruction is done executing 
>it's not really an "interrupt", then. And could cause a problem if e.g. 
>the instruction it failed to interrupt modified something the ISR 
>expected to be unmodified.
>
>But it would be straightforward to overcome the execution-clock jitter 
>in software. You can look at the hardware timer register and the program 
>counter and instruction pointer etc. whatever you need so you can add 
>the delay required to compensate.

If I really zoom up on the filtered sine wave, I see a little time
jitter at the zero crossings. The flatish tops of the sines look fine.

Here's the unfiltered DAC output.

https://www.dropbox.com/s/nx4ed84x05vwd3r/P540_A_Dac.JPG?raw=1

It's pretty obvious that the 20 mV DAC quantization is a bigger
influence than any time jitter.

Increasing the IRQ rate would make the phase accumulator increment in
smaller amounts so would skip fewer points in the lookup table, and
use the DAC a little more efficiently. The improvement would probably
be marginal.

RMS voltage measurements emphasize the tops of the sine wave and
practically ignore the zero crossings. Gotta think about that one.

On an AC DVM, the RMS voltage wiggles in the 5th decimal point.



-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#482580

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-10-23 15:37 -0400
Message-ID<nyrHB.43462$kA2.12192@fx39.iad>
In reply to#482574
On 10/23/2017 03:05 PM, John Larkin wrote:
> On Mon, 23 Oct 2017 14:43:34 -0400, bitrex
> <bitrex@de.lete.earthlink.net> wrote:
> 
>> On 10/23/2017 01:02 PM, Phil Hobbs wrote:
>>
>>>> Of course interrupt jitter can be a problem on RISC processors.  How
>>>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>>>> instructions can take as long as 7 cycles (like far calls on the big
>>>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>>>> in the interrupt response from the cpu is going to be small and
>>>> deterministic - but it still varies.
>>>
>>> The interrupt latency on an ARM Cortex M3 is guaranteed to be exactly 12
>>> cycles when coming from mainline code, and 8 cycles when coming from a
>>> lower-priority ISR.  (There are caveats on this in the ARM docs, but
>>> we've found it to be so in practical cases.)
>>>
>>> Works very nicely. JL said that there were no other interrupts,
>>> interrupts are never disabled, and the interrupt is generated
>>> synchronously with the CPU clock, so where's the jitter coming from?
>>> Seems as though the clock oscillator is the only major contributor.
>>>
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>>
>>>
>>
>> The only place it could come from is that the ISR can interrupt a
>> mainline instruction mid-execution and it doesn't "know" how many clock
>> cycles that instruction has left to complete after the interrupt returns.
> 
> The interrupt hardware could just do a timeout that's longer than the
> longest instruction.
> 
> Some divides can take 12 clocks in an M3, coincidence?, but I doubt
> that we'll be doing any divides.
> 
> 

If you're not doing anything too computationally intensive in the main 
"thread" you can often also get cycle-accuracy in the ISR by always 
going into the ISR as a wake-up from a sleep mode

[toc] | [prev] | [next] | [standalone]


Page 6 of 8 — ← Prev page 1 2 3 4 5 [6] 7 8  Next page →

Back to top | Article view | sci.electronics.design


csiph-web