0% found this document useful (0 votes)
43 views

ECE311 Notes

this is an imp doc

Uploaded by

vishal rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
43 views

ECE311 Notes

this is an imp doc

Uploaded by

vishal rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 84
DESIGN AND ANALYSIS OF INFINITE IMPULSE RESPONSE wry orerra.rutens__\ 455 \ 2, Specifications Required Inany filter design, following specifications are (i) The maximum tolerable passhy Gi) The maximum tolerable stoph, (ii) Passband edge frequency («,) Gv) Stopband edge frequency () required: andl ripple (6) rand ripple (6) 7.6 IR FILTER DESIGN FROM CONTINUOUS.TIME FILTERS As a matter of fact, the commonly used tech ce ques for the design of HR filters are based on transformations of continuous-time IIR systems into diserote-time IIR systems, "This is partly because continuous-time filter design was a highly advanced art before diserote-time filters were of interest and partly because of the difficulty of implementing a non-iterative direct design method for IIR. filters. In contrast, FIR filters are almost entirely restricted to discrete-time implementations. Consequently, the design techniques for FIR filters are based on directly approximating the desired frequency response of the discrete-time system. Furth rmore, most techniques for approximating the magnitude response of an FIR system assume a linear phase constraint, thereby avoiding the problem of spectrum factorization that complicates the direct design of IIR filters. The simplest method of FIR filter design is called the window method. This method generally begins with an ideal desired frequency response. As discussed earlier, in order to design the digital IIR filter, first analog IIR filter is designed. Then analog filter is converted into the digital fi Iter because of following two reasons: (i) The procedure to design analog filter is readily available and it is highly advanced. (ii) When we design digital filter using analog filter then the implementation becomes simple. 7.7 IMPULSE INVARIANT TRANSFORMATION: IMPULSE INVARIANT METHOD ]———— Eee In this method, the design starts from the specifications of analog filter. Here, we have to replace analog filter by digital filter. This is achieved if impulse response of digital filter resembles the sampled version of impulse response of analog filter. If impulse response of both, analog and digital filter matches then, both filters perform in a similar manner. In this method, we shall use the following different notations: h,(t) = Impulse response in time domain H,(s) = Transfer function of analog filter, here ‘s’ is Laplace operator h,(nT) = Sampled version of h,(t), obtained by replacing t by nT H(2) = z-transform of h(n). This is response of digital filter. = Analog frequency = Digital frequency 7.7.1 Transformation of Analog System Function H,(s) to Digital System Function H(z) Now, let the system transfer function of analog filter be H,(s). We can express H,(s) in terms of Partial fraction expansion. This means that: Therefore, wd 712) Here, A;= Aj, Ag... Ayy are the coefficients of partial fraction expansion.DIGITAL SIGNAL PROCESSING Phy Py «= Py are the poles. Here, ‘s’ is the Laplace operator. Hence, we can obtain impulse response of analo, e from H,(s)by taking inverse Laplace transform of H,(s). Therefore, using standard relate ier, hy Laplace transform, we obtain invey, N hw= YA e™ f a My} Now, unit impulse response for discrete structure is obtained by sampling hy(t). This mp. _ that h(n) can be obtained from h,(t) by replacing t by nT in equation (7.13). Mea | x, . nin? Thus. hin) = 2A oe ay Here, Tis the sampling time. The system transfer function of digital filter is denoted by H(z)". It is obtained by taking transform of hin). According to the definition of Z-transform for causal system, we have H@= Yhm)z* a0 Substituting equation (7.14) in equation (7.15), we get H()= x [3 on] azo Lisl AT No YA; Serat ze n=O This is the required transfer function of digital filter. ti Thus, comparing equations (7.12) and (7.17), we can say that the transfer function aie filter is obtained from the transfer function of analog filter by doing the following transform 18 7.7.2 Mapping of Poles | Equation (7.18) shows how the poles from analog domain are transferred into the digital do This transformation of poles is called as mapping of poles. BP eS ee —— ee F Basically, The art of continucus-Cimo IIR filter design is highly advanced and since useful resul Ire he achieved, its advantageous to-use the design procedures already developed foreontnue filters.DESIGN AND ANALYSIS OF INFINITE IMPULSE RESPONSE (IIR) DIGITAL FILTERS ‘We know that the poles of analog filters are located at s = p,, Ni ion (7.18), we can cay thatthe poles of digital filter, H(2) are located at, lad _- (7.19) ‘This equation eee that the poles of analog filter at s = p, are transformed into the poles of, digital filter’ atz= e?! T. Thus, the relationship between Laplace (s domain) and z-domain is given by, z= eT (7.20) Here, = p,and Tis the sampling time. Now, s is the Laplace operator and it is expressed as, s= 0 +jQ wAT21) Here, = attenuation factor and = analog frequency We know that z can be expressed in polar form as under: z= rele (7.22) Here, ris magnitude and ‘o’ is the digital frequency. Substituting equations (7.21) and (7.22) in equation (7.20), we obtain rel = @f0+i0/T — goT, git 2 AT.23) Separating real and imaginary parts of equation (7.23), we obtain reo wlT.24) and ei = oat ‘Thus, we have = OT (7.25) Now, we will find the relationship between s-plane and z-plane. Basically, plot in ‘s'-domain means that o is plotted on X-axis and j is plotted on Y-axis. Also, z-domain representation means that real z is plotted on X-axis and imaginary z is plotted on Y-axis. Let us consider equation (7.24), i.e., r=eT we shall discuss the following conditions: i) Ifo 0 then, r is equal to e raise to some constant. That means r > Li.e., o>0sr>1 Now, o > 0 indicates R.H.S. of s plane and r > 1 indicates exterior part of unit circle. Thus, RLS. of s-plane is mapped outside the unit circle.DIGITAL SIGNAL PROCESSING Combining all the above conditions, this mapping is shown in figure 7.10. I(2) jo Re(2) Fig. 7.10. Illustration of the mapping z = e°T. 7.7.4 Drawbacks of Impulse Invariance Method* x We know that @ is analog frequency and its range is from 7 to -7 While the digit rz frequency w varies from ~—r ton. This means that from 7 to ~ 7 ,@maps from —nton. Let i be any integer. Then, we can write the general range of @ as (i ~ bt to G+) £ However, for this range also, maps from ~ x to x. Hence, mapping from analog frequency Q to digital frequency w is termed as many-to-one. This mapping is not one-to-one. (Gi) Analog filters are not band limited so there will be aliasing due to the sampling process. Because of this aliasing, the frequency response of resulting digital filter will not be identical to the original frequency response of analog filter. (iii), The change in the value of sampling time (T) has no effect on the amount of aliasing. Standard Expressions Some standard formulae for transformation in impulse invariance method are as under: ~T eosbT] 2 = -aT, Tz) + e28t. 1-2e*" [eosbT]z"! +e Z 1-2e*" feosbT]z! +e 28", 7.7.6 Design Steps for Impulse Invariance Method not given, then, we obtain expression of H,(s) from the given specifications. (ii) If required, we expand H,(s) by using partial fraction expansion (PFE). ; (iii) Then, we obtain z-transform of each PFE term using impulse invariance transformatio? equation. : (iv) We obtain H(z), this is required digital IIR filter. Te The tradi to the design of discrete-time IIR filters involves: | } t | G) In numerical problems, analog frequency transfer function H,(s) is usually be given. Ifitis | f Te The nal appro’ ‘Valves the transformation of # continuous-time filter into a discrete-time filter meeting prescribed specifications. |DESIGN AND ANALYSIS OF INFINITE IMPULSE RESPONSE (IR) DIGITAL FILTERS. qal solved Examples Now, let us consider fow solved examples to illustrate the concept of impulse invariance method. £7.14 Determine H(z) using impul 1 tin Le pulse Invariance method at 5 Hz sampling frequency from tT? 2 (s+ 1)(542) Given analog transfer function is, Ti(s) = solution: ASS (ee tise 2) “id yet us expand H,(s) using partial fraction expansion, ic A As (set * HQ) Thus, we find that poles are at py =~ 1 and py H, Hts (i) Now, values of A, and A, can be calculated as under: 2 =P), S008 [canta | . a (540.2 9 Lis v0.a5) + a.a9" Now, we want the numerator of third term equal to be 1.39. It can be arranged as under, Hoe -os{ seas 28K095 [1.89 -| (s+0.25)" + 1.39)" 1.39 [(9+0.25)* +(1.39)" } 0. 840.25 Hys)= -05| > _. — : or LS) = 05 of eosseape | some eats 397 7 Let us recall the standard transformation formulae, ie, 1 1 @® —>>5r sp 1-eR Tet sta, -T oosbT] 2” (stay+b? 1-2 [cosbT]z* +e~ eT fsinbT]z 1-26" feosbT]z™ +e Using these formulae, equation of H(z) can be obtained from equation (viii) as follows: 0257 feo81.39T]2 1-2¢ 5 [e9s 1.39T]z 1 +e"* -05 +0.089 eT eos 1.39T)2t +e MT 2 kept Ans. This is the required transfer function. Note that the value of Tis not given in the problem, hence, Tis asitis, EXAMPLE 7.3, The system function of an analog filter is expressed as follows: +02 HO) = 640.2)" +9 , a / convert this analog filter into a digital filter by making use of the impulse invariant techniques, sume T= 1s, ; Solution: Here note that the given system response of the analog filter is ofthe standard form sta HA) = Gray+ 3, We can obtain system resp Where we are given a = 0.2 and b= jonse of the digital filter as under: na =0: = q-e*"cosb) 27 = =, at A HO) = TroeTeosbT) at +e 2DIGITAL SIGNAL PROCESSING Putting values of a and b, we shall get 1-°°2Tcos3T) tee AT con 7) 72 HG) = [age (eosaT)z +e" or Taking T= 1s. we have 1-(0,8187)(-0.99) z HO) = 79(9.8187)(-0.99) 2 ' + 0.67032" ‘Simplifying. we get 14 (0.8105) 2 a H@ = Tyze2102"+0.670827 or EXAMPLE 74. Given an analog transfer funetion as follows: 1 HAS) = GHE+D Obtain H() using impulse invariant design method. Take T= 1s: Solution: Using partial fractions, H,(s) ean be expressed as fi HAG) = GanE+D ~ AG +2)+Bis+)) (s+ D(S+2) or H,) Comparing, we have 1=A(+2)+ Bost) we obtain B we get A= 1. Letting s and letting s = ‘Therefore, equation (i) because H,) #1 ‘The system function of the digital filter can be obtained as under: H@) = Because T = Is, therefore 0.2326 27" Trososzzt +0008 “T H@) = EXAMPLE 7:! i i i invari: is 4 eich is gl aoa H(z) using the impulse invariant technique for an analog system function | H - : a(S) = G40.8)6? + 0.5542) . We have Bs+C ; (6 +0.58+2) 6) GHOSE 405842) +O. Therefore, we write A(s? + 0.58 + 2) + (Bs + ©) ( +0. Now, if we compare the co- 2, aan efficients of s2, s and the constants on either side of the above expressio™ we. A+BDESIGN AND ANALYSIS oF INFINITE IMPULSE RESPONSE (IR) DIGITAL FILTERS 0.5A + 0.5B+¢ 0 2A+0.50 = 1 Solving the above simultaneous o written ag: 0, 0.5 He) 540.5 840.6842 ~ sep ees -05| 8+0.25 5705] —— $5025 __| 6.089 805 Le roaR E+ aaniae |* 0.0898 Again, we have H@) 0 +0. wo EXAMPLE 7.6, The system function of the analog filter is given as s+01 HAS) = Gyoaye+9 (s+ 0.25)" + (1.3919) 1- 2c" (cos1 B919T\21 + eT? ye al mol ens 026 (8+0.25)? + (.3919)" (6+ 0.25)? + (3919 | | atations, we obtai Thus, the aystem response can be whither eit A = 85, B= = 0.5 and C= 0, | | T(sin1.3919T) (cos1.3919T)z"* +e” 0.76632" ] (= 0.277 2°" + 0.606 2°? Obtain the system function of the IIR digital filter by using impulse invariance method. Solution: The denominator of H,(s) has roots at py = -0.1+)3 py = 0.1 -j3 +01 ‘Therefore, H,(s) = G+01-j9) +0153) Let us expand H,(s) in partial fractions as under: _ AL Ap HA) = [y01-j9 st0.1+8 values of A, and A, may be obtained as under: A, = 6401-9)-HeO),--o16i9 s+0.1 0.14 j3+0.1 AL = 5401+ 78|,.-o1 +19 an A, = 640.14 9HLO),DIGITAL SIGNAL PROCESSING Hence, equation (i) becomes ve, v2 WO) = yor eros transformation is given by 1 ' ally Further, we know that impulse invariance 8-Mm Ie evatom fanction for digital filter From equation (i) ns under Using this relation, we can obtain the Ve V2 Wey = oT T ay IT TT or as follows: 1 ‘This system function ean be simplified furthi 1 (0? TeosstT yz We) = a OAT egsaTye | +0 onse of digital filter. When the digital Key Note: We are always required to find frequency respo response is related to that of analog filter is designed using impulse invariance its frequency filter by following relation: or T -nsosTn 1 He) = Hal EXAMPLE 7.7. If FH, (9)= [yyy ¢qag) ‘find the corresponding H(z) using impulse invariance method for sampling frequency of 5 samples / sec. Solution: Let us first expand H,(s) in partial fractions as under: a, H@) = 1, then o > 0. Hence, the left-half of the s-plane maps onto points inside the unit circle in the z-plane and the transformation results in a stable digital system. Let us consider equation (7.50), for unity magnitude (r = 1), 6 is zero. In this case, we have g=2/_sno_)_ 2sinw/2 cosw/2 Ti+ cos0 cos” /2+ sin” w/2 + cos” w/2- sin” 0/2 = tan” . Q= pany (7.51) or equivalently, we have 2 -19T @ = 2tan"!—— asd Important Note: Equation (7.51) provides the relationship between the frequencies in the cans aa this has been shown in figure 7.13. It can be noted that the entire range in 2 is mapped only once into the range —m $ @ Substituting for 2= 4 and @, | | | 1-2" AL get 2 te ‘Substituting for this value of s in H,(s), we get H(2) ie, HG) = "Uh (22) = [Ee On simplifying the above expression, we get 0.128 + 0.0062"! - 0.1222" 1282? + 0.0062 14-0.00062"" ine ‘The roots of de sae : _onttg sat denanieator of H(2) are poles of H(z). They are | Sareeaaiee r converting these poles to their polar valtee te 0.0008 +0.8874208 aa 2 = 0.9874208 e +i 16711001 , H@ Important Point: We know that z = rel®, hence, r = 0,9874208 and @ = + 15711001 . ind w= + 1, 2 Hence, the ty ji 1e two complex conjugate poles are located at a = += 3. Therefore, H(z) will be resonant ato= = 2°PLE 7.13 It is required ¢ “nalo® filter having the follow: a design a di nit system inetiene with a7 AR bandwidth of 0.26 from an His) = Pe 840, Using bilinear transformation, obtain ts) 2 Qo = Sinn Glam = Stat. t2hn = a ayant golution: We have The system response ofthe digital filter is given ax HO) = His 20-1 = O, oo 2-1) Ts) +a Tory % 0.828 He) = 5 O.826(2 +1) a 2a), 27-1) +0.828(2 +1) Ti+) Simplifying further, we get Lea 3aid- Lana? Ans: EXAMPLE 7.14, Make use of bilinear transformation to obtain H(2) it is given that Hs) = and T Os. (s+1) Solution: For the bilinear transformation, we have H@) = H,(6)), 2 Putting T= 0.1 s in last equation, we have 4 1 (es? (2) @u=19? “pF Gke-197 |e Day (41) Simplifying, we obtain = 0.047601 +2"); BO (0.9088 Ans, 1 Ee al EXAMPLE 7.15. An analog filter has the following transfer function H,(s) = -. Using bilinear transformation technique, determine the transfer function of digital filter H(z) and also write the difference equation of digital filter. Solution: The given transfer function is: a Ai) HY = Now, we shall find out the value of sampling time (T) using the following relation: 2 tan[2 ae ply 2 or 4 pian(? T 4 2 7 or Ts ren 7] cw or 05 see k Using bilinear transformation, H(z) can be obtained by putting s = roa ast +0. Hq) = —05lz+1 ales [(ft}ooaf as [a(*")sor Pane. 0.5) mil alae [ef eo] +16 [ato] +16 2 +0. 4e-44 0.10401, or 12401 * 7 to = at eer eee ood |.12 - 3. a atl i [eae gig 18.812? = 31.982 +15.21) 516 ot) +1?. G.l2-A.941) * W681? —a1.987 ¥15.21 +162! Bde 16 AAD? 44.172 ~3.92-9.9 V2 40.27 -2.9 82.817" 40.0224 81.21 ~ A281? s027 0-41 91 This is the required transfor finetion for digital IIR filter fe Hi) Ans. EXAMPLET.19. The analog transfer function oflow- is 1 radisee. Design the digital filter using BLT method whose cut-off frequency is 20 x and sampling time is 0.0167 see by considering the warping effect, solution: Given analog transfer fanetion is. pass filter (LPR) is, H,(a)= —!— and its bandwidth 442 1 Wo= 5 eli) For the prewarping procedure, we have 2, = o 2) = 69.31 (i) +138.62 0.0167| 2+1 fe Hi) @+)) 69.3MerD att 119.762-119 882+18.86 3.732 +0.27 This is the required transfer function for digital ter. Ans. 7.40 BASIC ANALOG FILTER APPROXIMATIONS Many useful continuous-time IIR design methods have relatively simple ck Therefore, discrete-time IIR filter design methods bas formulas are rather simple to carryout. ed-form design formulas. «lon such standard continuous-time design As discussed earlier that the digital IIR filters are designed from the analog filters. Many times, itis necessary to approximate the characteristics of analog filter. This approximation is required because the practical characteristic ofa filter is not identical to the ideal characteristics. There are ¢ different types of approximation techniques as under () Butterworth filter approximation, ii) Chebyshev filter approximation. (ili) Elliptic filter approximation.SIGNAL PROCESSING, RWORTH AND CHEBYSHEV _ orworth and Chebyshev filters, R: BUTTERWORTH FILTER DIGITAL LOG FILTERS: BUTTE! cuss the design of digital Butt 7.41 ALL POLE ANAI In this article, we shall dise DESIGN OF DIGITAL BUTTERWORTH FILTE! APPROXIMATION Atypical characteristic of a bul TAZ is as shown in figure 7.14. torworth low-pass: filler (LPF) mart Toloranco Region frequency © OM 2 7 Oy J+ Passband [+ Transition +}+— Stopband —+] band loristics of analog low-pass filler (LPF). its main characteristic is ripples) in the passband. Fig. 7.14, Typical charact ponse is called as Butterworth response beca maximally fat, This means that there are no variation: squared response of low-pass Butterworth filter is given by: This type of that the passband is Now, the magnitude 2 1 | HQ)? = ———air AT53) Q It ( Q, } ‘This equation may also be expressed as fl | (754 |H(@)} —_ ww ne] 2 Qy Magnitude of analog low-pass filter (LPF). Cut-off frequency (~ 3 dB frequency). Passband edge frequency. Passband edge value. Stopband edge valu Parameter related to Here, |H(Q) , pples in passband, = Parameter related to ripples in stopband, i N= Order of the filter. le know that, i Pass Fi i in case of Low Pass Filter (LPF), the frequencies will pass upto the value of" cul “The wh 7 own go up and those who wore up go down RN. Tago |off requency (2). This is called as pase After that the frequencies are attenuated TH ‘ is called as stop band. Ideal charmace hi shown by dotted line in figure 7.15. Ides ihovalucofeut-off frequency Qa thee should be stopped. However, 1 Practical this is not happening, Now the order of filter Roughly we can say order of number of stages used in the design of filter. As the order of filler N incre, response of filter is more close response as shown in figure 7,15, ly, at Neivg is denoted hy N filter means, the log ASes, the to the ideal Frequency, © Fig. 7.15. Effect of N on frequency response . characteristics 7.424 Salient Features of Low Pass Butterworth Filter agnitude response is near that the passband is may (ii) There ‘onstant (equal to 1) at low mally flat are no ripples in the passband and stopband (iii) The maximum gain occurs at Q = 0 ‘or frequencies, This means and itis |H(O)| = 1 Gv) ‘The magnitude response is monotonically decreasing. 7.12.2 Designing Expressions and Designing Steps Let A, = Attenuation in passband. A, = Attenuation in stopband, Q, = Passband edge frequency. Q, = Cut-off frequency Q, = Stopband edge frequency. In numerical problems, the specifications of required digit n and it is asked to design a particular discrete time Butterworth filter. ‘Then the following steps must be used : al filter is usually gi 1. From the given specifications of digital filter, we obtain equivalent analog filter as under: (a) For impulse invariance method, we have o . (b) For bilinear transformation method, we have Q= Qe Pp tan Here, Q = Frequency of analog filter Frequency of digital filter T 2. We evaluate pling, time he order N of filter using the following expression:DIGITAL SIGNAL PROCESSING Ne oye (Q, 2.) te “top a ay Hore, 5, = Attennation in stopband ivon in decibels (AB) then, we make use of the following expression wl 7 F weed | i i If the specifieations are re og| Oe PS gh | 2 Q, e log 2 i “ | | 3. After that we determine cut-off frequency (2). The cut-off frequency (Q,) of analog filter is calculated as under: invariance method, we have | T (b) For bilinear transformation method, we have 4. Next, we determine the poles using the following expression: pie £0, oN DN, 5 50,1,2,..N—1 | IF the plas nee coumeex oonttugtia than orga / ee pals ae complex conjugate then organize the poles (p,) as eomplox conjugate pats tht s, and s,", 8, and 53 ete. f 5. Next, we calculate the system transfer function of analog filter using following expressio” | | | I o Hy(s)= ——8e _ (8~p,)(6=p,).. fT cg Toss wa cil Shag Toe da St TaToANTTN — G.B, ShawIS Sy)(s ~ 8) 6. Lastly, we design the digital iter using impuge ' method. £7.20 A digital filter has following frequene passband frequency = 0, = 0.2 5 Stopband frequency = @, ® What are the corresponding specific domain if: i) Impulse invariance technique is used for designing. i) Bilinear transformation is used for designing, solution: Here, let us assume sampling time T @ For impulse invariance method, we have invariance method or bilinear transformation 'Y specifientio ‘ations for passhand and stopband frequencies in analog. see ®, 2, 0.2 x = 0.63 rad/see, @, _ 038 and O,= FP = PS =0.3n=0.94 radisec, (i) For bilinear transformation, we have tan o2e1e) and 21an( 95182) = 019 ads Ans. EXAMPLE 7.21. Design a second order discrete-time Butterworth filter with cut-off frequency of L Hii and sampling frequency of 10‘ samples/see by bilinear transformation. Solution: In this problem, the specifications of digital filter are not given directly. So, first we have to obtain Tequired design specifications for digital filter. Then, for Butterworth approximation, we have to convert the Spetifications into specifications of equivalent analog filter. Finally, using bilinear transformation we have to obtain H(z), Given that Order of filter, N = 2 Cutoff frequency of analog filter, F, = 1 kHz = 1000 Haz. Sampling frequency, F, = 10' samples/sec = 10,000 Hz. First, let us determine the required design specifications of digital filter We have the equation to convert continuous frequency (F) into diserete frequency (0. Leis oe K Thus, Fe _ 1000 _ 6.1 eycles/sample © FR, 7 10,000 Now, the angular frequency (frequency of digital filter) ©, = nf, = 2nx 0.1 = 0.20 radians/sampleDIGITAL SI Now, let ux determin ations of a For bilinear (ransformation, we have the ape Qe A tan 1 Thus, 02 He 1 P= sampling time = = eee F, * 10,000 0.2 2 ry to calculate it. Thus, the specifications of analog filter are ay The value under: (2) Cutoff frequer ii) Order of filter = N Let us calculate the poles usi po , iN 425 + tnt | = 6198.39 radians/see. of N is given so it is not nece nfsec, =O, = 6498.99 radi Here N = 2, Thus, i = 0 to N ~ 1 means i = 0 and i = (i) For i=0,wehave 6498.39 ei”! = + 6498.39 |eas( + isin( = us) 4] Pg = + £2, 08 + Has = £ 6498.39 |- 0.707 + j 0.707] or Py = 6498.39 [~ 0.707 ~ j 0.707] and ~ 6498.39 [- 0.707 + j 0.707] or Py = ~ 4595.05 + j 4595.05 and 4595.05 ~ j 459: Gi) For i we have Pye £2, cl 42+ bana ++ 6498.39 ei) Po = (-4595.05 + j4595.05) * i or py = #6498.39 oon isin{ + 6498.39 [- 0.707 ~ j 0.7071 4595.05 orp, = 6498.39 |- 0.707 ~ 0.707) and ~ 6498.39 [- 0,707 ~ j 0.7071 or py = ~ 4595.05 ~ 4595.05 and 4595.05 + j 4595.05 Now, let us plot these poles as shown in figure 7.16. x a Py = (-4595.05 — 4595.05) (4595.05 — 4595.05) Fig. 7.16. Plot of poles, p, 2a Important Point: We know that analog filter is stable if the poles lie on the LHS. of s:plane. So, for the filter to be stable, we have to select the poles which are on the L.HS. of s-plane. Observe figure 7.16, We shall denote these poles by s, and s;; because these poles &* complex conjugate of each other. ‘Thus, and (05 + j 4695.05, 4595.05, Now, the transfer function of analog filter is obtained by using the following expression: __ (6198.39) 4595.05) (s + 4595.05 + j Simplifying, we gotDESIGN AND ANALYs}: SOF 1 ENTE IPULSE Response (UR) DIGITAL FILTERS Hs) = ——__(6498.39)? 190.184 42.22x108 stl. let ws design digital filter using bilinear transformati ation, ce of bilinear transformation, H(z) is obtained ye 2fr-1] Inca ained by putting « = Hy ze} In equation of Hs) 1 Here. T= Too ‘Thus, we have to put, c= 2eioe [2 | in the equation of Hs) Therefore, z-1 : , . zai || *183-802%109/ a | aeazeao® This is the required transfer function for digital filter. Ans, EXAMPLE 7.22 Using bilinear transformation, design a Butterworth filter which satisfies the following conditions: 0.8 +(2"} +i 2) or Po = £0.75 |- 0.707 + j 0.707) or Po= t1-0.53 +j 0.53] Po= ~ 0.53 + j 0.53 and 0.53 ~ j 0.53 Fori=1, we have or Py = £0.75 oh +204 « 4 9.75 gion sno) 4 4 £0.75 (-0.707 ~}j 0.707) = ~ 0.53 ~}0.53 and 0.59 + oe) 1 53 +5 0.53 ‘ ‘The location of poles are as shown in figure 7.18, Fig. 7.18, Location of poles | +iDESIGN AND ANALYSIS OF INFINITE IMPULSE RESPONSE (IIR) DIGITAL FILTERS: eee Note: We kn 4 : : Tgagortant Re ne Se ats che stability the poles whieh are dt iw SL oF plane hoo aes complex conjugate stead chee Weett 4 DSS and - 080510 NEU ‘ : We wil ee oF 5,= ~053 +059 andst=-068-jonh nt A Jet us determine H,(s). (Now Fer function of analog filter isi oN ransfer funtion of analog eri given hy N Hf. —— (0.75 (s-s,)(s=s (840.53 -j0.63)(8 4 0.53 + 40.58) - Ys) oe +0.538 + 30.538 + 0.538 +0.28 + 0.28 — j0.538 — 0.28 + 0.28 (0.75) 0.56 Hs) = or S41.068+0.56 8° 41.06540.56 pax B: Determination of Transfer Function for Digital Filter We have to use bilinear transformation method. Then, H(z) is obtained by putting s = > pation of Hs) Tet us assume sampling time T = 1. Therefore, we have He) = ——,—*8 ___ 422) [email protected](21)+056 *@ x41 zl ay 0.56(2+1)* o H@)= — e+ + A(z — 22-41) + (2.122-2.12)(2+1) +0.56(2 +1)" Be) 0.56(+0" a @) = =—_—_$__—— — ooo a2 80444 2.122? + 2.122—2.122-2.12+ 0.562" +1.122+ 0.56 0.56(2+1)* o Hee) = fe) 6.682" - 6.882 +2.44 This is the required transfer function to design the digital filter. Ans. EXAMPLE 7.23 (a) Find the order and cut-off frequency of a digital filter with the following ‘specifications: 0.89 } _ S| vis (o.889)? +1 B= € ~ 0.882 Next, we shall calculate values ofr and R. Wehave Min fF eli =o, Bd or ani of ellipse = r=, . “3p (2.64) or r= 20. 22.6 2(2.64) ‘The major axis of an ellipse is expressed as: 2 2.64)? + BPH 99 2.68)" +1 Re 0, = Gee * 8049 Now, we shall calculate values of 6, as under: Gitte oto N—1 that means for i= 0. 2* oN x, O+I)n 8 ot oa o™ Using equation (i), we can write pole positions as under: 5) = ros Oy ~ JR sin 0, 8) = 22.6 cos x + j(30.19) sin x = Lastly, let us obtain the system function H,(s). ‘The system function is given by: or 22.6 H®)= (ogy 7 ov 226 Ai) i) (iii) div)DIGITAL SIGNAL PROCESSING Here, for N = 1, we have, i= by= 226 22.6 8+22.6 This is the required transfer function. Ans. Hence, we have H,(s) = EXAMPLE. 7.27. Design a digital low pass filter using Chebyshev filter seeing procedure ¢! t the following specifications: Passhand magnitude characteristics that is constant to within gre recurrences below w= 0.2 x and stopband attenuation of atleast 15 dB for frequencies bev @= 0.3 xand x. Use bilinear transformation. Ween Solution: In this problem, the specifications of digital filter are given. The given specifications are : Passband ripple = A,=16B Passband edge frequency = @, = 0.2 Stopband attenuation A,=15 dB Stopband edge frequency 0,=0.3 n First, we will calculate the values of edge frequencies for the analog filter. First, let us determine analog filter's edge frequencies. For the bilinear transformation, we have Important Point: Sampling time is not given. Therefore, we will assume sampling time T=1sec. Thus, 0.6498 and Again Hence, ‘ = 1.019 Next, we determine the parameter € 1 It is given by, Ae [ao va {io 10) ‘Now, let us determine the order (N) of a filter. Itis calculated using the equation, |HGQ)| in 4B = - 20 logyy € ~ 6(N ~ 1) - 20 N logy (2) Given attenuation is 15 dB. or = 15 dB = ~ 20 logy 0.5088 ~ 6(N — 1) ~ 20 N log,(1.019) or ~15 = 5.87-6N +6-0.1634 or 6.1634 N = 26.87 or N= 4.35 Thus, order of filter = N=5 ‘The pole position are given by: 5, = 1 c05 0, + jR sin 0; Now, we will calculate values of r, R and 6; li) Minor axis of ellipse =vivo ORR)? « 0.5088 | = 133 2 G oga98, 13-1 2xran * 0.186 “i And major axis ellipse = R= q, M41 ar R= 06499 039" +1 or E : 2xiag 7067 ain) Now, we shall calculate values of 8, z Qisne ve have, z,& Le 2 : 1=0,1,2,..N—1 thatmeans i= 0,1,2,8,4 z 6 Fori= 0: 3 S . x Qin 8x Fori=1: z ar 2* 40 10 zon For o'a ge Ey tL 1 3° 2" 10 ~ 10 ae ltn 2* 10 ~ 10 Now putting these values in equation (i), we get Fori=0, = 0.186 cos 0) +j0.67 sin 0 én or 5) = 0.186 cos al + 50.67 sin ry =~ 0.057 + j0.637 $1 = 0.186 cos 6, + 0.67 sin 0, Bn 8x , or 8 = 0.186 cos uo} +5067 sin 3] == 0.15 + j0.39 5) = 0.186 cos 8, + j0.67 sin 0, S_ = 0.186 cos m + j 0.67 sin x =~ 0.186 Fori=3, 5, = 0.186 cos 6, + j0.67 sin lan 12m) oo 1 49 e 85 = 0.186 cos (2) +5 0.67 | io | = 0.15 ~j0.39 Fori=4, 8, = 0.186 cos 0, + j0.67 sin 0, Man x . Le sy 0186 os (22) «oar sin [Ip] = 0087 sno Next, we determine the system transfer function of analog filter Itis given by, i H,(s) = Gens =H = BE 85)E-*) i HYe= GA TET WFO) + 0.186) +015 + 0.39) +0057 + 50.637) (6 +0.057 - j0.637)(7496 7 DIGITAL SIGNAL PROCI ‘SSING a or HY)= ae — —_— (g+0,816)(8° +0.38 + 0.1746)(s" +0.1148 4 0.409) Now, N=5 thus, j= by = Constant term in the denominator 186) (0.1746) (0.409) = 0.0135 or is by= 0.0132 | or HYs)= —— 379301746)" 40. o132______ | (6 +0.186)(62 + 0.88 + 0.1746)(s* + 0.1148 + 0.409) | Lastly, we determine the transfer function for digital filter. By using bilinear transformation, the transfer funetion for digital filter H(z) is obtained from Hs) 8) by | putting, 2fz-1 s= 2/2" Tlz+1 Here, T= Sampling time = 1 sec. (assumed) 0.0132 el eal al tal at8.8 DESIGN TECHNIQUES OF FIR FILTER ARIOUS KINDS OF WINDOWS =o —— nj eaeaeerrereeeerrrerj——=60 B= 19.5842 (A 21) 4 0.07886(A-21) for 2150 f= {0.5842 (A ~21)"! +0.07886(A-21) for 21— = 27. Similarly, from equation (i), @, = @, = 0.8 rad sample.DESIGN AND ANALYSIS OF FINITE IMPULSE RESPONSE (FIR) FILTER ‘substituting these values in above equa We obtain sin[0.3n(n - 27) m — a =27) [oss 0.46. o({ 3) for n #27 0.3} 0.54 - = 5 [oss oabon( | for n=27 for n=0to 54 Important Point: The values of unit samplo response may be obtained above equation to get desired linear hace FIR filter. EXAMPLE 8.12. Design a normalised linear east 40 dB attenuation in the stopband, Als ‘solution: First, et us obtain @, phase FIR filter having the phase delay of t= 4 and at 0, obtain the magnitude/frequency response of the filter. ‘The linear phase FIR filter is normalised. This means cut off frequency will be: ©, = 1 rad/ sample Now, let us obtain length M of the filter Phase delay, t= 4. We know that for a linear phase FIR filter, we have Now, t= 4 gives, 45 or M=9 ‘Therefore, the length of the filter is M= 9. ‘Now, let us choose the type of the window. At least, 40 dB attenuation is required in stopband. From Table 8.2, it is obvious that Hanning window provides minimum of 44 dB attenuation. Therefore, Window used: Hanning window Now, let us obtain desired unit sample response hy(n). In example 8.11, we have observed that hg (n) has been obtained for an ideal low-pass filter of cut-off frequency o,. Such h, (n) is given by equation (iv) in previous example as under : sin aa 2 MM for n# hyo) = fn . oe for n= ® M-1 In above expression, we have to substitute w, = 1 rad/sample and —— =+ = 4. This means that sin(0-49) ge ned x(n) Ltr ned ® ham) = sali) Now, let us obtain h(n) by windowing. In this example, we have selected Hanning window.DIGITAL SIGNAL PROCESSING From Table 8.3, Hanning window is given as unde a rae = time) Substituting for M, above expression will take the following form Vy aoe ™ an) © i! ova mt) Also, hin) may be obtained by windowing as under: hin) = han).wn) mn sin(n— 4) () cos } 1) for nea —_| or ha = ax(n-0) ep for n=4 forn=0to8 This is the unit sample response of the desired linear phase FIR filter. Now, let us obtain the magnitude (frequency) response. Here. order of the filter is, M = 9 ie., odd, For odd M, the magnitude/frequency response of FIR filters x given by: M-3 MS) s ayeose{n x *) n=O 1H)! Substituting for M = 9, above expression becomes, 3 |H(@)| = h(4)+2 D) h(n) cos a(n - 4) neo Values of h (n) can be substituted in above expression from equation (ii). Then | H (w)| may be obtained fr various values of EXAMPLE €.13 Design the bandpass linear phase FIR filter having cut-off frequencies of @,,=1 rad/ sample and ,,=2 rad/ sample. Obtain the unit sample response through following window: 1 for 0 3 aie and B = 3.395 Substituting the values in equation (8.47), the window will be defined as under: 1 1p}3. a Ca} P w(n) = 1b T)@.395) for 0 si Bis integer In other words, filter length is M+ ‘Therefore, ha(n) will be given 293 + 1= 224, ie., even. for0

You might also like