DSPRelated.com
Forums

FIR LPF Filter Designing by windowing

Started by ashwinss May 13, 2008
Hi,
I am using FIR digital filters,but since i am new to this concept,i have
stuck at one doubt.Please help me out. i am designing a LPF having 6Hz &
30Hz passband & stopband edge freq Also Fs(Sampling) is 512Hz with hamming
window. I have got the filters coefficient (which are a real one)by
implementing it in matlab but on the site from where i am taking guidance
of this topic they have got coeff. in integer forms like

//Lowpass FIR filter coefficients for 17 taps to filter > 30Hz
static const int coeffslp[9] = {
5225, 5175, 7255, 9453, 11595, 13507, 15016, 15983, 16315 };//

I am not getting that how can we get such a large integer no. as a
coeff.Is there any scaling process.or scaling by gain or something else
Please guide me about this



On 13 Mai, 19:49, "ashwinss" <ashwini...@gmail.com> wrote:
> Hi, > I am using FIR digital filters,but since i am new to this concept,i have > stuck at one doubt.Please help me out. i am designing a LPF having 6Hz & > 30Hz passband & stopband edge freq Also Fs(Sampling) is 512Hz with hamming > window. I have got the filters coefficient (which are a real one)by > implementing it in matlab but on the site from where i am taking guidance > of this topic they have got coeff. in integer forms like > > //Lowpass FIR filter coefficients for 17 taps to filter > 30Hz > static const int coeffslp[9] = { > 5225, 5175, 7255, 9453, 11595, 13507, 15016, 15983, 16315 };// > > I am not getting that how can we get such a large integer no. as a > coeff.Is there any scaling process.or scaling by gain or something else > Please guide me about this
The coefficients you cite are one half of the filter. They will be mirrored around the last sample to produce the total filter. As for scaling, that almost certainly has to do with fixed-point arithemetics. Rune