Presentation is loading. Please wait.

Presentation is loading. Please wait.

UsΔ±ng the impulse sampling method Prepared by: Dr. Erhan A. INCE

Similar presentations


Presentation on theme: "UsΔ±ng the impulse sampling method Prepared by: Dr. Erhan A. INCE"β€” Presentation transcript:

1 UsΔ±ng the impulse sampling method Prepared by: Dr. Erhan A. INCE
DesΔ±gn of IIR FΔ±lters UsΔ±ng the impulse sampling method Prepared by: Dr. Erhan A. INCE

2 A digital filter, 𝐻 𝑒 𝑗𝑀 , with infinite impulse response (IIR) can be designed by first transforming it into a prototype analog filter 𝐻 π‘Ž 𝑗Ω and then design this analog filter using a standard procedure. Once the analog filter has been designed it is then mapped back to the discrete-time domain to obtain a digital Filter that meets the specifications. Commonly used analog filters are: 1. Buttorworth filters – no ripples in passband or stopband 2. Chebychev filters – ripples in the passband OR in the stopband 3. Elliptic filters – ripples in both the passband and stopbands A disadvantage of IIR filters is that they usually have non-linear phase. As a result some minor signal distortion is experienced. There are two mapping techniques : 1. The impulse sampling method 2. The bilinear transformation method.

3 Impulse Sampling Method:
The impulse response of the digital filter (β„Ž[𝑛]) is made(approximately) equal to the impulse response of an analog filter ( β„Ž π‘Ž 𝑑 ) by taking samples from filter β„Ž π‘Ž 𝑑 at 𝑑=𝑛 𝑇 𝑑 where 𝑇 𝑑 is an arbitrary sampling period. β„Ž 𝑛 = 𝑇 𝑑 βˆ™ β„Ž π‘Ž 𝑛 𝑇 𝑑 Aliasing would occur if 𝐻 π‘Ž 𝑗Ω is not bandlimited to πœ‹ 𝑇 𝑑 (rad/s) and 𝐻 𝑒 π‘—πœ” = π‘˜=βˆ’βˆž ∞ 𝐻 π‘Ž 𝑗 πœ” 𝑇 𝑑 +𝑗 2πœ‹π‘˜ 𝑇 𝑑 If 𝐻 π‘Ž 𝑗Ω is bandlimited to πœ‹ 𝑇 𝑑 then 𝐻 𝑒 π‘—πœ” = 𝐻 π‘Ž π‘—πœ”/ 𝑇 𝑑 In general all the commonly used prototype analog filters used in the impulse sampling method are indeed non-bandlimited. We can minimize the aliasing however by overdesigning the analog filter (especially in the stopband).

4

5 Given the digital filter specifications we map the digital frequency πœ” onto the analog frequency Ξ©= πœ” 𝑇 𝑑 Let Ha 𝑠 = π‘˜=1 𝑁 𝑅 π‘˜ π‘ βˆ’ 𝑠 π‘˜ After taking inverse laplace the corresponding impulse response is β„Ž π‘Ž 𝑑 = π‘˜=1 𝑁 𝑅 π‘˜ 𝑒 𝑠 π‘˜ 𝑑 , 𝑑β‰₯0 𝑑<0 Impulse response of the discrete time filter is obtained by sampling 𝑇 𝑑 β„Ž π‘Ž 𝑑 and is h[n] = 𝑇 𝑑 β„Ž 𝑐 𝑛 𝑇 𝑑 = π‘˜=1 𝑁 𝑇 𝑑 𝑅 π‘˜ 𝑒 𝑠 π‘˜ 𝑛 𝑇 𝑑 u[n] = 𝑛 𝑇 𝑑 = π‘˜=1 𝑁 𝑇 𝑑 𝑅 π‘˜ 𝑒 𝑠 π‘˜ 𝑇 𝑑 𝑛 u[n]

