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.

[参考译文] BQ25892:如何获取温度?

Guru**** 2391415 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/942794/bq25892-how-to-get-temperature

器件型号:BQ25892

您好!

我尝试使用以下命令从 BQ2589X_REG_10获取温度:

RET = bq2589x_read_Byte (&V、BQ2589X_REG_10);
如果(ret < 0){
回程;
}否则{
温度= BQ2589X_TSPCT_base +((val & BQ2589X_TSPCT_MASK)>> BQ2589X_TSPCT_SHIFT)* BQ2589X_TSPCT_LSB;
返回温度;

但它返回奇怪的数字... 电路板温度为26°C、该函数返回值60。

您能建议如何获得价值吗?

谢谢你  

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

    您好、Oleh、

    请查看以下链接中的应用手册:

    此致、

    Jeff