Article View: sci.electronics.design
Article #200Re: Ai is cool
From: john larkin
Date: Mon, 12 Oct 2026 01:51
Date: Mon, 12 Oct 2026 01:51
98 lines
5970 bytes
5970 bytes
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. >-- >Bill Sloman, Sydney John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
Technical Details
Message-ID:
<noeocl99rpr55l9ecfjpabe33c44svk8mn@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>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: Sun, 11 Oct 2026 18:51:23 -0700 Organization: A noiseless patient Spider Lines: 98 Message-ID: <noeocl99rpr55l9ecfjpabe33c44svk8mn@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Mon, 12 Oct 2026 01:51:25 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3347679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194XEJfs+pyoNUj4/IszTaI"; posting-host="e2d83e253d113f256018f51955dc2714" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:ejgzbuEZoNlSgcbp0Y46WAJPSvI= sha256:wtz2EEbBixEZh/Y/VEwz94ANSl5Sm42ajI2BA1uRgJw= sha1:jVxNMR0/mimFL9efL4rEfwtvgFE= sha256:C+dIY4B4ssSPqetkETgkJsLduWkPRvzhHZHc+pEmszQ=