Article View: sci.electronics.design
Article #173Re: Ai is cool // DDS
From: Gerhard Hoffmann
Date: Sun, 11 Oct 2026 16:35
Date: Sun, 11 Oct 2026 16:35
87 lines
5114 bytes
5114 bytes
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 > > 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. >> 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. 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. 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. > 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
Technical Details
Message-ID:
<11agdse$1ames$1@solani.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Gerhard Hoffmann <dk4xp@arcor.de> Newsgroups: sci.electronics.design Subject: Re: Ai is cool // DDS Date: Sun, 11 Oct 2026 18:35:25 +0200 Message-ID: <11agdse$1ames$1@solani.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 11 Oct 2026 16:35:26 -0000 (UTC) Injection-Info: solani.org; logging-data="1399260"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2lDh/thpii6tm2pN8ADzzgqlNsA= X-User-ID: eJwFwYEBwCAIA7CXgFLQc1wn/59gQpSXOouVHE6Z4m9KZwKdWJXOHbBlB/BW2L0m8X6D1n4HuBCU In-Reply-To: <g78nclh7ovm0m5si1ulm40u4lng2mjp88s@4ax.com> Content-Language: en-US