Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #482382 > unrolled thread
| Started by | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| First post | 2017-10-21 10:03 -0700 |
| Last post | 2017-10-24 08:41 -0700 |
| Articles | 17 on this page of 157 — 28 participants |
Back to article view | Back to sci.electronics.design
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 8 of 8 — ← Prev page 1 2 3 4 5 6 7 [8]
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Date | 2017-11-08 21:19 +0200 |
| Message-ID | <otvlb6$h8o$1@dont-email.me> |
| In reply to | #483088 |
On 27.10.17 02:03, pcdhobbs@gmail.com wrote: >> Isn't "half-full" effectively the same as ping-pong in hardware? >> AIUI, the STM32 ping-pong DMA automatically switches buffers, >> giving you an interrupt to say it did (the "half-full" indication). > > Nice that they've caught up with 1990 tech there. ;) > > A few years back I had a good look at the STM32s, but the libraries were so horrible that I went back to NXP with my tail between my legs. > > It looks like the LPC176x DMA's scatter/gather support can be used to make H/W controlled ring buffers, but we'll see. > > Cheers > > Phil Hobbs The hardware manufacturer driver libraries most often belong to the recycle bin. The Atmel Cortex-M3 and Cortex-M4 (maybe others, as well) have two sets of DMA pointers and counters, and the hardware will switch the secondary pointer and counter to primary use when the primary count is exhausted. The hardware also gives an interrupt at the switching moment, so that the driver may reload the secondary set for next use. The twin pointer-counter set can be used for a circular buffer, but other scatter-gather schemes can also be used. The interrupt handler has the time of the currently active DMA block to load the next transfer registers without causing a stutter in the data stream. -- -TV
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-10-24 11:19 +0200 |
| Message-ID | <osn0jm$cgp$1@dont-email.me> |
| In reply to | #482570 |
On 23/10/17 20:40, John Devereux wrote: > Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> writes: > >> On 10/23/2017 07:09 AM, David Brown wrote: >>> On 22/10/17 14:40, upsidedown@downunder.com wrote: >>>> On Sat, 21 Oct 2017 15:01:49 -0400, rickman <gnuarm@gmail.com> 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. >>>> >>>> So you intend to use a possibly interrupt to precalculate one or more >>>> samples (phase accumulator update, sine look-up etc.) into a memory >>>> buffer and then let a DMA transfer multiple samples from that memory >>>> buffer to the DAC. >>>> >>>> Precalculating multiple samples during a single interrupt saves on >>>> interrupt overhead, but how do you synchronize DMA transfers with >>>> interrupts ? >>> >>> It is all quite simple. Set up a cyclic DMA buffer. Have a hardware >>> timer trigger this at regular intervals to take the next value from the >>> buffer and pass it on to the DAC. In your main code, or software timer, >>> or whatever, you regularly check the level of the DMA buffer. If it is >>> running low, fill it up with some more samples. The bigger your buffer, >>> the more efficient this will be and the less timing pressure there is on >>> the code (which can then have tight timing for communication, user >>> interface, or whatever) - but that also means slower reaction times when >>> you need to change the frequency, amplitude, or phase. >>> >>> I had a system set up for a project with four independent sine waves of >>> fixed frequency (1250 Hz, IIRC) via an SPI DAC. Samples were at about >>> 80 kHz per channel (320 kHz total), with outputs with varying amplitude >>> and phase. There were no interrupts, and no processor usage after setup >>> - it all ran from DMAs, with jitter within a clock cycle or two. It >>> just took a few processor instructions to change the phase or amplitude >>> of a wave. >>> >>>> >>>> Of course, if the frequency is not changing rapidly, you could >>>> precalculate the samples even with some scripting language :-) The >>>> buffer might be quite big to avoid jumps, when the sequence starts >>>> over. >>>> >>>> It would be simpler to use a common clock to drive both the interrupt >>>> pin and DAC latch pin. While there will be added jitter due to >>>> interrupts, but as long as the next sample value can be calculated >>>> prior to the _next_ DAC clock transition, the timing remains perfect. >>>> >>>> >>> >> I didn't know DMA controllers could handle ring buffers. Can ARM Cortexes? > > I don't know if they all use the same DMA hardware, I would have assumed > not. But STM32 can do a DMA ring buffer - "circular mode". I have used > it for acquiring samples from a 2MHz external serial ADC with no breaks > in the data, works fine. It can also alternate between two buffers IIRC > to get a similar effect. > > The DMA is not part of the Cortex core, and so varies from device to device. But most DMAs can handle circular mode or ring buffers. For some, the buffer must be aligned properly (a 2K ring buffer must be 2K aligned, etc.) - others are more flexible. Some DMAs give you an interrupt when they are halfway through - that can let you adjust the pointers and get a ring buffer effect.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-10-23 09:14 -0700 |
| Message-ID | <1k4sucheikl7snlc2nsja9edlmsej159t6@4ax.com> |
| In reply to | #482444 |
On Sun, 22 Oct 2017 15:40:25 +0300, upsidedown@downunder.com wrote: >On Sat, 21 Oct 2017 15:01:49 -0400, rickman <gnuarm@gmail.com> 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. > >So you intend to use a possibly interrupt to precalculate one or more >samples (phase accumulator update, sine look-up etc.) into a memory >buffer and then let a DMA transfer multiple samples from that memory >buffer to the DAC. > >Precalculating multiple samples during a single interrupt saves on >interrupt overhead, but how do you synchronize DMA transfers with >interrupts ? > >Of course, if the frequency is not changing rapidly, you could >precalculate the samples even with some scripting language :-) The >buffer might be quite big to avoid jumps, when the sequence starts >over. > >It would be simpler to use a common clock to drive both the interrupt >pin and DAC latch pin. While there will be added jitter due to >interrupts, but as long as the next sample value can be calculated >prior to the _next_ DAC clock transition, the timing remains perfect. > We could (I think) have a hardware timer clock the DAC, and (I think) the DAC has an available FIFO. I'll ask my ARM guy. In that case, we might not need interrupts at all, if the mainline loop can keep the FIFO full. If not, an occasional interrupt could do the DDS math on enough points to top off the FIFO. But we don't need to do any of that to generate a nice 400 Hz sine. Looks like the 10-bit DAC does more damage to the sine wave than IRQ timing. We are simulating aircraft power to synchros and resolvers. Aircraft power is not pristine. The processing of the signals from the synchros is ratiometric, and gets arc-minute or arc-second accuracy and insane tracking speeds using crummy AC excitation. Maybe I should add a noisy-power option to the code. I could charge more for that. Good LVDT signal processing is ratiometric too, but in the low KHz range. My Spice sim looks pretty good at 5 KHz. If I wanted to improve it up there, I'd add some poles to my lowpass filter. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2017-10-22 13:54 +0100 |
| Message-ID | <cy0HB.34224$vW1.18956@fx36.am4> |
| In reply to | #482387 |
On 21/10/17 20:01, 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. Driving from interrupts may be satisfactory in this case, but in general it is an orange flag. I don't know whether that "tiny ARM" has caches, but caches are /designed/ to right royally "influence" timing. There is another alternative. Have an IO port with inbuilt timer, and instruct the port to output the next value when the counter reaches X. It helps if the counter's clock frequency is high (say >=100MHz), there are no caches, and the hardware and software are well integrated (e.g. xC and xCORE).
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-10-22 09:43 -0700 |
| Message-ID | <dbipucp2rbsd2cieeblva5hgbphpdjkcfm@4ax.com> |
| In reply to | #482445 |
On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 21/10/17 20:01, 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. > >Driving from interrupts may be satisfactory in this case, but in >general it is an orange flag. > >I don't know whether that "tiny ARM" has caches, but caches are >/designed/ to right royally "influence" timing. The LPC1764 runs code out of flash. It has some sorta-cache thing ... "Enhanced flash memory accelerator enables high-speed 120 MHz operation with zero wait states" whatever that means. On a scope, interrupts look perfectly periodic. > >There is another alternative. Have an IO port with inbuilt timer, >and instruct the port to output the next value when the counter >reaches X. It helps if the counter's clock frequency is high >(say >=100MHz), there are no caches, and the hardware and software >are well integrated (e.g. xC and xCORE). We're using the ARM's internal 10-bit DAC. It's simple. So many people are telling me that it doesn't work, except that it does. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2017-10-22 18:11 +0100 |
| Message-ID | <qj4HB.3932$Z%7.3533@fx06.am4> |
| In reply to | #482460 |
On 22/10/17 17:43, John Larkin wrote: > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> > wrote: > >> On 21/10/17 20:01, 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. >> >> Driving from interrupts may be satisfactory in this case, but in general it >> is an orange flag. >> >> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >> to right royally "influence" timing. > > The LPC1764 runs code out of flash. It has some sorta-cache thing ... > > "Enhanced flash memory accelerator enables high-speed 120 MHz operation with > zero wait states" > > whatever that means. No doubt that's a case of RTverylongFMs :( > On a scope, interrupts look perfectly periodic. Whether that is sufficient is application dependent, of course. No doubt the audiophools wouldn't be impressed! >> There is another alternative. Have an IO port with inbuilt timer, and >> instruct the port to output the next value when the counter reaches X. It >> helps if the counter's clock frequency is high (say >=100MHz), there are no >> caches, and the hardware and software are well integrated (e.g. xC and >> xCORE). > > We're using the ARM's internal 10-bit DAC. It's simple. So many people are > telling me that it doesn't work, except that it does. Very application and board dependent, of course. I always take the attitude that there are lies, damned lies, statistics, and ADC/DAC specs.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-10-22 10:33 -0700 |
| Message-ID | <dglpuc14mrq2tbieb8uup9s2ulficdpflq@4ax.com> |
| In reply to | #482463 |
On Sun, 22 Oct 2017 18:11:53 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 22/10/17 17:43, John Larkin wrote: >> On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> >> wrote: >> >>> On 21/10/17 20:01, 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. >>> >>> Driving from interrupts may be satisfactory in this case, but in general it >>> is an orange flag. >>> >>> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >>> to right royally "influence" timing. >> >> The LPC1764 runs code out of flash. It has some sorta-cache thing ... >> >> "Enhanced flash memory accelerator enables high-speed 120 MHz operation with >> zero wait states" >> >> whatever that means. > >No doubt that's a case of RTverylongFMs :( > > >> On a scope, interrupts look perfectly periodic. > >Whether that is sufficient is application dependent, of course. No >doubt the audiophools wouldn't be impressed! > > >>> There is another alternative. Have an IO port with inbuilt timer, and >>> instruct the port to output the next value when the counter reaches X. It >>> helps if the counter's clock frequency is high (say >=100MHz), there are no >>> caches, and the hardware and software are well integrated (e.g. xC and >>> xCORE). >> >> We're using the ARM's internal 10-bit DAC. It's simple. So many people are >> telling me that it doesn't work, except that it does. > >Very application and board dependent, of course. > >I always take the attitude that there are lies, damned lies, >statistics, and ADC/DAC specs. This ARM's ADC is especially bad. Not very linear, and occasionally makes giant code spikes. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | John Devereux <john@devereux.me.uk> |
|---|---|
| Date | 2017-10-22 19:09 +0100 |
| Message-ID | <87mv4joy0w.fsf@devereux.me.uk> |
| In reply to | #482464 |
John Larkin <jjlarkin@highlandtechnology.com> writes: > On Sun, 22 Oct 2017 18:11:53 +0100, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > >>On 22/10/17 17:43, John Larkin wrote: >>> On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> >>> wrote: >>> >>>> On 21/10/17 20:01, 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. >>>> >>>> Driving from interrupts may be satisfactory in this case, but in general it >>>> is an orange flag. >>>> >>>> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >>>> to right royally "influence" timing. >>> >>> The LPC1764 runs code out of flash. It has some sorta-cache thing ... >>> >>> "Enhanced flash memory accelerator enables high-speed 120 MHz operation with >>> zero wait states" >>> >>> whatever that means. >> >>No doubt that's a case of RTverylongFMs :( >> >> >>> On a scope, interrupts look perfectly periodic. >> >>Whether that is sufficient is application dependent, of course. No >>doubt the audiophools wouldn't be impressed! >> >> >>>> There is another alternative. Have an IO port with inbuilt timer, and >>>> instruct the port to output the next value when the counter reaches X. It >>>> helps if the counter's clock frequency is high (say >=100MHz), there are no >>>> caches, and the hardware and software are well integrated (e.g. xC and >>>> xCORE). >>> >>> We're using the ARM's internal 10-bit DAC. It's simple. So many people are >>> telling me that it doesn't work, except that it does. >> >>Very application and board dependent, of course. >> >>I always take the attitude that there are lies, damned lies, >>statistics, and ADC/DAC specs. > > This ARM's ADC is especially bad. Not very linear, and occasionally > makes giant code spikes. The STM32F2 series is like that too, in fact most of the higher speed STM32s are AFAICT. It is apparently due to big spikes from the flash accelerator. However we used the STM32F301 recently in a project, this seemed to be rather quiet to my surprise, as good as a discrete ADC. And very cheap for a CM4. Don't know about linearity since this was not so important for us. -- John Devereux
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-10-23 13:16 +0200 |
| Message-ID | <oskj35$rv$2@dont-email.me> |
| In reply to | #482464 |
On 22/10/17 19:33, John Larkin wrote: > On Sun, 22 Oct 2017 18:11:53 +0100, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > >> On 22/10/17 17:43, John Larkin wrote: >>> On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> >>> wrote: >>> >>>> On 21/10/17 20:01, 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. >>>> >>>> Driving from interrupts may be satisfactory in this case, but in general it >>>> is an orange flag. >>>> >>>> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >>>> to right royally "influence" timing. >>> >>> The LPC1764 runs code out of flash. It has some sorta-cache thing ... >>> >>> "Enhanced flash memory accelerator enables high-speed 120 MHz operation with >>> zero wait states" >>> >>> whatever that means. >> >> No doubt that's a case of RTverylongFMs :( >> >> >>> On a scope, interrupts look perfectly periodic. >> >> Whether that is sufficient is application dependent, of course. No >> doubt the audiophools wouldn't be impressed! >> >> >>>> There is another alternative. Have an IO port with inbuilt timer, and >>>> instruct the port to output the next value when the counter reaches X. It >>>> helps if the counter's clock frequency is high (say >=100MHz), there are no >>>> caches, and the hardware and software are well integrated (e.g. xC and >>>> xCORE). >>> >>> We're using the ARM's internal 10-bit DAC. It's simple. So many people are >>> telling me that it doesn't work, except that it does. >> >> Very application and board dependent, of course. >> >> I always take the attitude that there are lies, damned lies, >> statistics, and ADC/DAC specs. > > This ARM's ADC is especially bad. Not very linear, and occasionally > makes giant code spikes. > Code spikes are usually software errors, not hardware problems. But on-board ADCs and DACs are never of great quality - you can't put a high precision, high stability analogue converter on the same die as a high speed microcontroller with hugely varying current needs. If you want quality analogue, put it external to the microcontroller.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-10-22 10:33 -0700 |
| Message-ID | <c953fd88-dc97-4865-bdfe-dd4d16bb020d@googlegroups.com> |
| In reply to | #482463 |
Den søndag den 22. oktober 2017 kl. 19.11.57 UTC+2 skrev Tom Gardner: > On 22/10/17 17:43, John Larkin wrote: > > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> > > wrote: > > > >> On 21/10/17 20:01, 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. > >> > >> Driving from interrupts may be satisfactory in this case, but in general it > >> is an orange flag. > >> > >> I don't know whether that "tiny ARM" has caches, but caches are /designed/ > >> to right royally "influence" timing. > > > > The LPC1764 runs code out of flash. It has some sorta-cache thing ... > > > > "Enhanced flash memory accelerator enables high-speed 120 MHz operation with > > zero wait states" > > > > whatever that means. > > No doubt that's a case of RTverylongFMs :( most of the cortexs with flash does similar things, the flash is 128bit wide so it can run at ~1/8 the rate of the cpu and still keep up, and then it has a number of 128bit registers to try account for when the code isn't linear it won't always be zero waitstates but it'll usually be close > > > On a scope, interrupts look perfectly periodic. > > Whether that is sufficient is application dependent, of course. No > doubt the audiophools wouldn't be impressed! > it is only 400Hz, if my math isn't too far off that has a maximum slewrate of 1 lsb per 40us for a 10 bit converter
[toc] | [prev] | [next] | [standalone]
| From | boB <boB@K7IQ.com> |
|---|---|
| Date | 2017-10-22 15:09 -0700 |
| Message-ID | <ua5quct0g00etq75cfrfqnohfmga2oihk4@4ax.com> |
| In reply to | #482465 |
On Sun, 22 Oct 2017 10:33:43 -0700 (PDT), Lasse Langwadt Christensen <langwadt@fonz.dk> wrote: >Den søndag den 22. oktober 2017 kl. 19.11.57 UTC+2 skrev Tom Gardner: >> On 22/10/17 17:43, John Larkin wrote: >> > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> >> > wrote: >> > >> >> On 21/10/17 20:01, 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. >> >> >> >> Driving from interrupts may be satisfactory in this case, but in general it >> >> is an orange flag. >> >> >> >> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >> >> to right royally "influence" timing. >> > >> > The LPC1764 runs code out of flash. It has some sorta-cache thing ... >> > >> > "Enhanced flash memory accelerator enables high-speed 120 MHz operation with >> > zero wait states" >> > >> > whatever that means. >> >> No doubt that's a case of RTverylongFMs :( We use that NXP series of chips in one product. They work pretty well. The cache is kinda limited but enough to pre-read instructions from flash and to feed to the ARM registers for fast processing... Unless that is, an instruction needs another flash word away from that small-ish cache buffer area. The peripherals can be pretty much anything the vendor (NXP, ST, whoever) puts in along with the ARM processor itself AFAIK. I hadn't encountered any spikes per se' but will have to take a look. We use STM32F4xx and STM8... But we also use external Delta-Smegma A/Ds which shouldn't have much of a problem related to the micro it is connected to unless we are sloppy with our layout which can certainly happen from time to time. boB > >most of the cortexs with flash does similar things, >the flash is 128bit wide so it can run at ~1/8 the rate of >the cpu and still keep up, and then it has a number of 128bit >registers to try account for when the code isn't linear > >it won't always be zero waitstates but it'll usually be close > >> >> > On a scope, interrupts look perfectly periodic. >> >> Whether that is sufficient is application dependent, of course. No >> doubt the audiophools wouldn't be impressed! >> > >it is only 400Hz, if my math isn't too far off that has a maximum >slewrate of 1 lsb per 40us for a 10 bit converter >
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-10-22 16:07 -0700 |
| Message-ID | <ca84b376-841b-48a1-9527-d0447396bbc4@googlegroups.com> |
| In reply to | #482490 |
Den mandag den 23. oktober 2017 kl. 00.09.56 UTC+2 skrev boB: > On Sun, 22 Oct 2017 10:33:43 -0700 (PDT), Lasse Langwadt Christensen > <langwadt@fonz.dk> wrote: > > >Den søndag den 22. oktober 2017 kl. 19.11.57 UTC+2 skrev Tom Gardner: > >> On 22/10/17 17:43, John Larkin wrote: > >> > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> > >> > wrote: > >> > > >> >> On 21/10/17 20:01, 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. > >> >> > >> >> Driving from interrupts may be satisfactory in this case, but in general it > >> >> is an orange flag. > >> >> > >> >> I don't know whether that "tiny ARM" has caches, but caches are /designed/ > >> >> to right royally "influence" timing. > >> > > >> > The LPC1764 runs code out of flash. It has some sorta-cache thing ... > >> > > >> > "Enhanced flash memory accelerator enables high-speed 120 MHz operation with > >> > zero wait states" > >> > > >> > whatever that means. > >> > >> No doubt that's a case of RTverylongFMs :( > > > > We use that NXP series of chips in one product. They work pretty well. > The cache is kinda limited but enough to pre-read instructions from > flash and to feed to the ARM registers for fast processing... Unless > that is, an instruction needs another flash word away from that > small-ish cache buffer area. > > The peripherals can be pretty much anything the vendor (NXP, ST, > whoever) puts in along with the ARM processor itself AFAIK. > > I hadn't encountered any spikes per se' but will have to take a look. > We use STM32F4xx and STM8... But we also use external Delta-Smegma > A/Ds which shouldn't have much of a problem related to the micro it is > connected to unless we are sloppy with our layout which can certainly > happen from time to time. > I haven't tried it but ST also have a Cortex with three 16bit delta-sigma converter, STM32F373 -Lasse
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-10-22 15:49 -0700 |
| Message-ID | <n37quclp65mosvdq5h2vodql4i7vc990ao@4ax.com> |
| In reply to | #482465 |
On Sun, 22 Oct 2017 10:33:43 -0700 (PDT), Lasse Langwadt Christensen <langwadt@fonz.dk> wrote: >Den søndag den 22. oktober 2017 kl. 19.11.57 UTC+2 skrev Tom Gardner: >> On 22/10/17 17:43, John Larkin wrote: >> > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner <spamjunk@blueyonder.co.uk> >> > wrote: >> > >> >> On 21/10/17 20:01, 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. >> >> >> >> Driving from interrupts may be satisfactory in this case, but in general it >> >> is an orange flag. >> >> >> >> I don't know whether that "tiny ARM" has caches, but caches are /designed/ >> >> to right royally "influence" timing. >> > >> > The LPC1764 runs code out of flash. It has some sorta-cache thing ... >> > >> > "Enhanced flash memory accelerator enables high-speed 120 MHz operation with >> > zero wait states" >> > >> > whatever that means. >> >> No doubt that's a case of RTverylongFMs :( > >most of the cortexs with flash does similar things, >the flash is 128bit wide so it can run at ~1/8 the rate of >the cpu and still keep up, and then it has a number of 128bit >registers to try account for when the code isn't linear The LPC1764 also does some unspecified branch anticipation and dual-ports the flash. We use the LPC3250 in more serious applications. It runs at 266 MHz and has hardware floats. It has 256K of SRAM, which is enough in most cases. It also has a DRAM interface and cache, for bigger apps. > >it won't always be zero waitstates but it'll usually be close > >> >> > On a scope, interrupts look perfectly periodic. >> >> Whether that is sufficient is application dependent, of course. No >> doubt the audiophools wouldn't be impressed! >> > >it is only 400Hz, if my math isn't too far off that has a maximum >slewrate of 1 lsb per 40us for a 10 bit converter > -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-10-23 13:14 +0200 |
| Message-ID | <oskiuo$rv$1@dont-email.me> |
| In reply to | #482463 |
On 22/10/17 19:11, Tom Gardner wrote: > On 22/10/17 17:43, John Larkin wrote: >> On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner >> <spamjunk@blueyonder.co.uk> >> wrote: >> >>> On 21/10/17 20:01, 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. >>> >>> Driving from interrupts may be satisfactory in this case, but in >>> general it >>> is an orange flag. >>> >>> I don't know whether that "tiny ARM" has caches, but caches are >>> /designed/ >>> to right royally "influence" timing. >> >> The LPC1764 runs code out of flash. It has some sorta-cache thing ... >> >> "Enhanced flash memory accelerator enables high-speed 120 MHz >> operation with >> zero wait states" >> >> whatever that means. > > No doubt that's a case of RTverylongFMs :( It means that you will sometimes see delays and wait states, but mostly have a throughput as though there were no wait states. In practice, it's probably a 2 or 4 way fully associative cache of perhaps 16 bytes each way, with read-ahead on instruction fetch. > > >> On a scope, interrupts look perfectly periodic. > > Whether that is sufficient is application dependent, of course. No > doubt the audiophools wouldn't be impressed! It will depend on the application. You will get jitter that in the worst case would be easy to see on the scope if you can catch it - but the worst case will turn up very rarely. It's the kind of problem software developers know and loath - it works fine when testing in the lab, but the customer sees a glitch during the demo. Folks used to hardware development rarely understand this kind of thing because their signals are usually much more repeatable - you turn it on and see the noise levels on your scope. > > >>> There is another alternative. Have an IO port with inbuilt timer, and >>> instruct the port to output the next value when the counter reaches >>> X. It >>> helps if the counter's clock frequency is high (say >=100MHz), there >>> are no >>> caches, and the hardware and software are well integrated (e.g. xC and >>> xCORE). >> >> We're using the ARM's internal 10-bit DAC. It's simple. So many people >> are >> telling me that it doesn't work, except that it does. > > Very application and board dependent, of course. > > I always take the attitude that there are lies, damned lies, > statistics, and ADC/DAC specs.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-10-22 16:11 -0700 |
| Message-ID | <291ab48a-5dd0-4a06-96f4-976ed687fbda@googlegroups.com> |
| In reply to | #482460 |
Den søndag den 22. oktober 2017 kl. 18.43.59 UTC+2 skrev John Larkin: > On Sun, 22 Oct 2017 13:54:35 +0100, Tom Gardner > <spamjunk@blueyonder.co.uk> wrote: > > >On 21/10/17 20:01, 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. > > > >Driving from interrupts may be satisfactory in this case, but in > >general it is an orange flag. > > > >I don't know whether that "tiny ARM" has caches, but caches are > >/designed/ to right royally "influence" timing. > > The LPC1764 runs code out of flash. It has some sorta-cache thing ... > > "Enhanced flash memory accelerator enables high-speed 120 MHz > operation with zero wait states" > > whatever that means. On a scope, interrupts look perfectly periodic. > > > > >There is another alternative. Have an IO port with inbuilt timer, > >and instruct the port to output the next value when the counter > >reaches X. It helps if the counter's clock frequency is high > >(say >=100MHz), there are no caches, and the hardware and software > >are well integrated (e.g. xC and xCORE). > > We're using the ARM's internal 10-bit DAC. It's simple. So many people > are telling me that it doesn't work, except that it does. from reading the datasheet I believe the LPC1764 DAC has an optional double buffering feature, i.e. you set a 16 bit timer value and every time it expires the DAC is updated with the value in a register, the timer reloaded and interrupt issued so you can write a new value for next update
[toc] | [prev] | [next] | [standalone]
| From | bloggs.fredbloggs.fred@gmail.com |
|---|---|
| Date | 2017-10-24 07:41 -0700 |
| Message-ID | <f42f9a3f-a1e0-4bd0-a4a6-26d636ad1cbd@googlegroups.com> |
| In reply to | #482382 |
On Saturday, October 21, 2017 at 1:03:22 PM UTC-4, John Larkin wrote: > 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. > > > > Version 4 > SHEET 1 2228 980 > WIRE 176 -208 112 -208 > WIRE 400 -208 176 -208 > WIRE 112 -160 112 -208 > WIRE 624 -160 576 -160 > WIRE 688 -160 624 -160 > WIRE 1024 -160 816 -160 > WIRE 1168 -160 1104 -160 > WIRE 400 -144 304 -144 > WIRE 816 -96 816 -160 > WIRE 304 -80 304 -144 > WIRE 112 -48 112 -80 > WIRE 816 16 816 -16 > WIRE 304 48 304 0 > WIRE 1760 96 1728 96 > WIRE 1760 128 1760 96 > WIRE 368 144 304 144 > WIRE 400 144 368 144 > WIRE 608 144 560 144 > WIRE 640 144 608 144 > WIRE 1024 144 816 144 > WIRE 1168 144 1168 -160 > WIRE 1168 144 1104 144 > WIRE 1248 144 1168 144 > WIRE 1392 144 1328 144 > WIRE 1456 144 1392 144 > WIRE 1600 144 1536 144 > WIRE 1728 144 1600 144 > WIRE 1824 160 1792 160 > WIRE 1888 160 1824 160 > WIRE 1920 160 1888 160 > WIRE 1728 176 1680 176 > WIRE 304 208 304 144 > WIRE 560 208 560 144 > WIRE 816 208 816 144 > WIRE 1168 208 1168 144 > WIRE 1392 208 1392 144 > WIRE 1600 208 1600 144 > WIRE 1760 224 1760 192 > WIRE 1760 224 1728 224 > WIRE 1168 304 1168 272 > WIRE 1600 304 1600 272 > WIRE 304 336 304 288 > WIRE 560 336 560 288 > WIRE 816 336 816 288 > WIRE 1392 368 1392 272 > WIRE 1680 368 1680 176 > WIRE 1680 368 1392 368 > WIRE 1824 368 1824 160 > WIRE 1824 368 1680 368 > FLAG 1600 304 0 > FLAG 1728 224 P > FLAG 1728 96 N > FLAG 1888 160 OUT > FLAG 304 336 0 > FLAG 560 336 0 > FLAG 368 144 P > FLAG 608 144 N > FLAG 1168 304 0 > FLAG 112 -48 0 > FLAG 176 -208 GEN > FLAG 304 48 0 > FLAG 816 16 0 > FLAG 816 336 0 > FLAG 624 -160 S > SYMBOL res 1120 128 R90 > WINDOW 0 -50 55 VBottom 2 > WINDOW 3 -42 58 VTop 2 > SYMATTR InstName R1 > SYMATTR Value 1K > SYMBOL cap 1152 208 R0 > WINDOW 0 -69 28 Left 2 > WINDOW 3 -74 66 Left 2 > SYMATTR InstName C1 > SYMATTR Value 27n > SYMBOL res 1344 128 R90 > WINDOW 0 -50 55 VBottom 2 > WINDOW 3 -42 58 VTop 2 > SYMATTR InstName R3 > SYMATTR Value 5K > SYMBOL res 1552 128 R90 > WINDOW 0 -52 63 VBottom 2 > WINDOW 3 -42 61 VTop 2 > SYMATTR InstName R4 > SYMATTR Value 5K > SYMBOL cap 1376 208 R0 > WINDOW 0 -67 31 Left 2 > WINDOW 3 -71 68 Left 2 > SYMATTR InstName C3 > SYMATTR Value 10n > SYMBOL cap 1584 208 R0 > WINDOW 0 -71 32 Left 2 > WINDOW 3 -67 68 Left 2 > SYMATTR InstName C4 > SYMATTR Value 1n > SYMBOL Opamps\\UniversalOpamp2 1760 160 M180 > WINDOW 0 28 46 Left 2 > SYMATTR InstName U2 > SYMBOL voltage 304 192 R0 > WINDOW 0 58 46 Left 2 > WINDOW 3 62 86 Left 2 > SYMATTR InstName V2 > SYMATTR Value 5 > SYMBOL voltage 560 192 R0 > WINDOW 0 58 46 Left 2 > WINDOW 3 62 86 Left 2 > SYMATTR InstName V3 > SYMATTR Value -5 > SYMBOL voltage 112 -176 R0 > WINDOW 0 38 139 Left 2 > WINDOW 3 -33 185 Left 2 > WINDOW 123 27 173 Left 2 > WINDOW 39 0 0 Left 2 > SYMATTR InstName V4 > SYMATTR Value SINE(0 1 5377) > SYMBOL SpecialFunctions\\sample 480 -176 R0 > WINDOW 0 -12 -40 Left 2 > SYMATTR InstName A1 > SYMBOL voltage 304 -96 R0 > WINDOW 0 66 100 Left 2 > WINDOW 3 39 138 Left 2 > WINDOW 123 27 173 Left 2 > WINDOW 39 0 0 Left 2 > SYMATTR InstName V5 > SYMATTR Value PULSE(0 2 0 1u 1u 5u 20u) > SYMBOL voltage 816 -112 R0 > WINDOW 0 87 23 Left 2 > WINDOW 3 55 64 Left 2 > WINDOW 123 71 108 Left 2 > WINDOW 39 0 0 Left 2 > SYMATTR InstName V1 > SYMATTR Value SINE(0 1 1K) > SYMATTR Value2 AC 1 > SYMBOL res 1120 -176 R90 > WINDOW 0 -50 55 VBottom 2 > WINDOW 3 -42 58 VTop 2 > SYMATTR InstName R2 > SYMATTR Value 1T > SYMBOL bv 816 192 R0 > WINDOW 3 20 121 Left 2 > WINDOW 0 62 40 Left 2 > SYMATTR Value V=int(512.5*V(s))/512 > SYMATTR InstName B1 > TEXT 1616 -72 Left 2 !.tran 0 100m 0 500n > TEXT 1232 -104 Left 2 ;P540 10KHz 3P DDS LPF > TEXT 1288 -8 Left 2 ;JL Oct 21, 2017 > TEXT 592 -112 Left 2 ;SAMPLER > TEXT 360 -40 Left 2 ;50 KHz IRQ > TEXT 1616 -16 Left 2 !;ac dec 20 1K 100K > TEXT 864 272 Left 2 ;QUANTIZER > TEXT 1256 -56 Left 2 ;10 BIT DDS AT 50 KHZ > > -- > > John Larkin Highland Technology, Inc > > lunatic fringe electronics You're making a mountain out of a molehill, you know that.
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-10-24 08:41 -0700 |
| Message-ID | <mjnuuc1l51glaluj02uglrjnm775ofq3ac@4ax.com> |
| In reply to | #482686 |
On Tue, 24 Oct 2017 07:41:16 -0700 (PDT), bloggs.fredbloggs.fred@gmail.com wrote: >On Saturday, October 21, 2017 at 1:03:22 PM UTC-4, John Larkin wrote: >> 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. >> >> >> >> Version 4 >> SHEET 1 2228 980 >> WIRE 176 -208 112 -208 >> WIRE 400 -208 176 -208 >> WIRE 112 -160 112 -208 >> WIRE 624 -160 576 -160 >> WIRE 688 -160 624 -160 >> WIRE 1024 -160 816 -160 >> WIRE 1168 -160 1104 -160 >> WIRE 400 -144 304 -144 >> WIRE 816 -96 816 -160 >> WIRE 304 -80 304 -144 >> WIRE 112 -48 112 -80 >> WIRE 816 16 816 -16 >> WIRE 304 48 304 0 >> WIRE 1760 96 1728 96 >> WIRE 1760 128 1760 96 >> WIRE 368 144 304 144 >> WIRE 400 144 368 144 >> WIRE 608 144 560 144 >> WIRE 640 144 608 144 >> WIRE 1024 144 816 144 >> WIRE 1168 144 1168 -160 >> WIRE 1168 144 1104 144 >> WIRE 1248 144 1168 144 >> WIRE 1392 144 1328 144 >> WIRE 1456 144 1392 144 >> WIRE 1600 144 1536 144 >> WIRE 1728 144 1600 144 >> WIRE 1824 160 1792 160 >> WIRE 1888 160 1824 160 >> WIRE 1920 160 1888 160 >> WIRE 1728 176 1680 176 >> WIRE 304 208 304 144 >> WIRE 560 208 560 144 >> WIRE 816 208 816 144 >> WIRE 1168 208 1168 144 >> WIRE 1392 208 1392 144 >> WIRE 1600 208 1600 144 >> WIRE 1760 224 1760 192 >> WIRE 1760 224 1728 224 >> WIRE 1168 304 1168 272 >> WIRE 1600 304 1600 272 >> WIRE 304 336 304 288 >> WIRE 560 336 560 288 >> WIRE 816 336 816 288 >> WIRE 1392 368 1392 272 >> WIRE 1680 368 1680 176 >> WIRE 1680 368 1392 368 >> WIRE 1824 368 1824 160 >> WIRE 1824 368 1680 368 >> FLAG 1600 304 0 >> FLAG 1728 224 P >> FLAG 1728 96 N >> FLAG 1888 160 OUT >> FLAG 304 336 0 >> FLAG 560 336 0 >> FLAG 368 144 P >> FLAG 608 144 N >> FLAG 1168 304 0 >> FLAG 112 -48 0 >> FLAG 176 -208 GEN >> FLAG 304 48 0 >> FLAG 816 16 0 >> FLAG 816 336 0 >> FLAG 624 -160 S >> SYMBOL res 1120 128 R90 >> WINDOW 0 -50 55 VBottom 2 >> WINDOW 3 -42 58 VTop 2 >> SYMATTR InstName R1 >> SYMATTR Value 1K >> SYMBOL cap 1152 208 R0 >> WINDOW 0 -69 28 Left 2 >> WINDOW 3 -74 66 Left 2 >> SYMATTR InstName C1 >> SYMATTR Value 27n >> SYMBOL res 1344 128 R90 >> WINDOW 0 -50 55 VBottom 2 >> WINDOW 3 -42 58 VTop 2 >> SYMATTR InstName R3 >> SYMATTR Value 5K >> SYMBOL res 1552 128 R90 >> WINDOW 0 -52 63 VBottom 2 >> WINDOW 3 -42 61 VTop 2 >> SYMATTR InstName R4 >> SYMATTR Value 5K >> SYMBOL cap 1376 208 R0 >> WINDOW 0 -67 31 Left 2 >> WINDOW 3 -71 68 Left 2 >> SYMATTR InstName C3 >> SYMATTR Value 10n >> SYMBOL cap 1584 208 R0 >> WINDOW 0 -71 32 Left 2 >> WINDOW 3 -67 68 Left 2 >> SYMATTR InstName C4 >> SYMATTR Value 1n >> SYMBOL Opamps\\UniversalOpamp2 1760 160 M180 >> WINDOW 0 28 46 Left 2 >> SYMATTR InstName U2 >> SYMBOL voltage 304 192 R0 >> WINDOW 0 58 46 Left 2 >> WINDOW 3 62 86 Left 2 >> SYMATTR InstName V2 >> SYMATTR Value 5 >> SYMBOL voltage 560 192 R0 >> WINDOW 0 58 46 Left 2 >> WINDOW 3 62 86 Left 2 >> SYMATTR InstName V3 >> SYMATTR Value -5 >> SYMBOL voltage 112 -176 R0 >> WINDOW 0 38 139 Left 2 >> WINDOW 3 -33 185 Left 2 >> WINDOW 123 27 173 Left 2 >> WINDOW 39 0 0 Left 2 >> SYMATTR InstName V4 >> SYMATTR Value SINE(0 1 5377) >> SYMBOL SpecialFunctions\\sample 480 -176 R0 >> WINDOW 0 -12 -40 Left 2 >> SYMATTR InstName A1 >> SYMBOL voltage 304 -96 R0 >> WINDOW 0 66 100 Left 2 >> WINDOW 3 39 138 Left 2 >> WINDOW 123 27 173 Left 2 >> WINDOW 39 0 0 Left 2 >> SYMATTR InstName V5 >> SYMATTR Value PULSE(0 2 0 1u 1u 5u 20u) >> SYMBOL voltage 816 -112 R0 >> WINDOW 0 87 23 Left 2 >> WINDOW 3 55 64 Left 2 >> WINDOW 123 71 108 Left 2 >> WINDOW 39 0 0 Left 2 >> SYMATTR InstName V1 >> SYMATTR Value SINE(0 1 1K) >> SYMATTR Value2 AC 1 >> SYMBOL res 1120 -176 R90 >> WINDOW 0 -50 55 VBottom 2 >> WINDOW 3 -42 58 VTop 2 >> SYMATTR InstName R2 >> SYMATTR Value 1T >> SYMBOL bv 816 192 R0 >> WINDOW 3 20 121 Left 2 >> WINDOW 0 62 40 Left 2 >> SYMATTR Value V=int(512.5*V(s))/512 >> SYMATTR InstName B1 >> TEXT 1616 -72 Left 2 !.tran 0 100m 0 500n >> TEXT 1232 -104 Left 2 ;P540 10KHz 3P DDS LPF >> TEXT 1288 -8 Left 2 ;JL Oct 21, 2017 >> TEXT 592 -112 Left 2 ;SAMPLER >> TEXT 360 -40 Left 2 ;50 KHz IRQ >> TEXT 1616 -16 Left 2 !;ac dec 20 1K 100K >> TEXT 864 272 Left 2 ;QUANTIZER >> TEXT 1256 -56 Left 2 ;10 BIT DDS AT 50 KHZ >> >> -- >> >> John Larkin Highland Technology, Inc >> >> lunatic fringe electronics > >You're making a mountain out of a molehill, you know that. A discussion group needs things to discuss, beyond existential planetary disasters. And designing circuits is fun. You might look up that unfamiliar word, "fun." Making a good sine wave from a cheap ARM is not a trivial, or uninteresting, thing to do. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [standalone]
Page 8 of 8 — ← Prev page 1 2 3 4 5 6 7 [8]
Back to top | Article view | sci.electronics.design
csiph-web