Article View: sci.electronics.design
Article #176Re: Ai is cool // DDS
From: john larkin
Date: Sun, 11 Oct 2026 17:40
Date: Sun, 11 Oct 2026 17:40
117 lines
6126 bytes
6126 bytes
On Sun, 11 Oct 2026 18:35:25 +0200, Gerhard Hoffmann <dk4xp@arcor.de> wrote: >Am 11.10.26 um 17:06 schrieb john larkin: >> 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. > >One of those I have used: >< >https://www.digikey.de/de/products/filter/direkte-digitale-synthese-dds/723?s=N4IgTCBcDaIIIBECcSCsAWEBdAvkA > > > Yikes. 58 euros. >> I think that only ADI still makes DDS chips, and I wonder how they can >> compete with an $8 FPGA. > >There are not companies left who can do serious AD/DA converters. TI has good ADCs and DACs too. > >>> 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. > >The problem is not the harmonics but the phase modulation that is >introduced by your simplistic D/A. The low pass can't do anything >to correct this. I'm seeing about 100 ps rms jitter on my synthesized clocks, which is great for my application. A pure NCO would have about 10x worse jitter. > >Just imagine what a changing Vol over temp/load or some dirt on >Vcc can do. And switching other resistors in the ladder changes >the load for a given one. The 5-resistor DAC makes a nice looking stairstepped sine. I did tweak the MSB resistor value to compensate for the FPGA source resistance. I could have bought an official R-2R network, but adding parts to stock is a nuisance. It works great. One concern for the product - not just the dds part - is the FPGA's delay sensitivity to core voltage. > >Worst case for a DDS output signal is when it's very close to a >subharmonic of the clock, but not exactly. Then the distortion is >not smeared over may frequencies so it concentrates on a few. I'll test some cases. Thanks. >> 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. > >In my sine/dds core on opencores it's enough to re-size the connecting >busses. > >Gerhard > John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
Technical Details
Message-ID:
<kshnclp54r5h9l99e9g77neg6nr84v8bqq@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> <11agdse$1ames$1@solani.org>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 // DDS Date: Sun, 11 Oct 2026 10:40:01 -0700 Organization: A noiseless patient Spider Lines: 117 Message-ID: <kshnclp54r5h9l99e9g77neg6nr84v8bqq@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> <11agdse$1ames$1@solani.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 11 Oct 2026 17:40:03 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3005033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yI6f+cSusUzP7g0x2O1BR"; posting-host="6323347a86e0328f7274afa80bca3cd1" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:T21ztmjlCDc7Y67YtRKyO4+9dM8= sha256:LbpDCfhSB2kZz67Uwku96k67DpKRB6gandLlDV+NaSI= sha1:tbSDzRGyXhWVeI861MTcotnNils= sha256:HqSllaTSpiSbvXdVW2nnCvltK1bOxoxMt9p8XmgpLYQ=