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.

[参考译文] AMC7812B:温度转换

Guru**** 2487425 points


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

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/1256761/amc7812b-temperature-conversion

器件型号:AMC7812B

您好!

我对  文档中的温度转换有疑问(第36页的表2)。

转换是否 按如下方式计算?

float calculateTemperature(uint16_t input)
{
    int16_t integral {(input >> 3)};
    int16_t fractionFactor {(input & 0x4) ? (0.125 * (input - 0x8)) : (0.125 * (input & 0x3))};
    return (integral + fractionFactor);
}

非常感谢您的帮助!

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

    为了便于参考、答案位于第61页。