Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #482619
| Subject | Re: Signals and Systems for Dummies |
|---|---|
| Newsgroups | sci.electronics.design |
| References | (8 earlier) <oskv96$ucr$1@dont-email.me> <fk5suctrush6hue5vcihtskhrh9u5c5dcg@4ax.com> <1eqHB.20599$G72.8917@fx38.iad> <ev6tuct4fjrs7kv0but0fn7eknrg3is036@4ax.com> <osm9qp$8nu$1@dont-email.me> |
| From | bitrex <bitrex@de.lete.earthlink.net> |
| Message-ID | <0GyHB.22111$og2.11185@fx37.iad> (permalink) |
| Organization | frugalusenet - www.frugalusenet.com |
| Date | 2017-10-23 23:43 -0400 |
On 10/23/2017 10:50 PM, rickman wrote: > John Larkin wrote on 10/23/2017 10:30 PM: >> On Mon, 23 Oct 2017 14:07:57 -0400, bitrex >> <bitrex@de.lete.earthlink.net> wrote: >> >>> On 10/23/2017 12:26 PM, John Larkin wrote: >>> >>>>> 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. >>>> >>>> >>> >>> in avr-gcc for 8 bit: >>> >>> <https://pastebin.com/guaMLGDQ> >>> >>> Assembly output: >>> >>> <https://pastebin.com/jRuzX9kW> >>> >>> No tests or branches or anything that would inject any non-deterministic >>> latency. I mean one could try to do better using handwritten ASM. >>> >>> If one uses a bunch of switch or if/else statements inside the ISR for >>> the quadrant logic like a silly billy it won't be a nice. >> >> Looks like my programmer guy did exactly that, 90 degrees of sine >> table. The chip has 512 Kbytes of flash, so it would be a no-brainer >> to do a 1024 or 2048-word full-cycle lookup table. I'll have to talk >> to him. >> >> People seem to recommend two to four more bits in the table than DAC >> bits, so a 4K table might be good with my 10-bit DAC. > > I'm not clear on why more than two extra bits would be useful. The > slope of the sine is such that it can be described in an N bit look up > table (LUT) with some inaccuracy at the low end. So use an extra bit > and the phase error is better than the quantization error. If you want > to minimize the phase error use an extra 2 bits for your LUT input and > you are have more than a bit lower phase noise than quantization noise. > Unless you have special requirements, you will have a hard time seeing > the benefit of using more phase bits into the LUT. > > Oh, I see you talk about a "full cycle" lookup table. I assume that > means a table the covers all four quadrants. That is a bit wasteful. > My description above assumes you are willing at least to use a single > quadrant LUT to generate the output for all four quadrants. The math > for that is blindingly simple. It doesn't require conditionals. You > can do the math without conditional code. Multiply by 1 or -1 as a > function of the input data, etc. > With a sine it's trivial to do a linear interpolation interpreting the "fractional" bits of the phase accumulator as a weighting multiplier to get points in-between stored samples, too
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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