Zibb

Feature

Take the rough edges out of video-filter design

Incorrectly processed image-frequency information can distort displays generated from digital-video sources. Oversampling and well-implemented video-DAC-output filters can save the day, but improperly designed filters can make matters worse. Before you design your next digital-video system, take some time to investigate video-reconstruction-filter design and trade-offs in oversampling.

By Christine Bako and Joe Barry, Analog Devices -- EDN, 11/8/2001

Many video applications route video-DAC-output signals through a buffer circuit, an analog-output lowpass filter, or both before sending the signals to a receiving device, such as a TV or a monitor. Before you design your next digital-video application, make sure you understand why you need these circuits in the first place and how to best use oversampling to simplify the filter design and optimize system performance.

The analog output of video DACs requires lowpass filtering to remove unwanted signal components at so-called image frequencies, which digital-to-analog conversion produces. (In this case, the term "image" relates to multiple instances of the signal's spectrum in the frequency domain and not to images in the pictorial sense.) Removing these frequency components is the reconstruction filters' main function. These filters prevent aliasing when you connect the DAC outputs to a receiver or monitor that uses an ADC to process the video signal.

In video digital-to-analog conversion, DACs transform 8- or 10-bit digital data into corresponding analog-video signals. The sampling theorem states that, as long as the original analog signal contains no frequencies higher than half the sampling frequency, the signal can be reconstructed completely from the sampled values. Image-frequency bands appear at multiples of the sampling frequency. To avoid aliasing in the inverse process—analog-to-digital conversion—you must remove all of the high-frequency components from the signal before you sample it.

Figure 1 shows the frequency spectrum of a video-DAC-output signal. To obtain the signal, the DAC converts to the analog domain an ensemble of digital words. The words are created by sampling at a 13.5-MHz rate, fSAMPLING, a signal whose bandwidth, fSIGNAL, is 6.5 MHz. The lower cutoff frequency of the image-frequency band is fSAMPLING+fSIGNAL=13.5 MHz–6.5 MHz=7 MHz. The upper cutoff frequency of the image-frequency band is fSAMPLING+fSIGNAL=13.5 MHz+6.5 MHz=21 MHz. The image-frequency bands repeat at integer multiples of fSAMPLING. Relative to the baseband-signal magnitude, the magnitude of the image bands decreases with each integer multiple, n, of fSAMPLING. This decrease in amplitude is called the sin x/x effect. At the frequency fY, where fY=(n×fSAMPLING)–fSIGNAL, you can calculate the signal amplitude as follows:

Signal amplitude=(ln x)/x, where x is expressed in radians=(fY/fSAMPLING)×π).

For this example with a baseband signal of 6.5 MHz and a sampling frequency of 13.5 MHz, the image magnitudes decrease as follows: –4.25 dB at 7 MHz, –13.59 dB at 20.5 MHz, –17.85 dB at 33.5 MHz, –20.88 dB at 47.5 MHz, –23 dB at 60.5 MHz, and so on.

When the output device does not remove the unwanted frequency components, problems can appear on video signals that contain a lot of fine details. If the receiving device samples at too low a frequency and does not use an antialiasing filter, aliasing can occur and can cause high-frequency, out-of-baseband components to fold back down into the baseband. As a result, unwanted artifacts appear in the video signal.

With a decreasing sample rate, the reconstructed signal becomes increasingly less smooth until, finally, when the sampling frequency becomes less than two times the base-signal bandwidth, erroneous low frequencies appear (Figure 2). Avoiding aliasing requires a minimum sampling frequency of incrementally more than twice the highest frequency that appears with significant amplitude in the signal. Many designers equate "significant" with an amplitude of half of the ADC's LSB.

Removing image frequencies

You can use two methods to remove the unwanted image-frequency signals as they emerge from the DAC and to prevent aliasing in the ADC that follows: Use a high-performance external analog lowpass filter, or use digital-interpolation filters and a simple analog lowpass filter (Figure 3).

High-order lowpass filters are expensive and complex. They also introduce an unavoidable phase shift onto the signal, causing group delay, which introduces ringing. These filters must be of high order to provide the required attenuation. Because of the reconstruction process's sin x/x effect, the analog filter must also apply peaking to the passband to compensate for the loss in signal amplitude. Obtaining these characteristics further complicates the filter design. Also, the more complex the filter, the greater the likelihood of passband-phase nonlinearity and ripple problems.