6 𝐻 𝑧 = 𝑛=βˆ’βˆž ∞ β„Ž[𝑛] 𝑧 βˆ’π‘› = 𝑛=0 ∞ π‘˜=1 𝑁 𝑇 𝑑 𝑅 π‘˜ 𝑒 𝑠 π‘˜ 𝑇 𝑑 𝑛 𝑧 βˆ’1 = π‘˜=1 𝑁 𝑇 𝑑 𝑅 π‘˜ 𝑛=0 ∞ 𝑧 βˆ’1 𝑒 𝑠 π‘˜ 𝑇 𝑑 𝑛 = π‘˜=1 𝑁 𝑇 𝑑 𝑅 π‘˜ 1βˆ’ 𝑧 βˆ’1 𝑒 𝑠 π‘˜ 𝑇 𝑑 The system function of the discrete-time filter is therefore H(z) = π‘˜=1 𝑁 𝑅 π‘˜ 𝑇 𝑑 1βˆ’ 𝑒 𝑠 π‘˜ 𝑇 𝑑 𝑧 βˆ’1 Note: a pole at s = pk transform into a pole z= 𝑒 𝑝 π‘˜ 𝑇 𝑑 in the z-plane.

7 If all the 𝑠 π‘˜ are on the left half of the s-plane, i
If all the 𝑠 π‘˜ are on the left half of the s-plane, i.e 𝜎 π‘˜ <0, then all 𝑝 π‘˜ s are within the unit-circle in the Z-plane. This means that a stable analog filter always yields a stable digital filter! with the impulse sampling method. In general 𝑧≠ 𝑒 𝑠 𝑇 𝑑

8 EXAMPLE Design a digital lowpass IIR filter with the following specifications: Passband: ≀ 𝐻 𝑒 π‘—πœ” ≀ ≀ πœ” ≀0.2πœ‹ Stopband: 𝐻 𝑒 π‘—πœ” ≀ πœ‹ ≀ πœ” β‰€πœ‹ Use the impulse sampling technique and an analog Butterworth filter. Assume Td = 1.

9 With 𝑇 𝑑 =1 this means Ξ©=πœ” and 𝐻 π‘Ž 𝑗Ω =𝐻 𝑒 𝑗Ω
Therefore the specifications for the analog filter are: Passband: ≀ 𝐻 π‘Ž 𝑗Ω ≀ ≀ Ξ© ≀0.2πœ‹ Stopband: 𝐻 π‘Ž 𝑗Ω ≀ πœ‹ ≀Ω Upper limit for the stopband frequency has not been specified. The magnitude square response of a Butterworth filter of order N is: 𝐻 π‘Ž 𝑗Ω 2 = Ξ© Ξ© 𝑐 2𝑁 Where Ξ© 𝑐 is the 3dB frequency of the filter. Larger the N value the closer is the Butterworth Filter’s frequency response to that of an ideal lowpass filter.

10 𝐻 π‘Ž 𝑗Ω Ξ© Ξ© 𝑐

11 The 3dB frequency and the filter order N are solutions of the two simultaneous equations below:
πœ‹ Ξ© 𝑐 2𝑁 = πœ‹ Ξ© 𝑐 2𝑁 = The values for N and Ξ© 𝑐 are: N = Ξ© 𝑐 = Since filter order has to be integer we round and take N = 6 and recompure Ξ© 𝑐 and it is These results guarantee that passband requirement is met exactly at w = 0.2 Note that 𝐻 π‘Ž 𝑗0.3πœ‹ = ≀

12 The next step is to find the poles of the Butterworth filter
The next step is to find the poles of the Butterworth filter. Recall that we have 2N poles whose locations in the S-plane are depicted in the diagram below:

13 Mathematically these poles are:
π‘Ÿ π‘˜ = 𝑒 𝑗 πœ‹ 12 + πœ‹ 2 +(π‘˜βˆ’1) 2πœ‹ k = 1,2,……, 2N Half of these poles are the poles of the Butterworth filter. Specifically we choose those π‘Ÿ π‘˜ on the left-half s-plane to be the poles of 𝐻 π‘Ž 𝑗Ω . Consequently the poles of 𝐻 π‘Ž 𝑗Ω are:

14 The poles of the corresponding digital filter are:

15 The transfer function of the Butterworth Filter is:

16 The transfer function of the digital filter H(z) is (recall Td=1)

17

18

19


Download ppt "UsΔ±ng the impulse sampling method Prepared by: Dr. Erhan A. INCE"

Similar presentations


Ads by Google