On 8/7/2022 1:53 PM, John Larkin wrote:
> On Sun, 7 Aug 2022 10:11:44 -0700 (PDT), whit3rd <
whi...@gmail.com>
> wrote:
>
>> On Sunday, August 7, 2022 at 9:08:13 AM UTC-7, John Larkin wrote:
>>> On Sun, 7 Aug 2022 08:23:49 -0700 (PDT), whit3rd <
whi...@gmail.com>
>>> wrote:
>>>> On Sunday, August 7, 2022 at 6:55:32 AM UTC-7, John Larkin wrote:
>>>>> To make a programmable-frequency clock, the usual DDS chip has
>> ...
>>>>> M most-significant bits of that goes into a sine lookup table
>>
>>>> The sine lookup minimizes the difference function, which is the target of
>>>> the (analog) lowpass filter. That makes it a kind of digital filter doing the
>>>> bulk of the work.
>>
>>> The positive zero crossing of a sine wave and a triangle look a lot
>>> alike, a straight line within the attention span of the lowpass
>>> filter. It can't remember enough long-ago to tell the difference.
>>
>> But one wouldn't use the zero crossing (adds voltage offset error
>> to the timing signal) when a trangle wave has a nice crisp
>> cusp to define a timing.
>
> The point of the DDS lowpass filter is to interpolate multiple samples
> and reduce jitter. If we use sharp edges on the waveform, the filter
> just delays but doesn't reduce jitter. May as well use the phase
> accumulator MSB.
>
> A sawtooth has a nice long straight line rising edge. The filter will
> love that.
>
>
>
>>>
>>> We don't push the Nyquist rate, which needs an ideal lowpass filter.
>>> In fact, the sawtooth looks better to me... there is more linear
>>> history before the zero cross than a sine.
>>
>>>> Other than synchronization possibilities, the triangle-wave basis hasn't an
>>>> advantage to speak of.
>>
>>> No sine lookup table and no error contributions from that.
>>
>> But, the triangle wave, for a given amplitude, has lower slew rate (lower
>> V signal at delta-T from the zero) than a sine wave. So, lower signal/noise.
>>
>
> If D MSBs of the phase accumulator are pushed into the DAC, we get a
> sawtooth that goes rail-to-rail in one DDS cycle. Nice. We conjecture
> that some digital tricks could do even better, make a steeper
> waveform, especially at low frequencies.
>
>>> It's a clock. We don't want to filter out harmonics. Who designs
>>> digital clocks with low harmonic content?
>>
>> A 'digital clock' would usually be square-wave, neither triangle or sine.
>
> Exactly. Synchronous harmonics add no period jitter. But we want to
> make the square clock *after* the analog filter does its Shannon
> thing.
The sawtooth defined by the MSBs of the phase accumulator isn't
intrinsically band-limited but you know you can generate band-limited
sawtooths directly in software, yeah? You just integrate a band-limited
impulse train.
see e.g.
<
https://www.dafx.de/paper-archive/2008/papers/dafx08_05.pdf>