The selection of interpolation and decimation filter options in audio analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) is an often-misunderstood aspect of audio systems design. Selecting a fast roll-off filter to give the widest audio bandwidth isn’t always the best choice for sound quality. Filter selection is a trade-off between key performance aspects, including interaction with the analog signal path design. Listening tests suggest that selecting a filter for the best impulse response can significantly improve perceived audio quality of the system, especially at higher sampling rates.

Decimation and interpolation filters 

Modern high-performance oversampling ADCs initially convert the analog input to a low-resolution, high sample rate digital signal. A digital “decimation” filter converts this signal to the digital audio output at a typical sample rate (for example, a 24-bit, 96 kHz sample rate).

Similarly, high-performance oversampling audio DACs convert a low-resolution, high sample rate signal to analog. They use a digital “interpolation filter” to convert a digital input signal (for example, a 24-bit, 96 kHz sample rate) to the low-resolution high sample-rate input required by the delta-sigma DAC stage.

The characteristics of these filters can make a great deal of difference in the measured and subjective audio performance of the converter. The best choice of filter may depend on the application, the external analog design, and the preferences of the designer. For this reason, many ADC and DAC ICs provide multiple selectable options for the filters.

Making the right choice 

Start with the following questions to help identify the best choice for your application:

1. At what sample rate(s) will the product operate? This limits the scope of the plots and specs to review. Operating at a higher sample rate comes at a high cost in resources but enables fundamentally better sound quality by relaxing the trade-offs in the interpolator/decimator filter, achieving a better impulse response for a given passband width and stopband attenuation specification.

2. What flat passband does the product need? Unless your high sample-rate product objectively requires spectrally flat reproduction of ultrasonic audio, consider limiting the upper frequency of your passband spec to 20kHz. This will enable the other performance aspects to be improved, which can better improve the audio performance of your product.

3. Does your application face EMI challenges requiring higher stopband attenuation to avoid impairment in the audible band caused by out-of-band signal folding? Enhancements to your analog design to better filter out-of-band signal content may allow the use of a filter with less stopband attenuation, which may improve audio performance, especially impulse response.

4. Can you choose a filter with a better impulse response? This can make a highly audible improvement to the perceived audio quality.

With these answers for your application in mind, we can explore how they affect filter choices.

Ideal filters meet the real world

Ideally, the decimation or interpolation filter would have a flat frequency response up to the Nyquist frequency (half the sample rate and the theoretical maximum bandwidth of the sampled signal) and then complete attenuation of all higher frequencies. Also, the time domain characteristic would be perfect: an impulse input resulting in a one-sample impulse output with no ringing.

The problem is that digital filter theory makes this impossible. Real, implementable digital filters are a trade-off between different aspects of their performance, and enhancing any one of these aspects degrades one or both of the others. These aspects include:

• Flatness of the passband and the upper frequency limit of the passband relative to the Nyquist frequency.

• How much the stopband is attenuated, and the lower frequency limit of the stopband relative to the upper limit of the passband.

• How much ringing there is in the impulse response.

The wider the frequency range between the upper frequency limit of the passband and the Nyquist frequency, the less severe these trade-offs may be. It follows that for audio, where for practical purposes the upper frequency limit for the passband may be 20kHz, higher sample rates such as 192kHz may enable better-performing decimation and interpolation filters.

Understanding the trade-offs

What do these trade-offs mean and how do they affect the audio quality of the system? The passband flatness and extent are the easiest to understand. A flat frequency response means an authentic, high-fidelity tonal balance to the sound. Humans typically cannot hear above 20kHz, but if your application requires high-fidelity reproduction of ultrasonic audio, then you may need to prioritize extending the passband beyond 20kHz.

The stopband attenuation determines how well the ADC or DAC rejects spurious high-frequency content above half the sample rate. This prevents it from aliasing into the audible passband, where it degrades the distortion performance of the signal path. This may have audible effects, such as impairing clarity and stereo positioning.

For an ADC, this can be mitigated by enhancing the analog filter design on the input signal path to reduce the level of out-of-band content in the analog input signal from sources such as RF transmitters or switching power supplies. This enables selection of a decimation filter with less stopband attenuation. Conversely, if the ADC input is susceptible to high-frequency interference, then a filter with more stopband attenuation may be required.

For a DAC, it may be feasible to select an interpolation filter with less stopband attenuation if the analog output signal path has enough bandwidth to maintain linear operation in the presence of out-of-band signal energy. Conversely, if the DAC output path is more susceptible to out-of-band energy, it may be prudent to select an interpolation filter with more stopband attenuation.

The impulse response characterizes how accurately the converter handles transients, especially those with high-frequency content such as high-hats or plucked instruments. Human hearing seems surprisingly sensitive to the temporal quality of transients. It has been observed that selecting a filter with minimal impulse response ringing gives a distinct subjective impression of immediacy and realism with musical content, as compared to a filter with more impulse response ringing.

Filtering for best sound quality

It can be tempting to view filter response plots in terms of “more bandwidth sounds better,” and then select the filter with the greatest flat passband. In reality, however, given a flat passband up to 20kHz, the best perceived audio quality is usually obtained by selecting the filter with the best impulse response and enhancing the analog design to improve filtering of and immunity to out-of-band content.

DACs and ADCs that feature multiple filter options—such as Cirrus Logic’s high-performance Pro Audio Family of converters that are optimized individually for each sampling rate—give the best possible impulse responses for a wide range of applications. With multiple filter options to choose from, designers can significantly improve the measured and perceived audio quality of their system.

www.cirrus.com