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

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

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