Could anyone please clarify if low byte values for temperatures are signed or unsigned integers in 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.
Could anyone please clarify if low byte values for temperatures are signed or unsigned integers in TMP461?
Yes correct.
+14.25 are stored as 0x0E.40 (14/1=0x0E and 0.25 is 0.25/.0625 = 0x04 but left-justified so it becomes 0x40; together it's 0x0E.40)
or you can just do 14.25/0.0625=228=0xE4 and then pad it with the last four empty bits and get 0x0E.40.
-14.25 are stored as 0xF1.C0 (2's complement)
Check result:
After decimation of last 4 bits:
0xFF.1C = -228
-228 code*0.0625C/code= -14.25C (answer checked out)
-Kelvin