Generate IIR coefficients from analog filter prototypes

Nov. 16, 1998
The C source listing shown is a complete operating program that generates first and second-order IIR digital filter coefficients from analog filter prototypes. The program prompts users for all of the...

The C source listing shown is a complete operating program that generates first and second-order IIR digital filter coefficients from analog filter prototypes. The program prompts users for all of the required parameter inputs, then it outputs the frequency-scaled analog prototype filter and IIR filter coefficients.

As an option, users can execute a prototype frequency prewarp or do straight frequency scaling. Note that the target frequency (TargetFreq) is the desired IIR corner frequency for low-pass/ high-pass filters, or the center frequency for bandpass/notch filters. Also, the prototype frequency (ProtoFreq) is the corresponding unscaled frequency.

Check your program with this third-order low pass:

normalized (WC = 1)

where TargetFreq = 100 Hz; ProtoFreq = 0.15915 Hz; and Prewarp = Yes.

See the figure for signal flow diagram conventions.

See associated table

Sponsored Recommendations

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!