Phase shift is an unavoidable characteristic of analog filters. It is the fraction of the period that elapses between corresponding points on the input and output waveforms and is measured in degrees, assuming that 360° represents a full cycle at the frequency of interest. Phase shift indicates how much a signal is delayed. Group delay (in nanoseconds for video filters) indicates how much a filter delays a signal at a specific frequency. Group delay is the derivative of the phase with respect to frequency: group delay=d(phase shift)/d(frequency).

An ideal filter design would introduce no distortion in the passband. In practice, real filters do not always behave in this way. Generally, as you approach the filter's –3-dB cutoff frequency, fC, distortion becomes more significant. To avoid this problem, you must increase fC. Moreover, variations in filter components can introduce additional distortion.

Varying delays

This behavior can mean, for instance, that a filter with fC of 7 MHz delays frequencies below 6.5 MHz by a smaller amount than frequencies near 7 MHz. The result is overshoot and ringing at the filter output. High-quality filters exhibit an approximately linear group delay in the passband-frequency range.

In many fourth- to sixth-order Butterworth lowpass filters, the phase stays approximately linear at low frequencies. As the signal frequency approaches fC, the phase shift becomes nonlinear. Phase shift causes overshoot at the filter output because each frequency experiences a different time delay. A complex filter with delay equalization can deliver satisfactory phase and group delay but is expensive. Such filters require expensive, capacitors and inductors having 1% and lower tolerance. Another method of achieving satisfactory phase and group delay is to add an allpass filter after the lowpass filter. Because an allpass filter does not affect a signal's magnitude but only its phase, it lets you move the phase inversion to a more convenient frequency (Figure 4 and Figure 5).

In video DACs that use interpolation, oversampling can relax the restrictive filter requirements. The principle of interpolation is to insert calculated values into the data stream and thus increase the effective update rate to a multiple of the original data rate. The data stream passes through a digital-interpolation filter with linear phase response, which generates the extra data points. An advantage of finite-impulse-response digital filters is that they can have linear phase response. Interpolation moves the image frequencies to a higher frequency band and thus allows you to use a less complex output filter with a higher cutoff frequency. Another big advantage of using a digital-interpolation filter is that you can more easily compensate for the effect of sin x/x in the digital-filter response than in an analog-filter design. For example, a digital peaking filter can achieve sin x/x correction without an interpolator.

When you use interpolation, oversampling also improves SNR because it spreads the noise over a wider frequency band—that is, it extends the width of the noise spectrum to the new, higher, fSAMPLE/2 point. Doubling the sampling rate, also called two-times interpolation, produces a 3-dB SNR improvement. For a 10-bit system SNR=(10×6.02+1.8) dB=(60.2+1.8) dB=62 dB. With interpolation, the decrease in total rms noise for a given input bandwidth, fINPUT, is 10log(fSAMPLING/2×fINPUT). For two-times oversampling, the expression yields 10 log 27/(2×6.5)=63.17 dB; for four-times oversampling, the expression yields 10 log 54/(2×6.5)=66.18 dB.

Signal bandwidth and fC

The video-signal bandwidth changes according to the video standard you use. High-definition video has a different signal bandwidth from standard-definition video, and PAL differs from NTSC video. For standard-definition-video signals, the International Telecommunications Union's ITU-R.BT 601/624 standards provide the bandwidth and data rate as follows. (The letters B, D, G, H, I, K, L, M, and Y following NTSC and PAL denote national and regional variants of the basic standards.)

  • Sampling frequency for NTSC and PAL Y=13.5 MHz.
  • Signal bandwidth for NTSC Y=4.2 MHz.
  • Signal bandwidth for PAL B, G, and H=5 MHz.
  • Signal bandwidth for PAL I=5.5 MHz.
  • Signal bandwidth for PAL D, K, L, M, and Y=6 MHz.

Designers often work with a signal bandwidth of 6.5 MHz to allow a safety margin for process variations and other errors.

In a video system that uses 10-bit DACs, the SNR, which, in this case, is equivalent to dynamic range, is approximately 60 dB. The video encoder interpolates the data to 27 MHz, giving an oversampling ratio of 2. This conversion rate creates image-frequency bands of unwanted signals from 20.5 to 33.5 MHz, 47.5 to 60.5 MHz, and so on. Figure 6 demonstrates the requirements for the analog filter; it must have an attenuation of 60 dB at 20.5 MHz if a stopband attenuation of 60 dB is required.

