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.

TMS320F28374S: 中断中等式的左边和右边相差小于0.001后,等式左边不更新

Part Number: TMS320F28374S


如图所示,公式为方框1(浮点型) 等于 方框2(强制转换为浮点型运算),当方框2中的计算的数值与方框1中的数值相差小于0.001之后,方框1中的数值就不会再更新了,这是因为DSP省略了小数点后的数字吗,但是浮点型应该可以保留小数点后7位