This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PWM inverter PI control

This is with respect to the Application Note: spra589a. We are trying to implement PI control for DC-AC inverter. There are two constants Kmv and Kmi appearing only in the code section. Both get initialized to 2000h and 3000h respectively. They are commented to be in Q22 format. What are these constants and how are they arrived. Why are the voltage and current feedback signals after being converted to ac signals get multiplied by these constants?

;Description:

;Initializes inverter stage variables and coefficients

ldp #K0_vinv ; set DP for inverter section

SPLK #02000H,Kmv ;Q22

SPLK #03000H,Kmi ;q22

SPLK #00000H,Uqs ;Q15

What is the significance of Kmv and Kmi.

There is no explanation for this in the application note.

Would appreciate if Mr.Shamim Choudhury can explain.

Thanks

Sayee