Re: IIR filter problem



Hi Diego,

DX napisał(a):
Hi


Thanks for your answers.

This is the problem...

I'm building a IIR filter using fixed point, (well the limits are -1 to
1), I've calculated the coeffs for the filter but there are values that
are out of range of -1 to 1, for instance 4.5, or 2.8 etc... and other
values that are in range  for the same filter, for example 0.5, 0.126,
etc ....

Well I can't represent this 2 kind of numbers in the same filter
because the range is -1.0 to 1.0...

What I can do to solve this...? Other suggestions...

Thank you again
Diego

the simple solution is to rescale coefficients by power of 2 before and after calculations.
In your example you divide (shift right 3 bits) all coeff. by 8 and then multiply the result by 8 (shift left 3 bits).


Better solution is to use filter design tool, like fdatool in Matlab, which gives structure and numbers normalised to -1.0 ... 1.0 range.

Regards

Roman Rumian
.



Relevant Pages

  • Re: Has Microsoft Totally Failed on Time Calculations
    ... area of a pivot table and filter for a particular month (my time ... Now put your time calculations attribute on the ... I know adding extra level will affect performance, but this way Microsoft ... work for the time hierarchy you've associated them with. ...
    (microsoft.public.sqlserver.olap)
  • Re: One value from previous record
    ... the same calculations and other fields that have similar calculations. ... Filter One Influent Gallons, Filter One Influent MGD, ... >> (Filter One Influent MGD) with that calculation. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Returning a Value from a Table, dependant on the word Typed
    ... Use the SUBTOTAL function to do calculations on filtered data. ... Microsoft Excel MVP ... Example I may change the Date to Filter on, but I would then want to see ... I'm trying return the weight of an item into an adjacent cell, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: FIR filter in 8051 micro
    ... and ran a FIR filter on the data. ... the LPF coefficients were the same as the HPF coefficients just swapping ... didn't have a multiply) and only involves integer calculations. ... This algorithm works very well for 8-bit processors. ...
    (comp.dsp)
  • Re: Using AutoFilter In Excel, I cant get Excel to recalculate only .
    ... You can perform basic sum and count calculations on ... >the spreadsheet I have an area for calculations. ... This is not happening as Excel is making ... Is it possible to have Excel filter for a ...
    (microsoft.public.excel.misc)