DSPRelated.com

FIR filter in 8051 micro

Started by rome...@gmail.com in comp.dsp15 years ago 16 replies

Hi all, I have a set of samples for which I want to apply FIR filtering (assuming that filtering will be good). I know that...

Hi all, I have a set of samples for which I want to apply FIR filtering (assuming that filtering will be good). I know that digital filtering will give near precise filtering but I have little knowledge in FIR/IIR and I do not know where to apply which filter(yes, I googled ) . I need a small code segment that will do FIR filtering for my samples . I am using an 8051 microcontroll...


FIR filter

Started by aprendiz in comp.dsp17 years ago 6 replies

Hello, good morning. I'm a 1=BA Physics student. I've a problem with a FIR and I don't know how to solve it. Please, help me. Thanks....

Hello, good morning. I'm a 1=BA Physics student. I've a problem with a FIR and I don't know how to solve it. Please, help me. Thanks. It's: Verify that the FIR: y(n) =3D 2y(n-1)*cos(w) - y(n-2) + X(n) generate a sinusoidal wave with w angular frecuency. Supose than at the moment t=3D0 y-2=3D0, y-1=3D0, x0=3D1 and in all next moments xn=3D0. all that I've written betwen ( ) are subi...


Differentiator with FIR filter

Started by Dinne in comp.dsp14 years ago 7 replies

Dear all, I need to calculate an acceleration signal from a signal containing speed samples. I have been looking into using FIR...

Dear all, I need to calculate an acceleration signal from a signal containing speed samples. I have been looking into using FIR differentiators. Especially the article http://www.dsprelated.com/showarticle/35.php seems interesting. When comparing FIR differentiators, it is probably not enough to look at just the frequency magnitude and phase delay response. For example one can use a sim...


what makes a negative output result from a FIR bandpass filter?

Started by Simon in comp.dsp18 years ago 8 replies

I am try to implement a FIR bandpass filter in C2000 DSP. I got the coefficients from FDATOOL order=10; % FIR filter order fs:=500 HZ, %...

I am try to implement a FIR bandpass filter in C2000 DSP. I got the coefficients from FDATOOL order=10; % FIR filter order fs:=500 HZ, % sampling frequency fp1=60HZ, % fp2=100HZ, % fstop1=20HZ, fstop2=140HZ, ... Then I got the coefficients, And I muliply 32767 to make them Q15 format due to the need of the FIR.asm provide by TI 24x filter library. It's: #define FIR_BPF10 {\...


suggestions for FIR hardware implementation?

Started by dtsao in comp.dsp17 years ago 2 replies

Hi, does anyone have suggestions on efficient ways to implement an FIR filter in verilog? My filter will need to be 256 taps, and run at 27...

Hi, does anyone have suggestions on efficient ways to implement an FIR filter in verilog? My filter will need to be 256 taps, and run at 27 Mhz (so I guess not that fast). I have already implemented an FIR using Distributed Arithmetic, but would like to know any other methods you think might be good. Thanks. _____________________________________ Do you know a company who employs DSP engin...


Inverse FIR filter (mixed-phase system)

Started by sungdong_Jo in comp.dsp13 years ago 2 replies

Hello all, I am trying to compute the inverse of an FIR filter: I tried to implement it with following steps: - take the FFT of the FIR...

Hello all, I am trying to compute the inverse of an FIR filter: I tried to implement it with following steps: - take the FFT of the FIR (h[n] -> H[Z] ) - compute complex 1/H[Z] (in the frequency domain) - invert back into the time domain. (IFFT) I was able to get the inverse FIR filter with above steps when the FIR filter is minimum-phase system. However, when I tried to implement w


Using correlation to find the right group delay compensation for a FIR

Started by arturi in comp.dsp16 years ago 5 replies

Hello, I am filtering a test signal (Tsig) with a FIR and then calculating the RMS error against a reference signal (Ref). The FIR adds a...

Hello, I am filtering a test signal (Tsig) with a FIR and then calculating the RMS error against a reference signal (Ref). The FIR adds a group delay to my test signal which needs to be compensated before I can calculate the error. For an FIR, I believe that delay compensation should be N/2, where N is the number of taps, or filter order. After looking carefully at the waveforms I se...


FIR facts: True or False.

Started by Shafik in comp.dsp20 years ago 12 replies

Hey guys, I was wondering if anyone could validate my current understanding of FIR dsp filters. Consider an input sequence "x" of size M...

Hey guys, I was wondering if anyone could validate my current understanding of FIR dsp filters. Consider an input sequence "x" of size M and a FIR filter sequence "f" of size "N", then: 1. The filtered output "y" is: y[k] = SUM:n-N (x[k-n] * f[n]) 2. The size of the "y" is the same as "x" 3. M must be greater than N 4. The runtime of filtering is O(M*N) Thanks, --Shafik ...


FIR filtering in the Fourier domain

Started by Philip de Groot in comp.dsp19 years ago 57 replies

Hello, I am aware that many questions regarding FIR-filtering are posted here and many links to websites to help people out are also...

