J
John Larkin
Guest
On Thu, 11 Aug 2022 11:55:18 -0700 (PDT), Lasse Langwadt Christensen
<langwadt@fonz.dk> wrote:
Yes, but if we synthesize a 1 Hz sine wave, the LSB of a 10-bit DAC
will change about every millisecond. And theoretically one step parks
at zero volts. So jitter is bad. Gain doesn\'t improve things.
--
John Larkin Highland Technology, Inc trk
The cork popped merrily, and Lord Peter rose to his feet.
\"Bunter\", he said, \"I give you a toast. The triumph of Instinct over Reason\"
<langwadt@fonz.dk> wrote:
torsdag den 11. august 2022 kl. 05.19.40 UTC+2 skrev Ricky:
On Wednesday, August 10, 2022 at 7:37:31 PM UTC-4, lang...@fonz.dk wrote:
torsdag den 11. august 2022 kl. 00.42.05 UTC+2 skrev Ricky:
On Wednesday, August 10, 2022 at 3:37:19 PM UTC-4, upsid...@downunder.com wrote:
On Sun, 7 Aug 2022 13:26:12 -0700 (PDT), Ricky
gnuarm.del...@gmail.com> wrote:
On Sunday, August 7, 2022 at 3:48:51 PM UTC-4, John Larkin wrote:
On Sun, 7 Aug 2022 11:09:02 -0700 (PDT), whit3rd <whi...@gmail.com
wrote:
On Sunday, August 7, 2022 at 10:57:17 AM UTC-7, John Larkin wrote:
My question was, why make a sine wave if the final result is a digital
clock?
Do you want the digital clock edges to be synchronous with an existing source, or
asynchronous? Mathematically, the creation of an asynchronous clock is
not gonna happen in clocked logic circuitry, it has to have an analog component.
Of course. The analog components are dac, filter, comparator.
I want a programmable internal trigger rate for a pulse generator.
A 48-bit DDS will make a frequency of Fclk * N / 2^48 for arbitrary N,
up to Nyquist. But it gets messy at low frequencies where the dac is
incremented infrequently and the filter doesn\'t do much.
Sounds like an application for dithering.
Do you even need explicit dithering ?
The DAC output has some wide band (thermal) white noise. If the wide
noise power is close to the LSB size, do you need additional
dithering?. At low frequencies, there is also the 1/f noise.
For audio frequencies \"24 bit\" 192 kHz DACs are available, which
accepts 24 bit sample values, but in practice the last few LSB bits
are buried in noise.
If you need better dither control, some DDS chips have phase and/or
amplitude modulators built in, so the PM/AM inputs can be used to
control the high frequency dither more precisely.
larkin is concerned about what amounts to dead band in the input to the DAC. I believe he is talking about much higher sample rates than what you can get in audio DACs. He wants to program clock rates over a very wide range. Otherwise, none of this is a problem. It\'s also not a problem if multiple filters are switched depending on the frequency of the output clock.
He\'s already talked about using octave dividers to slow the clock. He is trying to view the problem from a very different perspective to see if he can gain some insight rather than using the standard, well defined approach. From what I\'ve read, if he is looking for minimum jitter, there\'s nothing better than optimizing the length of the phase counter, then using any of various means for generating a sine waveform with high resolution, then rounding to the data width of your DAC. If the clipping/rounding is done at the phase word, it introduces close in spurs that can not be effectively filtered out. The spurs introduced by rounding or truncation of the sine data, tend to be harmonically related to the fundamental, and so are much easier to filter.
The rocket science of NCO/DDS has already been researched and it is now more of a cookbook matter, other than the details of implementing the hardware, which has lots of analog gotchas.
I\'ve never looked at the idea of using dither on the digital sine values, but it might have some utility in this case. I think the best solution, though, and certainly more likely to produce a good result, is to implement different low pass filters for the different ranges of clock output rates.
Don\'t you agree?
afaict we are talking about making a square wave from the DDS output, so the issues is if you have, say just as an example, 1mV of noise on where there comparator switches. The slow slewrate of a sinewave going through that 1mV can cause more just jitter on the resulting squarewave than just hammering through that 1mV window with some waveform with a high slewrate
And your point is?
If larkin is talking about producing a square or \"trapezoidal\" wave from the NCO and skipping the filter, that\'s fine. He will get a jitter of one clock period. Adding a filter will do little to clean up jitter in the square wave and will slow the edge rate to create the noise sensitivity problem again. If the requirements allow this much jitter, then there was no need for all the fuss in the first place. If he needs low ps level jitter, then he has to mitigate the close in spurs created by the NCO truncation.
Maybe I shouldn\'t say that. The close in spurs are from phase truncation, but maybe they only appear when running that through the sine wave generator. If you skip the sine generation, perhaps that doesn\'t produce the unfilterable spurs. I\'m not betting on it.
you are missing the point. Imagine you have a perfect DDS and filter combo that makes an absolutely perfect 2Vpp 1Hz sine
you want to turn that into a square wave so you stick it into a comparator.
The comparator isn\'t perfect, the thresh hold varies by, lets say 1uV just to pick a number, due to noise etc.
At the zero crossing the slewrate is 2*pi*1*1 = 6.28V/s
so 1uV tresh hold variation turns into a ~16us timing variation
ok, the lets make the sine wave 200Vpp 1Hz, so the slew rate becomes 628V/s, the DAC can\'t make 200V so we\'ll chop
the peaks off since we are only interested in the zero crossing
so 1uV tresh hold variation is now only a ~160ns timing variation
Yes, but if we synthesize a 1 Hz sine wave, the LSB of a 10-bit DAC
will change about every millisecond. And theoretically one step parks
at zero volts. So jitter is bad. Gain doesn\'t improve things.
--
John Larkin Highland Technology, Inc trk
The cork popped merrily, and Lord Peter rose to his feet.
\"Bunter\", he said, \"I give you a toast. The triumph of Instinct over Reason\"