Vectorizing IIR Filters: What are you Recursing?

Posted on Wed 12 February 2025 in signal-processing • Tagged with dsp, signal-processing, iir, filters

Disclaimer: This article took quite a while to prepare. Although I’ve made every effort to fact-check and ensure the accuracy of the content, there may still be errors. If you notice any mistakes, please feel free to reach out and let me know!

I like writing programs that run …


Continue reading

Introduction to Fixed Point Signal Processing

Posted on Wed 09 December 2020 in signal-processing • Tagged with filters, signal processing, dsp, fir, iir, fixed-point

Fixed-point arithmetic is central to embedded signal processing where resources and power are often strictly limited. This article explains how Qm.n notation represents numbers with integer and fractional bits, highlighting range and resolution constraints. It discusses the trade-offs between floating-point’s easier development and fixed-point’s hardware cost savings. Examples illustrate clipping, saturation, and rounding techniques for converting between floating and fixed-point. A detailed walk-through of converting Celsius to Fahrenheit in Q10.6 format shows how to preserve precision under hardware constraints. Practical code snippets for FIR and IIR filter implementations in C and Python further demonstrate fixed-point’s capabilities across real-world DSP applications.


Continue reading