Hello, I am aware that many questions regarding FIR-filtering are posted here and many links to websites to help people out are also included. But these links are becoming complicated and I want to know something simple. Therefore, I am asking. I have a Fourier transform and want to remove frequencies below 600 Hz and above 6500 Hz and apply a IDFT. I can use a FIR filter (in the fre...


doubts in the design of FIR filter

Started by faz in comp.dsp16 years ago 2 replies

Dear all, I have some doubts in the design of FIR filter...pls clarify 1.Can i set the clock frequency of the FIR filter at any frequency...

Dear all, I have some doubts in the design of FIR filter...pls clarify 1.Can i set the clock frequency of the FIR filter at any frequency i want but pretty much higher than the sample rate? for example :Fc=3.5khz Fs=8khz can i clock as any value > 8khz say 1Mhz(considering the max clock for target device) 2.For 256 taps ..Which is the best FIR filter de


Bandpass FIR Filter

Started by Nitesh Gupta in comp.dsp21 years ago 19 replies

I have a basic doubt regarding FIR Filter implementation. The input to my FIR filter is the data(16-bit out from ADC sampled at 20 KHz). i.e...

I have a basic doubt regarding FIR Filter implementation. The input to my FIR filter is the data(16-bit out from ADC sampled at 20 KHz). i.e this data represents the amplitude of the sampled input signal. My doubt is "whether the output of the FIR filter denotes the amplitude or frequency of the filtered data? Please clarify Regards, Nitesh


How to express FIR filter output in terms of signal power

Started by abhijitk in comp.dsp14 years ago 2 replies

Hello everyone... I am using a Narrow Digital FIR Bandpass filter to filter a signal at the output of an 8 bit ADC...I calculate the envelope...

Hello everyone... I am using a Narrow Digital FIR Bandpass filter to filter a signal at the output of an 8 bit ADC...I calculate the envelope at FIR ouput(I^2 + Q^2) using the complex outputs of the FIR bandpass filter..I want to express the FIR output envelope signal in terms of the power of the input signal...how to do it? What factors do i have to consider? My ADC full scale swing is 870 mV....


21161 vs 21065 fir

Started by Steve Holle in comp.dsp21 years ago 1 reply

I was using the ADSP21161 which had the following signature for fir : float *fir ( const float dm input[], float dm output[], const...

I was using the ADSP21161 which had the following signature for fir : float *fir ( const float dm input[], float dm output[], const float pm coeffs[], float dm state[], int samples, int taps ); I was forced to switch to the ADSP21065L which has the following signature for fir : float fir ( float sample, const float pm coeffs[], float dm state[], int taps ); ...


How to compsensate for FIR filter delay?

Started by Crimson_M in comp.dsp19 years ago 5 replies

How can I go about compensating for FIR filter integer delay, for the case of M even (odd length filter)? How about for M odd? I'm trying...

How can I go about compensating for FIR filter integer delay, for the case of M even (odd length filter)? How about for M odd? I'm trying to implement a FIR differentiator in Matlab, first using a Kaiser window, and then other windows with varying lengths for comparison. Thanks, Brandon


Time Delay of a FIR filter

Started by adnanyusuf in comp.dsp9 years ago 22 replies

I came across this online : "2.1.4 What is the delay of a linear-phase FIR? The formula is simple: given a FIR filter which has N taps, the...

I came across this online : "2.1.4 What is the delay of a linear-phase FIR? The formula is simple: given a FIR filter which has N taps, the delay is: (N - 1) / (2 * Fs), where Fs is the sampling frequency. So, for example, a 21 tap linear-phase FIR filter operating at a 1 kHz rate has delay: (21 - 1) / (2 * 1 kHz)=10 milliseconds." I think the formula should be (N-1)/(Fs). For example assum...


FIR filter design methods

Started by faz in comp.dsp16 years ago 8 replies

Hai all, Which FIR filter design method is used to design a non-symmetric LP FIR filter as the following method will give linear...

Hai all, Which FIR filter design method is used to design a non-symmetric LP FIR filter as the following method will give linear phase i.e.,symmetric coefficients 1.window 2.frequency sampling 3.equiripple Which is the best method to design a non-symmetric LP FIR filter? regards, faz


Inverse of a simple non-linear-phase FIR filter

Started by Shafik in comp.dsp20 years ago 7 replies

Hello everyone, Can anyone tell me if there is a known way to find the inverse of a given FIR filter? The idea is that given some signal...

Hello everyone, Can anyone tell me if there is a known way to find the inverse of a given FIR filter? The idea is that given some signal y(x), and an FIR filter f(x), I want to find a way to compute g(x) which is the inverse of f(x) such that: y(x) * f(x) * g(x) = y(x). (* = convolution) Meaning if I have some signal, I can apply an FIR filter to shape it then apply ...


crackling sound after FIR filtration

Started by Decay in comp.dsp16 years ago 32 replies

Hi Gentlemen, Please advise if you have thoughts on my questions. I'm developing a program which will be used as audio cross-over,...

Hi Gentlemen, Please advise if you have thoughts on my questions. I'm developing a program which will be used as audio cross-over, meaning that I need to filter the audio signal (HP, LP). I'm using SPUC library and FIR class defined there. FIR coeffs are calculated using Remez algorithm (remez_fir class) and Blackman window applied to them as well. Everything seems to be good - impulse respo...


cutoff frequency and FIR filter design

Started by faz in comp.dsp16 years ago 1 reply

Hai, suppose i am designing a LP or HP FIR filter using FDA tool for 128 taps wat is the cutoff frequency value(range of values) given for...

Hai, suppose i am designing a LP or HP FIR filter using FDA tool for 128 taps wat is the cutoff frequency value(range of values) given for communication and multimedia applications??and which is the optimal FIR filter method suited for that? regards, faz


FIR filters

Started by Anonymous in comp.dsp18 years ago 1 reply

Hi all Im currently trying to design a FIR filter in Matlab (fdatool) v7.04 and im experiencing a few problems. A list of these have been...

Hi all Im currently trying to design a FIR filter in Matlab (fdatool) v7.04 and im experiencing a few problems. A list of these have been included below: 1) Im currently trying to design a filter with a flat passband and therefore i have choosen to use a butterworth - filter slope 12dB/ Oct. However when trying to select this option, Matlab blocks you. Is the reason for this FIR filt...