请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMP461 是否有人可以澄清 TMP461中温度的低字节值是有符号整数还是无符号整数?
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.
是的、正确。
14.25存储为0x0E.40 (14/1=0x0E、0.25为0.25/0.0625 = 0x04、但左对齐后变为0x40;总共为0x0E.40)
或者、您只需执行14.25/0.0625=228=0xE4、然后用最后四个空位填充它、得到0x0E.40。
-14.25存储为0xF1.C0 (二进制补码)
检查结果:
在抽取最后4位后:
0xFF.1C =-228
-228 CODE*0.0625C/CODE=-14.25C (已检出答案)
开尔文