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.

[参考译文] TMS320F28075:出现下溢的条件和计算结果

Guru**** 2782475 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1197690/tms320f28075-conditions-for-occurrence-of-underflow-and-calculation-results

器件型号:TMS320F28075

各位专家、您好!

请告诉我 CLA 中发生下溢中断的条件吗?
(例如、MSTF.LUF 设置为1时的值是多少?)

此外、当发生下溢时、该变量的值是否为零?

我尝试在 CLA 中运行以下代码、但只能确认 Overflow.MSTF.LVF 已设置。 (MSTF.LVF 设置为"e = a +a"和"f = b + b"。)
在下面的代码中、没有发生下溢、但是 g=0。

float a, b, c;
float d, e, f, g, h;

a = 3.402823e+38;
b = -3.402823e+38;
c = 1.175494e-38;

e = a + a;
f = b + b;
g = c * c;
h = c * 1;

抱歉、我错过了基本配置错误...

此致、
还不错

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    对迟交的答复表示歉意。 当在数学运算期间出现上溢或下溢时、这些标志被置位。 器件 TRM 中的 CLA 章节列出了所有 CLA 指令并指定了可修改这些标志的指令。

    此致、

    Veena