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.

SVPWMV扇区切换时间问题

请问下。在TI的PMSM控制程序中有

// Convert the unsigned (ranged (0,1)) -> signed format (ranged (-1,1))
pT->value[0] = ((pT->value[0] - 0.5f) * 2.0f);
pT->value[1] = ((pT->value[1] - 0.5f) * 2.0f);
pT->value[2] = ((pT->value[2] - 0.5f) * 2.0f);

pT->value是Va、Vb、Vc 的切换时间

为什么要将切换时间转换到-1----1之间呢,这样不是有负数的情况出现了吗

  • 不是很清楚,上面那个只是注释部分,根据下面的来理解。那个数值等于-1有什么实际的意义?查看了好多例程都是直接用的,没有具体说怎么回事,这个应该要仔细分析相关的寄存器操作才能确定。