To achieve a 6.5-MHz fc, you can realize a passive sixth-order filter by using the following components: C1=180 pF, C2=680 pF, C3=470 pF, L1=2.7 μH, L2=3.3 µH, and L3=1 μH (Figure 7). The filter-response plots in Figure 4 show that the group delay reaches its maximum value, and the phase continues to increase at the higher end of the signal bandwidth. These characteristics introduce overshoot and ringing in the output signal. The attenuation of 59.4 dB at 20 MHz meets the design requirements, however.

To overcome the overshoot and ringing, you can move the filter's cutoff point to a higher frequency, and, consequently, the phase distortion and group-delay peak move to a higher frequency outside the signal bandwidth. This change requires increasing the filter order, because a sixth-order lowpass filter without stopband zeros provides only –120 dB of attenuation per decade. A simple and cheap analog solution to this problem does not exist. On the other hand, when the video encoder uses four-times oversampling, the situation is different (Figure 8). You can also extend the oversampling ratio to eight times. The ADV7300 video encoder from Analog Devices (www.analogdevices.com) supports eight-times oversampling for standard-definition signals. This rate of oversampling can reduce the lowpass reconstruction filter to a simple third-order Butterworth.

In the four-times-oversampling case, the attenuation requirements are 60 dB at 41 MHz. With these requirements, you can make the cutoff frequency high enough to avoid a group-delay peak and phase reversal in the upper signal band. At the same time, you can provide the required attenuation by using a sixth-order filter without the stopband zeros that typify, for example, elliptical-filter designs. The filter components for this passive, sixth-order, 12-MHz-cutoff lowpass filter (Figure 7) are: C1=100 pF, C2=330 pF, C3=270 pF, L1=1.5 µH, L2=1.8 µH, and L3=0.56 µH. In Figure 5, the phase response and group delay are relatively constant below 6 MHz. The group-delay peak lies well outside the signal bandwidth at approximately 12 MHz. This filter's attenuation is 63.3 dB at 40 MHz.

One other important consideration is the frequency response of the first-stage interpolation filter. The better the filter design, the more frequency components between 6.75 MHz and 13.5 MHz the filter removes. (The number of taps is a good indicator of filter attenuation and passband ripple.) You can find this type of filter in the ADV7300, which uses proprietary SSAF (Super Sub-Aliasing Filter) technology and incorporates sin x/x compensation.

Passive or active?

Passive filters are designed with inductors, capacitors, and resistors. At high frequencies, passive filters exhibit better behavior than do active filters, whose performance is limited by op-amp bandwidth. Noise from passive filters is entirely the thermal noise of the resistive components, which can be very low. Usually, however, passive-filter input impedance is too low or output impedance is too high, which necessitates the use of additional buffers.

Active filters, which are designed with op amps, resistors, and capacitors, are limited by the op amp's dynamic-performance characteristics, such as magnitude versus frequency. Active filters also require a power supply, which may further complicate the system design. The amplifying stages introduce noise, and cascaded op-amp stages usually make the noise worse, although low-noise amplifiers can minimize noise and allow the addition of gain.

In selecting an op amp, you must consider the finite gain-bandwidth product, distortion, input impedance, differential-gain and phase specifications, and the addition of noise from active components. The dc offset in op amps can also cause problems in active filters. If uncorrected, dc offset can reduce dynamic range and headroom.

Filter type

The ideal filter has linear phase response, linear group delay, no passband ripple, and steep rolloff. Different types of analog filters perform well with respect to individual characteristics in this list, but none of the types performs well with respect to all of the characteristics (Table 1).

Chebyshev filters provide steep attenuation despite limited filter order. The main disadvantage of a Chebyshev filter is that the phase is more nonlinear near the cutoff frequency than is the phase of a Butterworth filter. The other disadvantage is that a Chebyshev filter's passband ripple is higher by design than a Butterworth's passband ripple. High passband ripple is the main reason you should avoid using this type of filter in video reconstruction.

A Butterworth filter, on the other hand, has moderate attenuation for a low-order filter but is still adequate for most video applications. The other advantage of the Butterworth filter over a Chebyshev filter is that the phase is more linear in the passband and cutoff regions. Also, the passband ripple is lower.

