15.01.2013 Views

U. Glaeser

U. Glaeser

U. Glaeser

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FIGURE 27.21 Symmetrical FIR filter.<br />

Using modern DSP’s FIR filters can easily be implemented with the MACD instruction, which realizes<br />

multiplication, accumulation, and data move. When used with repeat next instruction (RPT) MACD<br />

becomes a single-cycle instruction once the RPT pipeline is started. The theoretical maximum length L<br />

of the FIR filter can be computed as<br />

© 2002 by CRC Press LLC<br />

(27.44)<br />

where T s is the sampling period, T c is the instruction cycle, and k is the number of converted channels.<br />

Assuming sampling rate of 48 ksamples/s, 25 ns instruction cycle of the DSP and 6 output channels, we<br />

can realize FIR filters with the maximum length of about 138 [25].<br />

Another method for the implementation of FIR filters in DSPs consists in the use of two further new<br />

features of modern DSPs, namely the circular addressing and the FIRS instruction. This possibility can<br />

be effectively used, if the filter has a symmetric impulse response h(n) (cf., Fig. 27.21), i.e., if the filter<br />

output signal is given by<br />

(27.45)<br />

The FIRS instruction can add two data values (stored in a circular buffer) in parallel with the multiplication<br />

of this result by a filter coefficient. Once the repeat pipeline is started, this instruction becomes<br />

also a single-cycle instruction. A computational complexity is in this case reduced by half and makes it<br />

possible to realize FIR filters with the double length as compared with the programming technique<br />

previously described[48].<br />

IIR Filters<br />

x(<br />

k)<br />

+<br />

-1<br />

z<br />

-1<br />

z<br />

-1<br />

z<br />

+ + +<br />

-1<br />

z<br />

× () 0 × h () 1 × h()<br />

2<br />

×<br />

h h(<br />

N / 2 -1)<br />

N/2−1<br />

∑<br />

+<br />

L<br />

=<br />

Although FIR filters have important advantages as linear phase, stability, robustness, easy design, and<br />

implementation, their infinite impulse response (IIR) counterparts will have complexity (order) reduced<br />

by some orders of magnitude. Therefore, IIR filters are advantageous over and above FIR filters in<br />

particular applications. IIR filters are typically designed starting with an analogue reference filter and<br />

then performing the bilinear transformation [8]. Denote by H(s) transfer function of the analog reference<br />

filter. Then the resulting IIR filter transfer function H(z) is calculated as<br />

Ts -------<br />

Tck -1<br />

z<br />

-1<br />

z<br />

y(<br />

k)<br />

y( n)<br />

= h( n)<br />

{ x( n– k)<br />

+ x[ n– ( N– 1 – k)<br />

] }<br />

k=0<br />

H( z)<br />

=<br />

H s<br />

() 2 z 1<br />

s = ----<br />

Ts –<br />

---------z<br />

+ 1<br />

-1<br />

z<br />

(27.46)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!