Skip to main content

Topic: DAC interpolation (Read 4259 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
DAC interpolation
The Nyquist-Shannon theorem (the sampling theorem) states that if a function x(t) contains no frequencies greater than B hertz, it is completely characterized by measuring its amplitudes at a series of points spaced 1/(2B) seconds apart. It further states that to reconstruct the original signal one must use the Whittaker-Shannon interpolation theorem, computing the sum of the infinite series of normalized sinc functions for each sample. (Well,
Code: [Select]
$x(t)=\sum_{-\infty}^{\infty}x[n]\cdot{\rm sinc}(\frac{t-nT}{T})$
where n is the sample number, t is the sample time, T is 1/(sampling rate), and sinc(x) is the normalized sinc function.)

I've never (in my somewhat limited experience) seen an audio DAC that does that, yet they seem to have pretty reasonable output. How accurate are the standard approximations, really? What is the interpolation error? How does one characterize it?

DAC interpolation
Reply #1
The formula of Whittaker-Shannon contains infinite sums. Practical DACs typically evaluate this sum over 20–100 samples which is a good approximation: it allows for nearly perfect reconstruction of signals up to 0.45•Fs.

  • Nessuno
  • [*][*][*][*]
DAC interpolation
Reply #2
Consider that in strict theory the Shannon theorem conditions never apply in reality simply because mathematically a band limited signal cannot be also time limited, thus "having an infinite number of samples, etc etc...".
In real world, with a sufficiently large number of samples, as Alexey Lukin said, the truncation error rounds toward zero and other components (quantization, sampling time uncertainty etc...) prevail.
  • Last Edit: 02 March, 2013, 05:12:13 AM by Nessuno
... I live by long distance.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
DAC interpolation
Reply #3

E.g.: actual characteristics of PCM1794 can be found in (page 8)

  • Jplus
  • [*]
DAC interpolation
Reply #4
Noteworthy is that finite "sinc interpolation" is usually windowed to reduce ripple and improve stopband attenuation. A common window is the Kaiser window.

  • Woodinville
  • [*][*][*][*][*]
DAC interpolation
Reply #5
What the OP fails to note is that if we allow a transition band between the highest frequency captured and fs/2, then we don't have to use a sinc function any longer, and we can also use a finite length filter.

Perhaps the person who wrote about the Shannon Theorem could read the proof of the Nyquest conjecture and by doing so, see how the statement above is incontrovertably proven.

Likewise the people who argue that all time-limited signals have infinite bandwidth, again, strictly speaking, this is true, however, we can trivially estimate the actual error and know its magnitude exactly, in terms of filtering, and easily move it well below the noise floor of any possible system.

Again, people need to understand the whole of the theorem and the paper, not just part of it.

Likewise people who argue from a statistical point of view, but who don't calculate error bounds.
J. D. (jj) Johnston

DAC interpolation
Reply #6
Thanks, I think I understand a bit better now. Especially how the use of a low-pass filter approximates the use of the sinc function in the sampling theorem.