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.

FIR Filter Designs for Sampling Rate Conversion 517<br />

x(n)<br />

FIGURE 9.28<br />

FIR Resampler<br />

FIR LPF<br />

↑I<br />

H(ω)<br />

↓D y(m)<br />

Rate: F x IF x IF x<br />

An FIR rational-factor resampler<br />

I<br />

F x = F y<br />

D<br />

Now for the interpolation part, the lowpass filter must pass frequencies<br />

up to ω x,p /I and attenuate frequencies starting at (2π/I − ω x,s1 /I). The<br />

decimation part of the filter must again pass frequencies up to ω x,p /I<br />

but attenuate frequencies above (2π/D − ω x,s2 /I). Therefore, the stopband<br />

must start at the lower of these two values. Defining filter cutoff<br />

frequencies as<br />

( ωx,p<br />

)<br />

[ 2π<br />

ω p =<br />

and ω s = min<br />

I<br />

I − ω x,s 1<br />

, 2π I D − ω ]<br />

x,s 2<br />

(9.60)<br />

I<br />

and the corresponding ripple parameters as δ 1 and δ 2 ,wehave the following<br />

filter specifications:<br />

1<br />

I H r(ω) ≤ 1 ± δ 1 for |ω| ∈[0,ω p ]<br />

1<br />

I H r(ω) ≤±δ 2<br />

for |ω| ∈[ω s ,π]<br />

(9.61)<br />

where H r (ω) isthe amplitude response. Note that if we set ω x,s1 = π and<br />

ω x,s2 = Iπ/D, which are their maximum values, then we get the ideal<br />

cutoff frequency max[π/I, π/D], as given before in (9.36).<br />

MATLAB Implementation Clearly, the upfirdn function implements<br />

all the necessary operations needed in the rational sampling rate conversion<br />

system shown in Figure 9.28. When invoked as y = upfirdn(x,h,<br />

I,D),itperforms a cascade of three operations: upsampling the input data<br />

array x by a factor of the integer I, FIR filtering the upsampled signal data<br />

with the impulse response sequence given in the array h, and finally downsampling<br />

the result by a factor of the integer D. Using a well designed filter,<br />

we have a complete control over the sampling rate conversion operation.<br />

□ EXAMPLE 9.15 Design a sampling rate converter that increases the sampling rate by a factor of<br />

2.5. Use the firpm algorithm to determine the coefficients of the FIR filter that<br />

has 0.1 dBripple in the passband and is down by at least 30 dB in the stopband.<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!