Understanding Fixed-Point Programming in DSP: Learning PI Controller Implementation

Understanding Fixed-Point Programming in DSP: Learning PI Controller Implementation

Introduction: Fixed-point is a great thing, but the coding can be a bit challenging. However, after finding some methods for fixed-point programming, we can still understand, master, and apply it. After all, floating-point microcontrollers are expensive, while fixed-point microcontrollers are quite affordable. The author’s first microcontroller supported floating-point, and the coding mindset has always been … Read more

Implementing Fixed-Point Programming for DSP PR Controllers

Implementing Fixed-Point Programming for DSP PR Controllers

Today, we continue our work on fixed-point programming, which is quite significant for using PR control, especially since floating-point microcontrollers are expensive. Previously, in floating-point development, we discussed the discretization and code implementation of the Proportional Resonant Controller (QPR). For fixed-point implementation: Considering quantization errors, we directly run the IIR2 function of the PR controller … Read more