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.

[参考译文] PGA900:定点算术

Guru**** 2551110 points


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

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/705918/pga900-fixed-point-arithmetic

器件型号:PGA900

我在 PGA 900 (Arm cortex M0)中实现了一种算法、用于压力传感器的温度补偿。 由于处理器没有任何浮点单元、我将使用定点算术。 但该处理器最多只能支持 32位 变量。 因此、我在计算中失去了精度。 是否有任何方法可以解决此问题?

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

    Cortex M0没有您提到过的任何浮点硬件、但您仍然可以执行浮点算术。 您的编译器应该处理它。 唯一的缺点是、浮点数学的执行时间要比整数数学长得多、因为硬件对此未进行优化。

    此致、