M451 Series:DSP PID Controller
Proportional--integral--derivative (PID) controllers have been the backbone of motion and
process control for decades. The document shows the performance difference between CPU
calling software PID function and DSP PID library.
The main system configuration of the M451 MCU is as follows:
System clock frequency is 72 MHz
Clock source is from PLL, and PLL source is from HXT
Using Timer0’s counter to compare the difference of performance
A Proportional Integral Derivative (PID) controller is a generic feedback control loop
mechanism widely used in industrial control systems. A PID controller is the most commonly
used type of feedback controller.
Algorithm:
y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
A0 = Kp + Ki + Kd
A1 = (-Kp ) - (2 * Kd )
A2 = Kd
where Kp is proportional constant, Ki is Integral constant and Kd is Derivative constant
|