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.

TMS320F28388S: 请问在CPU中如何实现64位浮点数计算?目前32位计算PR控制器计算不准确。

Part Number: TMS320F28388S


CurrConReg.Alpha_RCon_Out[1][0] =
(Current_ConPR.Kr[1] * (CurrConReg.I_alpha_Error-CurrConReg.I_alpha_Error_Pre_Pre)+7.99987663*CurrConReg.Alpha_RCon_Out[1][1]-3.999961685*CurrConReg.Alpha_RCon_Out[1][2]) * 0.2499898951;
// 4*Kr* Ts

控制器迭代计算后,与matlab计算结果有出入,感觉是32位计算精度问题。