WUSTL CSE 465M - Digital Signal Processing Introduction – Digital Filters

Unformatted text preview:

Digital Signal Processing Introduction – Digital Filters- A Digital Filter is used to modify a digital signal by passing certain frequencies and attenuating others.- This Digital Signal might come from an Analog to Digital converter. It might also be generated by a computer.- The range of frequencies that pass through the filter without attenuation is called the passband.- A filter that attenuates high frequencies is called low pass. What does a high pass filter do? Bandpass?- Band Pass Filter Demo:- CD quality audio is low pass filtered to 20 KHz. Why?- Telephone signals are low pass filtered to 3.3 KHz. Why?- Your stereo’s bass and treble knobs control the volume of the built-in low pass and high pass filter outputs before they are added back together.Page 1 of 4Stop Bands=1-500 Hz, 1.5KHz to 5.5KHzPassband = 750 – 1250 HzTransition BandsStop Band Attenuation= 40 dBDigital Filters- There are many types of Digital Filters. In this class, we will use FIR (Finite Impulse Response) Linear Phase (constant delay) filters.- One way to implement a Digital Filter is to multiply the Filter Frequency Response (FrequencyDomain graph, green trace) and the Fourier Transform of theinput (FrequencyDomain graph, white trace). Then take the inverse Fourier Transform of the result.- The Inverse Fourier Transform of the Filter Frequency Response is called the Impulse Response of the filter. - A more common way to implement a Digital Filter is to convolve the input (TimeDomain graph, white trace) with the Impulse Response of the Filter. (Multiplication in the FrequencyDomain is equivalent to Convolution in the Time Domain for a Linear Time Invariant system,)- Use a tool like LPFDesign or BPFDesign (installed on the Urbauer 115 computers) to generate the Impulse Response for your filter constraints (shown in the text boxes above).- Question: What operation do Digital Signal Processors (DSPs) do better than traditional microprocessors?Page 2 of 4Convolution- So, if x[n] is the input to the filter, h[n] is the impulse response, and y[n] is the output of the filter,          kknhkxnhnxny *For h(white), x(red) and y(green) shown below:     4k and 0kfor 0 h[k] since 4nnkknhkxnySo, for example  6.3]6[]0[*]7[]1[*]6[]2[*]5[]3[*]4[]4[*]3[78.3]6[]0[*]6[]1[*]5[]2[*]4[]3[*]3[]4[*]2[6yhxhxhxhxhxyyhxhxhxhxhxyIn other words,- Reverse h in time around 0.- y[n] is the dot product of x and the reversed h with h[0] at point n.Page 3 of 4- This low pass filter shown above is called a moving average or a sinc filter.- Note the delay of the filter (N-1)/2 = 2 samples where N is the length of the Impulse Response.- The elements of the Impulse Response are often called Taps or the Filter Coefficients. Fractional Arithmetic- Typically, the filter coefficients are expressed as numbers from -1 to 1.- To solve this problem, use 2’s complement, fixed point representation with the binary point between the MSB (sign bit) and the next most significant digit. In a 16 bit system, this is called 1.15 or Q-15. For example,0.110 0000 0000 0000 = 0+2-1+2-2 = 0.751.110 0000 0000 0000 = -20+2-1+2-2 = -0.250.111 0000 0000 0000 = 0+2-1+2-2+2-3 = 0.8751.111 0000 0000 0000 = -20+2-1 +2-2+2-3 = -1+0.875= -0.125- The product of two 1.15 numbers will be 2.30. For example:0.75 * 0.875 = 0.65625In 1.15, 0.110 0000 0000 0000 x 0.111 0000 0000 0000_________________________________________________________ 0110 0000 0000 0 000 0000 0000 0000+ 0 1100 0000 0000 0 000 0000 0000 0000+ 01 1000 0000 0000 0 000 0000 0000 0000_________________________________________________________ 00.10 1010 0000 0000 0 000 0000 0000 0000= 2-1 + 2-3 + 2-5 = 0.5+0.125+0.03125=0.65625- To convert a floating point number to fractional (1.15), multiply the floating pointnumber by 32768. For example,-0.125*32768 = -4096(16.0) = 0xf000 = 1.111 0000 0000 0000(1.15) 0.875*32768 = 28672(16.0) = 0x7000 = 0.111 0000 0000 0000(1.15)Page 4 of


View Full Document

WUSTL CSE 465M - Digital Signal Processing Introduction – Digital Filters

Download Digital Signal Processing Introduction – Digital Filters
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Digital Signal Processing Introduction – Digital Filters and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Digital Signal Processing Introduction – Digital Filters 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?