🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics.design
Article #151

Re: Ai is cool

#151
From: john larkin
Date: Sun, 11 Oct 2026 01:31
71 lines
3713 bytes
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.
>
>
>John Larkin
>Highland Tech Glen Canyon Design Center
>Lunatic Fringe Electronics


The DDS programming might turn out to be fairly simple.

We have a 250 MHz phase accumulator clock and a 50 MHz lowpass filter
after the 5-resistor DAC. Suppose we decide that the maximum frequency
we elect to synthesize is, say, 40 MHz. That's about a third of the
Nyquist rate, pretty conservative.

Assume for now that we want to make a 5.3 MHz trigger rate

The algorithm could be

Parse the user command and get their desired synthesizer rate S  =
5.3e6

Compute integer  N = int(40e6/S)     = 7

Compute F = N*S      = 37.1 MHz. We'll synthesize that.

Compute the integer to poke into the DDS input register as  (2^32) *
F/250e6

That's 637,373,146. Poke it. That should synthesize a 37.1 MHz sine
wave.

Divide the comparator output by N=7 to get 5.3 MHz. That divide is
hardware in the FPGA.

How's that sound?

https://www.dropbox.com/scl/fi/unedjx84dboo79mbw8rp9/Cheap_DDS_WB.jpg?rlkey=mx3kav2pnnp65kum2n3jrqs1z&raw=1




John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Technical Details
Message-ID: <2dplcldh4srf1mjamatfa8kgbg2udahl23@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-mail
References: <p5e8cllcg2qf2l4pjpaki8h9me576b9vsm@4ax.com> <18dc7a199cc339b2$17$240429$4256dc03@news.newsgroupdirect.com> <qobfcl5rhm01pd5updqafa1keahueg9sat@4ax.com>

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: Sat, 10 Oct 2026 18:31:53 -0700
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <2dplcldh4srf1mjamatfa8kgbg2udahl23@4ax.com>
References: <p5e8cllcg2qf2l4pjpaki8h9me576b9vsm@4ax.com> <18dc7a199cc339b2$17$240429$4256dc03@news.newsgroupdirect.com> <qobfcl5rhm01pd5updqafa1keahueg9sat@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 11 Oct 2026 01:31:55 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2366268"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/bQjydoOJR7JBguh3KzV4+"; posting-host="6323347a86e0328f7274afa80bca3cd1"
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:IQqoy1pV7f6aO7X6Rnp+5BnJOIg= sha256:2VZPENM504VI9tvMLMb3GXh/w0Dmp8nTqoHcLyxEFtQ=
	sha1:NS6dgIGJn5qWpHuPrWNOWRLv48E= sha256:FVX0EAH30vF6MbB3LUsJc+H+f26h4ThkGjLAoC41m5s=