在理论推导的时候,SVPWM管子的导通时间分别是
X=sqrt(3)Ubeta*TS/Ud;
Y=(sqrt(3)Ubeta*TS/Ud+3Ualpha*Ts/Ud)/2;
Z=(sqrt(3)Ubeta*TS/Ud-+3Ualpha*Ts/Ud)/2;
---------------------------------------------(1)
程序编写如下:
Frac16 m_1=16383;//0.5
Frac16 m_1_732=28376;//0.866
temp1 = mult(ualpha,m_1_732);
temp2 = mult(ubeta,m_1);
x_time = temp2+temp2;
y_time = temp2 + temp1;
z_time = temp2 - temp1;
switch(sector)
{
case 1:
temp3 = z_time;
t1 = (byte) mult(temp3,100);
temp4 = y_time;
t2 = (byte) mult(temp4,100);
这样程序编写与理论推导差sqrt(3)/Udc这怎么编的呀
此帖出自
小平头技术问答
一周热门 更多>