Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPI controller in VHDL
I'm trying to implement a PI controller in VHDL. where i tried a lot but i failed Please, can any one help me to achieve this task where i'm new in this field.
Altera_Forum
Honored Contributor
14 years agoi would like to tell you the equation of PI controller that i used:
u(k)=u(k-1) + err(k)*(kp +(ki*ts/2)) + err(k-1) * ( (ki*ts/2) - kp) where: u : is the output of controller. err: error signal that injected to the controller. kp: proportional constant. ki : integral constant. ts : sampling time.