Q格式和Q0格式,是不是一样的东西?
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.
我问这个是因为《InstaSPIN Projects and Labs User’s Guide》中Page 21中有这么一句话,没看懂:
Converts the Q pwm values in gPwmData to Q0 and writes these values to the EPWM compare registers.
上面说从Q格式转换成Q0格式
我觉得好像没有Q格式,只有Q0~Q31格式(我之前看过IQ数的一些资料)。
上面的Q是什么意思?
QPWM可能是Q1到Q31的某个被标幺的浮点数,而EPWM寄存器只能写定点数,所以这句话的意思就是把原来gpwm变量里的Q浮点数通过乘以一个系数,转回Q0,也就是整型数后,赋给EPWM。
<<InstaSPIN Projects & Labs User's Guide>>能把这个发我一份吗 ?我安装完motorware之后找不到这个文件···,谢谢了
文件如附件,就在motorware中有,C:\ti\motorware\motorware_1_01_00_13\docs\labs