Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 5th May 2007, 10:35 PM   #1
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
Default What type of interpolation is mostly used in oversampling/upsampling dacs ?

There are different types of interpolations ranging from quick and easy(linear/average) to complex(trigonometric/poly) implementations.

Typically in oversampling/upsampling DACs what type of interpolation is used ?
  Reply With Quote
Old 13th May 2007, 04:31 PM   #2
Archwn is offline Archwn  United Kingdom
diyAudio Member
 
Join Date: Oct 2006
trigonometric would be the best? if the engine is quick enough.
  Reply With Quote
Old 13th May 2007, 04:59 PM   #3
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
I believe thats correct, but I am trying to find what is usually done in the real world dac chips ?
  Reply With Quote
Old 13th May 2007, 09:54 PM   #4
diyAudio Member
 
Join Date: Aug 2003
Location: Santa Cruz, California
To simplify things, it's a filter running at the desired sample frequency, with a corner frequency below the original Nyquist frequency. It's fed with a signal at the upsampled frequency, whose samples corresponding to the original sample period are the original samples, and zero elsewhere.

For example, say you want to upsample from 44.1 to 88.2 kHz. Design a 88.2 kHz lowpass filter with a corner frequency no higher than 22.05 kHz, and feed it with a pulse train where the even samples are the 44.1 kHz samples, and the odd samples are zero. The original signal aliases because of the zero samples, but all the alias products are above 22.05 kHz so the lowpass filter removes them.

Trigonometric/polynomial interpolations won't have the proper frequency domain behaviour unless they're carefully designed to do so, in which case you're back at the filter design stage of the problem again.

Here's more:

http://en.wikipedia.org/wiki/Upsampling
  Reply With Quote
Old 14th May 2007, 01:30 PM   #5
diyAudio Member
 
Join Date: Jun 2004
Location: sheffield
Send a message via MSN to sq225917
dsp_geek, have you ever had alook at the anagram technologies upsampling white papers, i'd be interested to hear your thoughts if you have the time.

http://www.anagramtech.com/files/whi...hite_Paper.pdf

http://www.anagramtech.com/files/whi...hite_Paper.pdf

http://www.anagramtech.com/files/pub...SRC-AES120.pdf
__________________
hoping to pick up some things.
  Reply With Quote
Old 14th May 2007, 04:39 PM   #6
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
Quote:
Originally posted by DSP_Geek

For example, say you want to upsample from 44.1 to 88.2 kHz. Design a 88.2 kHz lowpass filter with a corner frequency no higher than 22.05 kHz, and feed it with a pulse train where the even samples are the 44.1 kHz samples, and the odd samples are zero. The original signal aliases because of the zero samples, but all the alias products are above 22.05 kHz so the lowpass filter removes them.
So there are really no new samples that are actually calculated. For the sake of argument no better or worse than linear interpolation or even simple averaging.

Quote:
Originally posted by DSP_Geek

Trigonometric/polynomial interpolations won't have the proper frequency domain behaviour unless they're carefully designed to do so, in which case you're back at the filter design stage of the problem again.
hmm..interesting. As only theoritical as it may sound, I was kinda thinking FFT, followed by FFT in reverse. For example, first you would figure out the dominant harmonics (fundamental+harmonics) in the signal, based on a few samples (possibly two?) i.e. figure out the trigonometric polynomial from those samples, and then actually calculate points between those samples based on that trigonometric polynomial.
  Reply With Quote
Old 14th May 2007, 09:56 PM   #7
diyAudio Member
 
Join Date: Mar 2003
Location: Southwest, UK / York, UK / Edinburgh, UK
Quote:
So there are really no new samples that are actually calculated.
Absolutely not! There's no way to get more information from the signal you already have. No extra resolution can *ever* be gained by oversampling (regardless of method). That would break Shannon's sampling theorem.

All oversampling does is allow your DAC to use a shallower and more transparent analogue reconstruction filter at its output - a worthwhile gain, for sure. But oversampling isn't some magical process which generates extra resolution.
__________________
Wingfeather
  Reply With Quote
Old 14th May 2007, 11:18 PM   #8
diyAudio Member
 
Join Date: Oct 2001
Location: .
Quote:
Originally posted by percy
but I am trying to find what is usually done in the real world dac chips ?
Then may I suggest that you would be much better served by a good book on DSP and a digital filter datasheet or two.
  Reply With Quote
Old 15th May 2007, 12:58 AM   #9
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
or download a book for free:

http://www.dspguide.com/
  Reply With Quote
Old 15th May 2007, 08:32 PM   #10
diyAudio Member
 
Join Date: Mar 2003
Location: Southwest, UK / York, UK / Edinburgh, UK
As far as I know, the only workable realtime solution is what has already been stated by DSP_Geek - upsample your signal by stuffing it with zeros, then lowpass filter the result. A perfect lowpass filter will create the intermediate values *exactly*, given the bandwidth constraints of the digital channel. The question is really how close you can get your digital filter to perfect, both in terms of frequency response and in terms of numerical precision.

Silicon space is always limited and shortcuts may be taken in onboard filters in both FIR filter length and word length. The numerical precision of such filtering is probably limited (and probably undithered). This could explain why many report superior results when using DSP-based outboard oversampling filters and the like.

A dedicated DSP oversampling filter will almost certainly produce a better result than the one built into a DAC. The main problem is that none of the chip makers seem to publish any data about the implementation of their on-board filters, so it's hard to know if it's worth the extra effort.
__________________
Wingfeather
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
upsampling before non-oversampling dac sharpi31 Digital Line Level 0 1st April 2009 10:07 PM
CD players and DACs: upsampling and oversampling rtarbell Digital Source 4 3rd August 2006 09:16 AM
Delta-current linear-interpolation DAC wimms Digital Source 86 4th November 2004 02:05 AM
The king of all upsampling/oversampling questions... annex666 Digital Source 61 12th August 2003 05:00 PM


New To Site? Need Help?

All times are GMT. The time now is 06:51 PM.

Page generated in 0.11352 seconds (80.01% PHP - 19.99% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio