Deutsch English Français Italiano |
<vvgcgp$16qbl$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Martin Brown <'''newspam'''@nonad.co.uk> Newsgroups: sci.electronics.design,comp.dsp Subject: Re: DDS question: why sine lookup? Date: Wed, 7 May 2025 20:32:41 +0100 Organization: A noiseless patient Spider Lines: 25 Message-ID: <vvgcgp$16qbl$1@dont-email.me> References: <o3ak1k9ifikv6c1tmfnd89k6vfj4vigj37@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 07 May 2025 21:32:42 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b97620c6e5c5e416259ee78a9d3e6ad2"; logging-data="1272181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uCYZlvazlQR1U+fBavgCXlrXkD+y4i3AwW8hqQb6Mmg==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:QkBmvJ/5c+kpaYKA/g6eddtFvNU= Content-Language: en-GB In-Reply-To: <o3ak1k9ifikv6c1tmfnd89k6vfj4vigj37@4ax.com> Bytes: 2183 On 06/05/2025 16:48, john larkin wrote: > A DDS clock generator uses an NCO (a phase accumulator) and takes some > number of MSBs, maps through a sine lookup table, drives a DAC and a > lowpass filter and finally a comparator. The DAC output gets pretty > ratty near Nyquist, and the filter smooths out and interpolates the > steps and reduces jitter. > > But why do the sine lookup? Why not use the phase accumulator MSBs > directly and get a sawtooth, and filter that? A saw tooth wave has a huge step like discontinuity in it which looks very ugly in the frequency domain with strong harmonics. Strong sharp features in time domain are broad in frequency space and vice versa. If you wanted something a bit different then detecting the phase accumulator overflow and reversing the count sense to get a triangle wave might be an option (at half the frequency). Needs some very careful maths at the boundary flips to avoid introducing jitter. From that triangle wave you can use HP's wizard diode shaping network trick to get a pretty good clean sine wave. -- Martin Brown