Article View: sci.electronics.design
Article #222Re: Ai is cool
From: john larkin
Date: Mon, 12 Oct 2026 15:26
Date: Mon, 12 Oct 2026 15:26
124 lines
7321 bytes
7321 bytes
On Mon, 12 Oct 2026 13:37:48 +1100, Bill-Sloman <bill.sloman@sophia-elektronica.com> wrote: >On 12/10/2026 12:51 pm, john larkin wrote: >> On Mon, 12 Oct 2026 12:02:10 +1100, Bill-Sloman >> <bill.sloman@sophia-elektronica.com> wrote: >> >>> On 12/10/2026 2:06 am, john larkin wrote: >>>> On Sun, 11 Oct 2026 18:46:15 +1100, Bill-Sloman >>>> <bill.sloman@sophia-elektronica.com> wrote: >>>> >>>>> On 11/10/2026 12:31 pm, john larkin wrote: >>>>>> On Thu, 08 Oct 2026 08:09:33 -0700, john larkin <jl@glen--canyon.com> >>>>>> wrote: >>>>>> >>>>>>> On Thu, 08 Oct 2026 06:30:02 +0000, someone >>>>>>> <2a59d59e3809f827ce709d3815e3950eef4a6a93af5557a93a7fdfba71460843@example.com> >>>>>>> wrote: >>>>>>> >>>>>>>> If your target output frequency isn't an integer submultiple of the DDS reference clock, stuff like that happens. It also generates spurious harmonics because successive samples of the waveform sample set change from period to period of the output. Does your DDS take an external clock? >>>>>>> >>>>>>> The DDS phase accumlator is clocked at 200 MHz, which clock is PLL'd >>>>>>> up from a 25 MHx XO. >>>>>>> >>>>>>> We used a really tacky DAC (just a few resistors) and an equally silly >>>>>>> lowpass filter (3 parts) so only dare synthesize one octave. We divide >>>>>>> down from there. >>>>>>> >>>>>>> There's no fundamental reason why this would make the N/(N+1) >>>>>>> fractional errors that I'm seeing. It must be a bug in the math >>>>>>> somewhere. >>>>>>> >>>>>>> We have a brainstorm session on Friday to review the thing. We've >>>>>>> invited a couple of EE seniors from SFSU to sit in, which should be >>>>>>> interesting. >>>>>>> >>>>>>> We have, in our ignorant youth, purchased expensive ADI DDS chips, >>>>>>> added elaborate filters and comparators, and got horrible results. The >>>>>>> FPGA-based DDS shoud be much better, once we fix the math. >>>>> If you didn't understand the math embedded in the expensive ADI DDS chip >>>>> you might have got horrible results out of them too. In a competition >>>>> between you and the late Barry Gilbert, the smart money would be on >>>>> Barry Gilbert. >>>> >>>> The ADI datasheet is in plain sight. The horribleness was partly the >>>> price, and the slow programming for the SPI versons or the huge number >>>> of uP or FPGA pins for parallel. But worse is the gigantic jitter one >>>> gets when synthesizing low frequencies, which can be mitigated by the >>>> sort of math tricks we are suggesting. >>>> >>>> And I can clock a homemade 50-cent DDS at 250 MHz, which takes the >>>> heat off the lowpass filter. >>>> >>>> An AD9913 can clock at 250, but it costs $34 and none are in stock. >>>> >>>> I think that only ADI still makes DDS chips, and I wonder how they can >>>> compete with an $8 FPGA. >>> >>> "None are in stock" suggests that they can't. Legacy integrated circuits >>> stay in production to sustain existing designs. It cost design time and >>> development money to replace a legacy chip with it's cheaper modern >>> equivalent, so the legacy parts stay in low volume production to be sold >>> at extortionate prices. >>> >>>>> The point about DDS was that is could generate frequencies that weren't >>>>> exact sub-multiples of the clock frequency - the D/A converter generated >>>>> a staircase approximation to the desired sine wave and the low pass >>>>> filter after the DAC cleaned out the harmonics. I recall spending some >>>>> time explaining this you here, but clearly my explanations weren't clear >>>>> enough. >>>> >>>> Wikipedia mostly agrees with you. >>>> >>>> Even with 32-bit math, the numbers get ugly at low frequencies. I'll >>>> ask my FPGA girls if they'll do a 48 or 64-bit divider. >>> It may take a bit of effort, but they should be able to manage it. One >>> saving grace might be that you can do a lot of math in serial processors >>> - they are slow, but low frequencies implies that you don't need new 48- >>> or 64-bit numbers all that often. >>> >>> Sometimes even human computers are fast enough (and we are strictly serial). >>> >>> Your DACs won't accommodate 48- or 64-bit numbers. >> >> No kidding. We're using a 5-bit 5-resistor 5-cent DAC. The DDS phase >> accumulator is 32 bits running at 250 MHZ. My FPGA guy did a sine >> lookup on the ms 12 bits of the phase accumulator. That's arguably >> overkill to drive a 5-bit DAC, but it was free. >> >> I need big divisors to synthesize low frequencies at high resolution. >> Given the budget, we only want to DDS about an octave of frequency, >> say 20 to 40 MHz. >> >> Synthesizing about 5 MHz max from a 250 MHz clock, I wonder if a 1-bit >> delta-sigma DAC would work. >Don Lancaster's "Magic Sine Waves" exploited that idea to the hilt. >There are more subtle mark-to-space D/A converters. Switching between >+1, 0 and -1, lets you completely suppress the third harmonic. > >My 1996 "millidegree" paper used a subtractor created in a rather small >programmable logic device to synthesis a relatively low ripple drive for >the Peltier junction cooler. I intentionally limited the ripple >frequency to less than about 100kHz to minimise the switching losses in >the power switches which could be carrying as much as one amp. > >You'd be less constrained. > >"A microcontroller-based driver to stabilize the temperature of an >opticalstage to within 1 mK in the range 4–38 C, using a Peltier heat >pump and a thermistor sensor" > >A W Slomany, Paul Buggs, James Molloy and Douglas Stewart Who is that Slomany guy? > >Meas. Sci. Technol. 7 (1996) 1653–1664. You may have mentioned that paper before. John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
Technical Details
Message-ID:
<0supcl9jdub9hsrk2hq28htas7c00rfntu@4ax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<p5e8cllcg2qf2l4pjpaki8h9me576b9vsm@4ax.com> <18dc7a199cc339b2$17$240429$4256dc03@news.newsgroupdirect.com> <qobfcl5rhm01pd5updqafa1keahueg9sat@4ax.com> <2dplcldh4srf1mjamatfa8kgbg2udahl23@4ax.com> <11afesa$2eenk$1@dont-email.me> <g78nclh7ovm0m5si1ulm40u4lng2mjp88s@4ax.com> <11ahbij$35amq$1@dont-email.me> <noeocl99rpr55l9ecfjpabe33c44svk8mn@4ax.com> <11ahh5v$36spa$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: john larkin <jl@glen--canyon.com> Newsgroups: sci.electronics.design Subject: Re: Ai is cool Date: Mon, 12 Oct 2026 08:26:25 -0700 Organization: A noiseless patient Spider Lines: 124 Message-ID: <0supcl9jdub9hsrk2hq28htas7c00rfntu@4ax.com> References: <p5e8cllcg2qf2l4pjpaki8h9me576b9vsm@4ax.com> <18dc7a199cc339b2$17$240429$4256dc03@news.newsgroupdirect.com> <qobfcl5rhm01pd5updqafa1keahueg9sat@4ax.com> <2dplcldh4srf1mjamatfa8kgbg2udahl23@4ax.com> <11afesa$2eenk$1@dont-email.me> <g78nclh7ovm0m5si1ulm40u4lng2mjp88s@4ax.com> <11ahbij$35amq$1@dont-email.me> <noeocl99rpr55l9ecfjpabe33c44svk8mn@4ax.com> <11ahh5v$36spa$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 12 Oct 2026 15:26:25 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3911600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+t9fDtpHsh5YUXsiCd5jEb"; posting-host="e2d83e253d113f256018f51955dc2714" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:/Opy4YuqiQVxJmiVpKMGDp3QPz8= sha256:K6hEZlXF7sjqGqiW7Qp3A8kh77+44X+w6WK3qr4heAI= sha1:lWsbTr17t4urPk/C1aPcIhHN+zQ= sha256:JvPFhMOjRv/KCm2KzF6HqT/YPcNxR2YqtjfFC4/0ngA=