|
WM8983_06 Datasheet, PDF (42/123 Pages) Wolfson Microelectronics plc – Mobile Multimedia CODEC with 1W Speaker Driver | |||
|
◁ |
WM8983
NOTCH FILTER WORKED EXAMPLE
Production Data
The following example illustrates how to calculate the a0 and a1 coefficients for a desired centre
frequency and -3dB bandwidth.
fc = 1000 Hz
fb = 100 Hz
fs = 48000 Hz
w0 = 2Ïf c / f s = 2Ï x (1000 / 48000) = 0.1308996939 rads
wb = 2Ïf b / f s = 2Ï x (100 / 48000) = 0.01308996939 rads
a0
= 1 â tan(wb
1 + tan(wb
/ 2)
/ 2)
=
1 â tan(0.01308996939 / 2)
1 + tan(0.01308996939 / 2) = 0.9869949627
a1 = â(1 + a0 ) cos(w0 ) = â (1 + 0.9869949627) cos(0.1308996939) = -
1.969995945
NFA0 = -a0 x 213 = -8085 (rounded to nearest whole number)
NFA1 = -a1 x 212 = 8069 (rounded to nearest whole number)
These values are then converted to a 14-bit sign / magnitude notation:
NFA0[13] = 1; NFA0[12:0] = 13âh1F95; NFA0 = 14âh3F95 = 14âb11111110010101
NFA1[13] = 0; NFA1[12:0] = 13âh1F85; NFA1 = 14âh1F85 = 14âb01111110000101
DIGITAL ADC VOLUME CONTROL
The output of the ADCs can be digitally attenuated over a range from â127dB to 0dB in 0.5dB steps.
The gain for a given eight-bit code X is given by:
0.5 à (G-255) dB for 1 ⤠G ⤠255;
MUTE for G = 0
w
PD Rev 4.0 November 2006
42
|
▷ |