Professional Documents
Culture Documents
3-1 1-888-INTERSIL or 321-724-7143 | Intersil and Design is a trademark of Intersil Corporation. | Copyright Intersil Corporation 2000
Application Note 9603
0.75
0.5
0.25
0.0 (nT)
-0.25
-0.5
-0.75
-1.0
(nT)
n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
0.5
0.25
0.0 (nT)
n 0 1 2
0.75
TRANSIENT
0.5
RESPONSE
0.25
0.0 (nT)
-0.25
-0.5
-0.75
-1.0
n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
2
FIGURE 1C. y(n) = h(n) + x(n) (OUTPUT SAMPLES) = h(m) (n m)
m=0
FIGURE 1. THE DISCRETE TIME AND DISCRETE AMPLITUDE CONVOLUTION OF h(n) WITH x(n)
Mathematics Versus Physics A digital filters passband ripple, shape factor, stopband
The characteristics of an analog filter are directly attributable attenuation, and phase characteristics are all functions of
to the physics of the device that implements it. In contrast, the order and type of polynomial used to approximate the
the characteristics of a digital filter are only indirectly ideal impulse response, the number of bits used in
attributable to the physics of the device that implements it. performing the arithmetic, and the type of architecture used
to implement the arithmetic. Actual frequencies have no
3-2
Application Note 9603
meaning in a digital filter except in their relation to the An IIR filters poles may be close to or outside the unit circle
sampling frequency. This is because the impulse response is in the Z plane. This means an IIR filter may have stability
generated as a function of z-1, the sample interval (the time problems, especially after quantization is applied. An FIR
between samples). For a smaller shape factor, the order of filter is always stable. FIR filters also allow development of
the filter and the number of bits in the arithmetic can be computationally efficient architectures in decimating or
increased. The only physical limitation is the amount of interpolating applications, which will be described in more
arithmetic processing that can be integrated on a device or detail later.
devices given the filter order and the input sampling rate.
Filter Response Design Methods
Digital Filter Types The total specification of the ideal filter includes the location
There are two basic types of digital filters, Finite Impulse of passbands and stopbands, the minimum stopband
Response (FIR) and Infinite Impulse Response (IIR) filters. attenuation, the maximum passband ripple, the filter order,
The general form of the digital filter difference equation is: and perhaps the shape of the response in some of the
specified bands.
N N
y(n) = ai x ( n i ) bi y ( n i ) Typically, there are three stages to the design of digital filter
i=0 i=1 responses for passband filters. First, the ideal filter response
is specified. Next, a floating point response is designed.
where y(n) is the current filter output, the y(n-i)s are previous
Finally, the floating point coefficients are quantized to yield a
filter outputs, the x(n-i)s are current or previous filter inputs,
fixed point response.
the ais are the filters feed forward coefficients
corresponding to the zeros of the filter, the bis are the filters Creating a floating-point IIR filter response starts with a
feedback coefficients corresponding to the poles of the filter, prototype analog filter. Then an s-domain to z-domain
and N is the filters order. IIR filters have one or more non- transformation is used to generate a set of digital filter
zero feedback coefficients. That is, as a result of the coefficients. Common methods of designing floating-point
feedback term, if the filter has one or more poles, once the FIR filter responses are windowing, frequency sampling, and
filter has been excited with an impulse there is always an optimal. All are described in general digital signal processing
output. FIR filters have no non-zero feedback coefficient. texts and are standard in most commercially available digital
That is, the filter has only zeros, and once it has been filter design software packages.
excited with an impulse, the output is present for only a finite
Converting floating-point coefficients into fixed-point
(N) number of computational cycles.
coefficients requires quantizing the coefficients and
Figures 2 and 3 show common IIR architectures. Figures 4 calculating the frequency domain impulse response of the
through 6 show common FIR architectures. filter or filter model to verify that the filter meets the required
specification. If it does not, either the number of coefficient
Strengths and Weaknesses bits can be increased, the filter response can be redefined
Because an IIR filter uses both a feed-forward polynomial and step two repeated, or the filter arithmetic can be
(zeros as the roots) and a feedback polynomial (poles as the redesigned, or a combination of these procedures can be
roots), it has a much sharper transition characteristic for a performed. When filter hardware is at a premium,
given filter order. Like analog filters with poles, an IIR filter sophisticated simulated annealing techniques can be used
usually has nonlinear phase characteristics. Also, the for both fixed-point FIR and IIR filters to produce the best set
feedback loop makes IIR filters difficult to use in adaptive of filter coefficients, given a fixed filter order and coefficient
filter applications. width.
Due to its all zero structure, the FIR filter has a linear phase Decimation and Interpolation
response when the filters coefficients are symmetric, as is
Decimation (Figure 7) is reducing the output sampling rate
the case in most standard filtering applications. A FIRs
by ignoring all but every Mth sample. When a digital filter
implementation noise characteristics are easy to model,
reduces the bandwidth of a signal of interest so the filter
especially if no intermediate truncation is used. In this
output is over-sampled if the input sample rate is preserved,
common implementation, the noise floor is at - 6.02 B + 6.02
it is inefficient to compute outputs that will be ignored in the
log2NdB where B is the number of actual bits used in the
decimation process. Thus, there is a one-to-one
filters coefficient quantization and N is again the filter order.
correspondence between decimation rate and gain in
This is why most Intersil filter ICs have more coefficient bits
computational efficiency. However, this computational
than data bits.
efficiency can not be fully realized in an IIR filter because the
feedback path must be computed for every input cycle.
3-3
Application Note 9603
Z -1 Z -1
Z -1
a1 a2 aN
a0
x y
-b N -b N-1 -b1
Z -1 Z -1 Z -1
x y
a0
Z -1
-b1 Z -1 a1
-b2 Z -1 a2
-b 3 a3
Z -1
-b N aN
x Z -1 Z -1 Z -1 Z -1
a0 a1 a2 a3 aN
3-4
Application Note 9603
COEFF.
STORE
Z -1 Z -1 Z -1
Z -1 Z -1 Z -1 Z -1
DUMP
AND CLEAR
PULSE
aN aN-1 aN-2 a0
Z -1 Z -1 Z -1 y
LPF M
3-5
Application Note 9603
In FIR filters, interpolation computational efficiency is structures with specialized memory address schemes.
possible because only every Lth data value is non zero and Decimating or interpolating filters can use optimized
thus requires an actual multiply-add operation. polyphase structures, multiple stages and specialized
Consequently, there is a one-to-one correspondence memory addressing schemes. Coefficient memory can be
between interpolation rate and gain in computational designed to take advantage of coefficient characteristics and
efficiency. The efficient interpolation structure is called accumulators can be custom-designed to take advantage of
polyphase. Again, because of the feedback loop in an IIR unity gain properties.
filter, this computational efficiency can not be realized.
Speed/Flexibility Tradeoffs
Hardware Versus Software When a digital filter is hard-wired for one specific task, its
performance can be optimized because there is no control
There is no difference between the mathematics and filter
overhead associated with reconfiguring the IC.
response design of a hardware versus a software
implementation of a digital filter. The only differences lie in Even with a hard-wired filter, however, some degree of
the implementation architectures. flexibility can be achieved without sacrificing much
computational efficiency. For example, a FIR filter with
Optimal Architectures
programmable coefficients and filter order and a limited
A digital filter implemented in software is typically run on a selectable decimation rate requires only a modified memory
processor with a single computational element. This forces and memory addresser added to a fixed FIR filter.
the filter to be implemented in a serial sum-of-products. A
FIR is implemented as a single sum-of-products and an IIR Intersil Corporations line of standard digital filtering devices
is typically a sum of products for the feed-forward section focuses on reconfigurable function-specific devices. The
and another sum-of-products for the feedback section. standard products are specialized FIR filters; IIR filter
implementations are limited to application-specific designs.
Hardware can be optimized for each application. Low speed Most of the Intersil standard filters have programmable
and low power can be achieved using a bit-serial decimation rates. Some can interpolate. Most have
implementation. Moderate speed and power may call for a programmable coefficients and filter orders and some provide
single parallel multiplier-accumulator. High speed up/or down-conversion.
applications can utilize multiple multiplier-accumulator
INPUT SIGNAL
X (nT)
X (f)
n=1 nT 0 f
fS 2fS 3fS 4fS 5fS 6fS 7fS 8fS
n=2
L=4
INCREASE GAIN BY L
(INSERT L-1
ZEROES)
nT 0 f
fS 4fS 6fS 8fS
INCREASE GAIN BY L
FILTER L=4
Y (mT)
Y (f)
m=1 n=1 nT 0 f
LfS 2LfS
m=8
n=2
3-6
Application Note 9603
FILTER PASSBAND
3-7
Application Note 9603
CONTROL
SERIAL
I/O
2
DDC HSP43124 TO BASEBAND
A/D
3 72 PROCESSING
HSP50016 SERIAL
I/O
2
13.0 MSPS 0dB KNEE
135.281kHz
0dB 0dB 0dB
0 0 270.833kHz 0 135.417kHz
6.5MHz
The DDC is a single-chip quadrature down-converter and two dimension (for example, the horizontal or row dimension)
stage filter. It is used to tune the channel of interest to followed by filtering in the other dimension (the vertical or
baseband, and to perform narrow-band filtering and column dimension). This separability greatly simplifies the
decimation. The Serial I/O Filters are used to apply the GSM filter design compared to a two-dimensional filter.
filter shape to the output quadrature data stream. This
One and Two-Dimensional Filters
process includes decimation by two to modify the output
sampling rate to that required by the GSM Specification. This One-dimensional DSP operations are widely used in
requirement forces the DDC to decimate at a rate below its imaging or video systems to perform down-conversion or
minimum of 64 in quadrature-output mode. This is dealt with filtering. In video, purely one-dimensional operations are
by placing a three-times sample rate expander in front of the almost always in the horizontal dimension because this is
DDC. The HSP50016 and HSP43216 Data Sheets provide the dimension in which video is sampled in real time.
greater detail. Two-dimensional operations are used primarily to alter the
Application-Specific Architectures size and shape of the image or to filter in two dimensions.
The latter operations include highpass filters, to sharpen
As can be seen in the example above, while reconfigurable
edges in all directions, or lowpass filters, to limit high-
function-specific digital filters provide viable solutions to
frequency noise or to deliberately soften edges. An
specific applications, they may not be cost-effective in high
important case is image resizing, where the input image is
volumes (annual quantities in the 10 to 100 thousand range).
resampled to a different sized output image. In reducing the
This is where application-specific architectures play a role. In
image size, filtering is needed because simply down-
high volume applications, reconfigurable function-specific
sampling (throwing away pixels) vertically and horizontally
digital filters can be used initially for prototyping and refining
produces unacceptable aliasing. A two-dimensional filter can
an efficient architecture. Then, that architecture can be
be made from one-dimensional filters (Figure 12). Here, an
implemented in an application-specific device. In most
HSP43168 Dual FIR Filter provides horizontal band-limiting
cases, because of the sophisticated nature of digital filters,
prior to horizontal down-sampling. Its multi-rate capabilities
efficient architectures are likely to require semicustom or
allow it to perform the entire decimation operation. Then a
custom designs.
HSP48908 Two-Dimensional Convolver is used as a three-
Imaging/Video Systems With Separable coefficient vertical filter to reduce vertical bandwidth prior to
Dimensions vertical down-sampling.
Most digital signal processing applications involving filter Row and Column Filters
operations on two-dimensional data assume that the
In terms of algorithms, there is no basic difference between
horizontal and vertical filtering operations can be separated.
row and column digital filters. The implementation difference
That is, (Figure 11) the image data can be filtered in one
is that horizontal filters have delay elements of z-1 and
3-8
Application Note 9603
vertical filters, while they have the same structure, are factor of the anti-aliasing filter is 13.5/4.5 = 3.0. Given the
implemented with delay elements of z-L, where L is the line generally stringent passband requirements on video filters,
length in pixels. The importance of this is that vertical line this is a much more cost-effective solution than the more
delays (z-L) are more costly than horizontal sample delays, severe analog anti-aliasing filter. It allows the analog filter
because lines are hundreds of pixels long. The result is that design to concentrate on passband performance rather than
in low cost implementations, vertical filter functions tend to a sharp transition.
be very rudimentary (three coefficients or less) or
Another area that relies extensively on one-dimensional
nonexistent. Note that although vertical filters operate on
digital filtering techniques is NTSC or PAL decoding, which
pixels widely separated in time, they are still required to
require operations like chroma/luma separation filters,
produce a new output at the horizontal pixel rate because
quadrature down-conversion of the chroma information and
new sets of inputs are presented at the horizontal rate.
chroma decimation by two filtering.
Video Applications
A video A/D, for example the Intersil HI5702, may sample the Conclusion
signal at twice the required sampling rate to ease analog This Application Note has presented a brief overview of
anti-aliasing filter requirements. This would be followed by a digital filtering and has highlighted the similarities and
halfband filter similar to the HSP43216 for decimation by two differences of filters implemented in software on general
(Figure 13). To understand the usefulness of this operation, purpose digital microprocessors, in function-specific
assume the required output rate is 13.5 MSPS (a CCIR 601 hardware, and in application specific hardware. Digital filter
standard rate). With 4.5MHz input video bandwidth, the characteristics and performance have been compared to
required anti-aliasing filter cutoff with a 13.5 MSPS sampling analog filters. Applications of high performance Intersil
rate is 6.75MHz. This requires a filter shape factor of function-specific digital filters in IF and Video signal
6.75/4.5 = 1.5. If 2:1 oversampling is followed by a digital processing were illustrated as examples of cost effective
halfband filter with a decimation rate of 2, the required shape uses of digital filters with high throughput rates.
HORIZONTAL VERTICAL
INPUT OUTPUT
FILTER FILTER
HORIZONTAL VERTICAL
INPUT J K OUTPUT
FILTER FILTER
HSP43168 HSP48908
HI5702 HSP43216
FIGURE 13. TOP LEVEL BLOCK DIAGRAM OF AN OVERSAMPLER TO REDUCE ANTI-ALIASING FILTER REQUIREMENTS
3-9
Application Note 9603
All Intersil semiconductor products are manufactured, assembled and tested under ISO9000 quality systems certification.
Intersil semiconductor products are sold by description only. Intersil Corporation reserves the right to make changes in circuit design and/or specifications at any time with-
out notice. Accordingly, the reader is cautioned to verify that data sheets are current before placing orders. Information furnished by Intersil is believed to be accurate and
reliable. However, no responsibility is assumed by Intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of third parties which may result
from its use. No license is granted by implication or otherwise under any patent or patent rights of Intersil or its subsidiaries.
For information regarding Intersil Corporation and its products, see web site www.intersil.com
3-10