🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.electronics.design
18 messages
18 total messages Started by someone Thu, 08 Oct 2026 06:30
Re: Ai is cool
#69
Author: someone
Date: Thu, 08 Oct 2026 06:30
5 lines
1414 bytes
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?

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-is-cool-4412360-.htm
Re: Ai is cool
#76
Author: john larkin
Date: Thu, 08 Oct 2026 15:09
29 lines
2505 bytes
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
Re: Ai is cool
#89
Author: someone
Date: Fri, 09 Oct 2026 03:30
5 lines
1703 bytes
Well 200M is 2 x 10^8 =2 x (2 x5)^8=2^9 x 5^8 and that's not divisble by 3 x 10^6 by prime factorization. So you're going to have that subharmonic distortion nevertheless. But since it's just a resistor DAC, you probably don't care about that. But the factorization does tell you, you're not going to hit 3MHz right on the dot. Maybe they're using that dual modulus technique to try for it, who knows?

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-is-cool-4412360-.htm
Re: Ai is cool
#109
Author: someone
Date: Fri, 09 Oct 2026 16:45
6 lines
1745 bytes
How important is it to have 3MHz? If you went with something like 2.5MHz, for example, the division then becomes 200/2.5=80. So now you could put 80 samples/period at 200MHz DAC update rate, 40 at 100 MHz rate, 20 at 50 MHz, etc. Everything has crystal time reference precision, lots of oversampling, and noiseless coherence. 
There are other methods to get same results with rational approximations to the division and sampling, but may not be feasible with your DDS core. The above example is the simplest.

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-is-cool-4412360-.htm
Re: Ai is cool
#114
Author: john larkin
Date: Fri, 09 Oct 2026 18:48
21 lines
2510 bytes
On Fri, 09 Oct 2026 16:45:02 +0000, someone
<2a59d59e3809f827ce709d3815e3950eef4a6a93af5557a93a7fdfba71460843@example.com>
wrote:

>How important is it to have 3MHz? If you went with something like 2.5MHz, for example, the division then becomes 200/2.5=80. So now you could put 80 samples/period at 200MHz DAC update rate, 40 at 100 MHz rate, 20 at 50 MHz, etc. Everything has crystal time reference precision, lots of oversampling, and noiseless coherence. 
>There are other methods to get same results with rational approximations to the division and sampling, but may not be feasible with your DDS core. The above example is the simplest.

The DDS has 32-bit frequency resolution, which is orders of magnitude
better than the XO.

But the 50-cent DDS is only good to synthesize an octave or so, so we
take the customer frequency request, multiply by some N to get into
the octave, do that, and divide down to the desired frequency.

There's sometimes some error in the system, and poking the numbers
into google exposed the pattern. I thought that was cool.


John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: Ai is cool
#151
Author: 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
Re: Ai is cool
#162
Author: Bill-Sloman
Date: Sun, 11 Oct 2026 07:46
42 lines
3580 bytes
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 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.

-- 
Bill Sloman, Sydney
Re: Ai is cool
#166
Author: john larkin
Date: Sun, 11 Oct 2026 15:06
69 lines
4359 bytes
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.

>
>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.




John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: Ai is cool // DDS
#173
Author: Gerhard Hoffmann
Date: Sun, 11 Oct 2026 16:35
87 lines
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

Re: Ai is cool // DDS
#174
Author: Gerhard Hoffmann
Date: Sun, 11 Oct 2026 17:21
14 lines
1739 bytes
Am 11.10.26 um 18:35 schrieb Gerhard Hoffmann:

> 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.

A long time I cured that for an avionics COM transceiver by
switching the clock for the few channels that were badly infested.

> Gerhard
> 
> 
Re: Ai is cool // DDS
#176
Author: john larkin
Date: Sun, 11 Oct 2026 17:40
117 lines
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
Re: Ai is cool // DDS
#180
Author: john larkin
Date: Sun, 11 Oct 2026 17:49
30 lines
2414 bytes
On Sun, 11 Oct 2026 19:21:15 +0200, Gerhard Hoffmann <dk4xp@arcor.de>
wrote:

>Am 11.10.26 um 18:35 schrieb Gerhard Hoffmann:
>
>> 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.
>
>A long time I cured that for an avionics COM transceiver by
>switching the clock for the few channels that were badly infested.
>
>> Gerhard
>> 
>> 

In my case we could change the multiply up-and-down factor to avoid
those frequencies. But we'd have to include code to find them first.

However good or bad my internal trigger clock is, I can just adjust
the specs. That's easier.

Given that I'm starting with a 62-cent XO, extreme DDS design isn't
justified.


John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: Ai is cool // DDS
#189
Author: john larkin
Date: Sun, 11 Oct 2026 22:57
38 lines
2739 bytes
On Sun, 11 Oct 2026 10:49:14 -0700, john larkin <jl@glen--canyon.com>
wrote:

>On Sun, 11 Oct 2026 19:21:15 +0200, Gerhard Hoffmann <dk4xp@arcor.de>
>wrote:
>
>>Am 11.10.26 um 18:35 schrieb Gerhard Hoffmann:
>>
>>> 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.
>>
>>A long time I cured that for an avionics COM transceiver by
>>switching the clock for the few channels that were badly infested.
>>
>>> Gerhard
>>> 
>>> 
>
>In my case we could change the multiply up-and-down factor to avoid
>those frequencies. But we'd have to include code to find them first.
>
>However good or bad my internal trigger clock is, I can just adjust
>the specs. That's easier.
>
>Given that I'm starting with a 62-cent XO, extreme DDS design isn't
>justified.
>
>
>John Larkin
>Highland Tech Glen Canyon Design Center
>Lunatic Fringe Electronics

Actually, I shouldn't have included the comparator after the lowpass
filter. I could have used an FPGA LVDS pair. That fix would turn a
50-cent DDS into a 16-cent DDS.
Re: Ai is cool
#194
Author: Bill-Sloman
Date: Mon, 12 Oct 2026 01:02
81 lines
5423 bytes
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.
-- 
Bill Sloman, Sydney

-- 
Bill Sloman, Sydney
Re: Ai is cool
#200
Author: john larkin
Date: Mon, 12 Oct 2026 01:51
98 lines
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
Re: Ai is cool
#203
Author: Bill-Sloman
Date: Mon, 12 Oct 2026 02:37
114 lines
7192 bytes
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

Meas. Sci. Technol. 7 (1996) 1653–1664.

-- 
Bill Sloman, Sydney
Re: Ai is cool
#222
Author: john larkin
Date: Mon, 12 Oct 2026 15:26
124 lines
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
Re: Ai is cool
#254
Author: Bill-Sloman
Date: Tue, 13 Oct 2026 02:44
130 lines
8143 bytes
On 13/10/2026 2:26 am, john larkin wrote:
> 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 Sloman, Paul Buggs, James Molloy and Douglas Stewart
> 
> Who is that Slomany guy
That was a really odd typo. I thought that I was cutting and pasting.

>> Meas. Sci. Technol. 7 (1996) 1653–1664.
> 
> You may have mentioned that paper before.

In other contexts. The mark-to-space control mechanism is one that I 
thought up around 1975 (and should have patented back then, but I 
thought that it was obvious). It wasn't practical until programmable 
logic devices got cheap. It strikes me as clearly relevant here, but 
stuff that looks clear to me isn't always obvious to other people.

-- 
Bill Sloman, Sydney
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads