Hey, I was just reading the datasheet from the DS18B20 digital thermometer to understand how it works.
I understand where the positive values come from, but the negative values don't make any sense to me,
Can someone help me there ?
Hey, I was just reading the datasheet from the DS18B20 digital thermometer to understand how it works.
I understand where the positive values come from, but the negative values don't make any sense to me,
Can someone help me there ?
As stated in the data sheet the DS18B20 uses 2's complement for negative numbers. You can use that as a search term. For example
Store the 16 bits into a 16-bit signed integer, and divide by 16.0 to get float degrees.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.