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


Groups > sci.electronics.design > #482551

Re: Signals and Systems for Dummies

From John Larkin <jjlarkin@highlandtechnology.com>
Newsgroups sci.electronics.design
Subject Re: Signals and Systems for Dummies
Date 2017-10-23 09:26 -0700
Organization highland technology
Message-ID <fk5suctrush6hue5vcihtskhrh9u5c5dcg@4ax.com> (permalink)
References (4 earlier) <935ab0f8-407c-4ea2-ae64-b3daf1a05872@googlegroups.com> <a8inuctrocpfoeqsum0ks6kh0ematf41es@4ax.com> <oski0e$pcn$1@dont-email.me> <QJmHB.35963$sX2.12448@fx18.iad> <oskv96$ucr$1@dont-email.me>

Show all headers | View raw


On Mon, 23 Oct 2017 16:44:54 +0200, David Brown
<david.brown@hesbynett.no> wrote:

>On 23/10/17 16:08, bitrex wrote:
>> On 10/23/2017 06:58 AM, David Brown wrote:
>>> On 22/10/17 00:33, John Larkin wrote:
>>>> On Sat, 21 Oct 2017 14:19:46 -0700 (PDT), Klaus Kragelund
>>>> <klauskvik@hotmail.com> wrote:
>>>>
>>>>> It is something like 0.1%, not 0.001%
>>>>
>>>> Yes, tens of ns out of 20 us is ballpark 0.1% DAC clock period jitter.
>>>> A 400 Hz sine wave doesn't change much in 20 ns. Nyquist is 25 KHz!
>>>>
>>>
>>> Bitrex is wrong - the typical jitter is going to be vastly more than a
>>> couple of clock cycles.  Say, 10 cycles for the cpu + flash, 10 for
>>> other interrupt disabled periods (assuming that the timer interrupt here
>>> is top priority), and guessing randomly about your code in the interrupt
>>> routine, a variation of 30 cycles to handle things like moving from one
>>> sine wave cycle to the next.  That gives a jitter budget of 50 cycles,
>>> or 1 us - 2% of your sample time.  You will only see worst cases
>>> occasionally - sampling with a scope is a hopeless way to see them - but
>>> they can occur.
>>>
>>>> If Ricky wants to make a technical point, and not just do his
>>>> customary whining, he can add jitter to my sim clock and post the
>>>> results.
>>>>
>>>
>>> His technical point was clear and valid, with good advice.
>>>
>> 
>> There's no way you could bitbang software serial out of a timer overflow
>> ISR at 57600 baud on a 16MHz clocked AVR using the processor clock as a
>> timing reference with a ~50 cycle jitter and yet work it does. And it
>> works on ARM, too.
>> 
>> You just have to not write the code that executes within the ISR like a
>> dumbass.
>
>You certainly /can/ write interrupt based software with low jitter.  But
>I don't know what kind of software the OP has written (I am guessing
>from this thread that it is okay quality, but missing a good deal of the
>details needed to make low-jitter outputs).

I didn't write the ARM code; I designed the hardware and discussed the
DDS math with my embedded system programmer guy. It's easy, in fact
automatic, to write the DDS code with no branches. Add the frequency
control word to the phase accumulator, mask the top bits, index into
the sine table, pluck the data, multiply by a gain cal factor, add
512, load the DAC.

We could load the DAC first thing in the IRQ, and then calculate the
next point, but there's apparently no need to do that.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

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


Thread

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

csiph-web