Specifications for bandpass and bandstop filters up and down passband cutoff frequency up and down stopband cutoff frequency Design steps: (1) decide specifications according to application 2) decide type according to specification: generally, if the phase is required, choose Fir (3) approach specifications using causal and stable discrete time system VIZ. design H(zO)or hn, nonuniform (4) choose a software or hardware realization structure. take effects of limited word length into consideration H()or hn
(1)decide specifications according to application (2)decide type according to specification:generally , if the phase is required , choose FIR. (3)approach specifications using causal and stable discretetime system: viz. design H(z0) or h[n],nonuniform (4)choose a software or hardware realization structure, take effects of limited word length into consideration H(z) or h[n] Design steps: Specifications for bandpass and bandstop filters: up and down passband cutoff frequency, up and down stopband cutoff frequency
7.1 design of discrete -time ir filters from continuous-time filters ala log y low pass>digital low pass frequency transform ala log y high pc A/D ass igital high pass attention: original analog filter and equivalent analog filter is different their frequency response is not al ways the same 7.1.0 introduction of analogy filter 7.1. filter design by impulse invariance 7.1.2 filter design by bilinear transform
7.1 design of discrete-time IIR filters from continuous-time filters ala y high pass digital high pass frequency transform ala y low pass digital low pass A D A D ⎯ ⎯→ ⎯ ⎯→ / / log log 7.1.0 introduction of analogy filter 7.1.1filter design by impulse invariance 7.1.2 filter design by bilinear transform attention:original analog filter and equivalent analog filter is different, their frequency response is not always the same
7.1.0 introduction of analog filter Ha〔 Ha〔2川 comparison 1. wave 2. the same order increase performance 3. increase design 0(a)巴特沃炳波器90 0(b椭圆型能波器9 comple Ha〔川 Ha〔)川 c)切比雪夫型滤波器 (d切比雪夫型滤波器 (A)(C) small aliasing in the impulse invariance design technique
7.1.0 introduction of analog filter (A)(C)small aliasing in the impulse invariance design technique comparison: 1.wave 2.the same order, increase performance 3.increase design complexity
BW design formula: specification>system function magnitude frequency function: H (Q2)I 1+(2/2)2sH(S)H2(-s)= take the specifications into system 10 function and get the results from N= los /9 equation group ORΩ 10 confirm the poles of system function k=0……N-1 (in the left half plane H(S)=I get system function
− − = 2 1 10 10 10 1 10 1 log s p p s N = − = + = N c c s j c c H j H (s)H ( s)| 1 ( / ) 1 | ( )| 2 2 N p c p 2 1 10 10 1 − = N s c s 2 1 10 10 1 − = , 0 1 2 1 2 2 1 = = − + + s e k N N k j k c − = − = − = − = 1 0 1 0 1 ( ) 1 ( ) N k k N c N k k c s s s s H s BW design formula: specification→system function magnitude frequency function: take the specifications into system function and get the results from equation group: OR confirm the poles of system function: (in the left half plane) get system function:
EXAMPLE design a low pass analogy filter Q.=2T.100Orad/s@=2T. 2000rad /s.a=ldB.a=15dB N,Wc]= buttord(2000p124000*pi,1,15,s) BS, As]=butter(N, WC,S) H,W-freqs(Bs, As plot(w/2/pi, 20*(log10(abs(dD)) axis(1000,2000,-160]) grid on OUTPUT Wc=8.1932e+003 BS=10e+015* 00004.5063 As=1.0e+015*0.00000.00000.00000.00144.5063 6+,stbs+bs+b, H( a +++ tas
[N,Wc]=buttord(2000*pi,4000*pi,1,15, ' s ') [Bs,As]=butter(N,Wc, ' s ') [H,W]=freqs(Bs,As); plot(W/2/pi,20*(log10(abs(H)))) axis([1000,2000,-16,0]) grid on design a low pass analogy filter: p = 2 1000rad /s,s = 2 2000rad /s, p =1dB,s =15dB EXAMPLE OUTPUT: N = 4 Wc = 8.1932e+003 Bs = 1.0e+015 * 0 0 0 0 4.5063 As = 1.0e+015 * 0.0000 0.0000 0.0000 0.0014 4.5063 4 4 3 3 2 0 1 2 4 4 3 3 2 0 1 2 ( ) a a s a s a s a s b b s b s b s b s H s c + + + + + + + + =