Download MOTOROLA

Transcript
Filter Design
1
Filter Design
The 10-band stereo equalizer is constructed using 10 digital IIR bandpass filters in parallel for each stereo
audio channel. The on-board codec samples the incoming audio stream at 48,000 Hz. The center
frequencies for these filters lie between 0 Hz to fs/2 (where fs is the sample frequency of 48,000 Hz).
Figure 1 shows the passive RCL circuit forming a bandpass filter. The digital IIR Filter discussed later in
this application note is based on this circuit. The s-domain analysis of the second-order bandpass analog
filter is also shown.
Vi
Vo
L
C
R
Vo
R
------- = --------------------------------------------------------Vi
1
R + j ( 2πf )L + -------------------j ( 2πf )C
Figure 1. Analog Bandpass Filter and Voltage Divider Analysis
Equation 1 shows the s-domain transfer function of the circuit. H(s) is derived from the voltage divider
analysis of the RCL network to be:
Vo
Rs
H ( s ) = ------ = -------------------------------Vi
1
Rs + Ls 2 + ---C
Eqn. 1
where s = j ( 2πf ) .
Equation 2 shows the bilinear transformation between the s-plane and the z-plane:
2 1 – z –1-
s = ---  --------------T 1 + z – 1
Eqn. 2
where z = e jθ , θ = ωT = ( 2πf ) ( 1 ⁄ f s ) , and T is the sample period ( 1 ⁄ f s ) .
Using Equation 2, the z-plane transfer function is found from Equation 1:
α ( 1 – z –2 )
H ( z ) = -----------------------------------1--– γz –1 + βz –2
2
2
Implementing a 10-Band Stereo Equalizer
Eqn. 3