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.

[参考译文] TMP100:处理器 SDK-AM62xx

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

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1253783/tmp100-processor-sdk-am62xx

器件型号:TMP100

大家好!

我使用的是  AM62xx 处理器 定制电路板。 IAM 尝试从与 AM62xx 目标板(定制板)上的"ti、tmp100"兼容的传感器中读取电流温度、其中采用以下命令、

猫/sys/class/thermal/thermal_zone0/temp

猫/sys/class/thermal/thermal_zone1/temp

root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
49042
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
48819
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
49266
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
48146
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
48371
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
49042
root@am62xx-oneconcontrol-LRD:~# cat /sys/class/thermal/thermal_zone0/temp
48819


 访问以下数据表链接:

采用 SOT-23封装、具有 I2C、SMBus 接口和报警功能的 TMP10x 温度传感器数据表(修订版 I)

我们预期这里的室温。

请告诉我有什么建议。  

我是否可以知道如何从目标板读取当前温度以获得正确的温度。

此致、

帕德马拉塔  


 

 

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

    我相信你们看到的都是毫摄氏度 48819为48.819C。  

    TMP100由 Linux 内核中的 LM75驱动程序支持。  https://github.com/torvalds/linux/blob/master/drivers/hwmon/lm75.c

    有一个函数将结果乘以1000、这与 MC 一致。

    此外、这些数字太大、不能作为 TMP100报告的原始值、因此 TMP100数据表用处不大。 例如、如果48819由 TMP100直接报告、则由于二进制补码对有符号数进行编码、因此会解码为-65C。

    谢谢。