A Bessel filter has less attenuation than a Butterworth filter but has highly linear phase in the passband and cutoff regions. The passband ripple is also low. However, to achieve the necessary stopband attenuation without introducing excessive passband attenuation, a Bessel filter's order must be too high. Therefore, Bessel filters are unsuitable for video reconstruction.

The Bessel, Butterworth, and Chebyshev filters belong to the class for which the lowpass function uses an all-pole transfer function; that is, all of the zeroes are at infinity. However, introducing finite-frequency zeros along the real-frequency axis, as in elliptic and Cauer filters, can provide the benefits of a sharper transition from passband to stopband as well as infinite attenuation at particular frequencies. These improvements are generally achieved at the expense of a reduction of attenuation at high frequencies and an increase in the circuit complexity. The other disadvantage of finite-frequency zeros is poor passband-ripple performance.

Transmission-line interconnections, in which the line's source and load terminations equal the line's characteristic impedance, present a resistive load to the op amp that drives the line. At higher frequencies—that is, at 10 MHz and above—impedance mismatches become increasingly significant. An impedance mismatch between the source and the cable's characteristic impedance causes the op amp's output signal to reflect from the cable's input back into the source. If the load is mismatched, the signal is reflected back from the load into the cable. The result is waveform distortion (Figure 9).

If the source impedance is fixed and purely resistive, the load impedance must equal the source impedance to achieve maximum power transfer and minimum signal reflection. You generally achieve these conditions by matching both the load resistance and the cable's characteristic impedance to the source resistance, which means that the amplifier sees an optimal, purely resistive load and no reflections occur.

This configuration of load and source causes the op amp to deliver half of the input voltage to the load. You can compensate for this attenuation by placing the op amp in a configuration that provides gain. In a noninverting configuration, the op-amp provides a gain of 2, which exactly compensates for the voltage division between the source and the load (Figure 10).

Circuit design

When it comes to the actual circuit design, you should pay attention to proper decoupling, grounding, and component selection (Figure 7). Route the power-supply leads directly to the amplifier's terminals, ensuring that you keep them to a minimum length. At each terminal, connect a ceramic capacitor with a value of 0.01 to 0.1 µF in parallel with a high-quality, 3- to 20-µF, tantalum capacitor. Mount the ceramic capacitors as close as possible to the device and the tantalum capacitor as near as possible to the incoming-power pins.

When you choose capacitors for use within filters—that is, for applications other than power-supply bypassing—use devices with the tightest practical tolerances and lowest practical temperature coefficients. Generally, capacitors' value tolerances are 1, 2, 5, and 10%. Also, before selecting capacitors, investigate their high-frequency characteristics. At high frequencies, many capacitors behave in ways that differ from ideal devices.

Resistors for use in filters should be the metal-film type because such devices exhibit less capacitance and stray inductance than do wire-wound types. At frequencies of interest in video filters, most wire-wound resistors behave like inductors or capacitors, exhibiting resonant peaks that make their impedance radically different from their nominal resistance. Resistors should have tolerances of less than 1% and low temperature coefficients.

When choosing inductors, you should consult the specifications for Q (quality factor) versus frequency. The higher the Q, the lower the loss and the more efficient the component. Although you should consider inductors' Q values, most capacitors have very high Q, so, when you choose capacitors, you can often safely ignore this characteristic.

Keep all component leads and etch runs as short as possible. Even though the stray inductance of an inductor's long leads might seem to increase the device's inductance, long leads can be troublesome in inductors used in video filters. The most practical way to control stray inductance is to minimize it. Parasitic circuit elements do not enhance the predictability or stability of any high-frequency circuit's response, and video filters can be especially sensitive.

High-quality video-signal generation relies on preceding the digital-to-analog conversion with optimal signal processing and on selecting the proper DAC and output filtering. By using digital interpolation and oversampled DACs, you can easily overcome the problems traditionally associated with analog postfiltering and thus achieve the best video performance at reduced system cost.


Author Information

Joe Barry is a video-application engineer at Analog Devices (Limerick, Ireland). His responsibilities include managing the video-application and design-evaluation groups and supporting and defining new video products. He holds a BSEE from the University of Greenwich (London).

 

Christine Bako is an application engineer at Analog Devices (Limerick, Ireland). Her responsibilities include supporting users of audio and video products and writing about those products. She holds a certificate in audio and video engineering from the University of Salford (Salford, England).



Reed Business Information Resource Center

Featured Company


Related Resources

ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center



Technology Quick Links

EDN Marketplace


©1997-2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites