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.

TMS320F28377D: 数值计算相关问题

Part Number: TMS320F28377D


28377编写控制器程序时,需要用到整数的 分数次幂计算,有没有相应的调用程序

  • 你好,C2000芯片计算除法的速度非常慢,是加减乘的好几倍,所以,一般除法运算尽量转换为乘法,如X*1/4尽量改为X*0.25。而幂运算的话直接用^就可以了。

    比如2的1/2次幂直接用2^0.5.