02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

282 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

%xlabel(’Digital Frequency in \pi units’,’fontsize’,10);<br />

ylabel(’Magnitude Response’,’fontsize’,10);<br />

title(TITLE,’fontsize’,10,’fontweight’,’bold’);<br />

subplot(2,2,3); plot(w/pi,magHhat1,’r’,’linewidth’,2); axis([0,1,0,0.7]);<br />

xlabel(’Digital Frequency in \pi units’,’fontsize’,10);<br />

ylabel(’Magnitude Response’,’fontsize’,10);<br />

title(TITLE1,’fontsize’,10,’fontweight’,’bold’);<br />

subplot(2,2,4); plot(w/pi,magHhat2,’r’,’linewidth’,2); axis([0,1,0,0.7]);<br />

xlabel(’Digital Frequency in \pi units’,’fontsize’,10);<br />

ylabel(’Magnitude Response’,’fontsize’,10);<br />

title(TITLE2,’fontsize’,10,’fontweight’,’bold’);<br />

The plots are shown in Figure 6.33. The top row shows plots for the direct<br />

form, and the bottom row shows those for the cascade form. As expected, the<br />

magnitude plot of the direct form is severely distorted for 16-bit representation,<br />

while those for the cascade form are preserved even for 11-bit word length. □<br />

□ EXAMPLE 6.28 An 8th-order bandpass filter was obtained using the elliptic filter design approach.<br />

This and other design methods will be discussed in Chapter 8. The<br />

MATLAB functions needed for this design are shown in the following script.<br />

This design produces direct-form filter coefficients b k and a k , using 64-bit<br />

floating-point arithmetic, which gives the precision of 15 decimals and hence<br />

can be considered as unquantized coefficients. Table 6.1 shows these filter<br />

coefficients.<br />

Represent the unquantized filter coefficients using 16-bit and 8-bit word<br />

lengths. Plot the filter log-magnitude responses and pole-zero locations for both<br />

the infinite and finite word-length coefficients.<br />

TABLE 6.1 Unquantized IIR filter coefficients used in Example 6.28<br />

k b k a k<br />

0 0.021985541264351 1.000000000000000<br />

1 0.000000000000000 −0.000000000000004<br />

2 −0.032498273955222 2.344233276056572<br />

3 0.000000000000000 −0.000000000000003<br />

4 0.046424673058794 2.689868616770005<br />

5 0.000000000000000 0.000000000000001<br />

6 −0.032498273955221 1.584557559015230<br />

7 0.000000000000000 0.000000000000001<br />

8 0.021985541264351 0.413275250482975<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!