02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

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

Analog-to-Digital Filter Transformations 437<br />

Solution<br />

MATLAB script:<br />

>> % Digital Filter Specifications:<br />

>> wp = 0.2*pi; % digital Passband freq in rad<br />

>> ws = 0.3*pi; % digital Stopband freq in rad<br />

>> Rp = 1; % Passband ripple in dB<br />

>> As = 15; % Stopband attenuation in dB<br />

>> % Analog Prototype Specifications: Inverse mapping for frequencies<br />

>> T = 1; Fs = 1/T; % Set T=1<br />

>> OmegaP = (2/T)*tan(wp/2); % Prewarp Prototype Passband freq<br />

>> OmegaS = (2/T)*tan(ws/2); % Prewarp Prototype Stopband freq<br />

>> % Analog Butterworth Prototype Filter Calculation:<br />

>> [cs,ds] = afd_butt(OmegaP,OmegaS,Rp,As);<br />

*** Butterworth Filter Order = 6<br />

>> % Bilinear transformation:<br />

>> [b,a] = bilinear(cs,ds,Fs); [C,B,A] = dir2cas(b,a)<br />

C = 5.7969e-004<br />

B = 1.0000 2.0183 1.0186<br />

1.0000 1.9814 0.9817<br />

1.0000 2.0004 1.0000<br />

A = 1.0000 -0.9459 0.2342<br />

1.0000 -1.0541 0.3753<br />

1.0000 -1.3143 0.7149<br />

The desired filter is once again a 6th-order filter and has 6 zeros. Since the<br />

6th-order zero of H a(s) ats = −∞ is mapped to z = −1, these zeros should be<br />

at z = −1. Due to the finite precision of MATLAB these zeros are not exactly<br />

at z = −1. Hence the system function should be<br />

0.00057969 ( 1+z −1) 6<br />

H(z) =<br />

(1 − 0.9459z −1 +0.2342z −2 )(1− 1.0541z −1 +0.3753z −2 )(1− 1.3143z −1 +0.7149z −2 )<br />

The frequency response plots are given in Figure 8.26. Comparing these plots<br />

with those in Figure 8.21, we observe that these two designs are very similar.<br />

□<br />

□ EXAMPLE 8.18 Design the digital Chebyshev-I filter of Example 8.12. The specifications are<br />

ω p =0.2π, R p =1dB<br />

ω s =0.3π, A s =15dB<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

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

Saved successfully!

Ooh no, something went wrong!