ZHCSEE1F October 2010 – September 2019 ADS1118
PRODUCTION DATA.
For positive temperatures:
Twos complement is not performed on positive numbers. Therefore, simply convert the number to binary code in a 14-bit, left justified format with the MSB = 0 to denote the positive sign.
Example: 50°C / (0.03125°C/count) = 1600 = 0640h = 00 0110 0100 0000
For negative temperatures:
Generate the twos complement of a negative number by complementing the absolute binary number and adding 1. Then denote the negative sign with the MSB = 1.
Example: |–25°C| / (0.03125°C/count) = 800 = 0320h = 00 0011 0010 0000
Twos complement format: 11 1100 1101 1111 + 1 = 11 1100 1110 0000