SLVSMZ0 September 2026 ADS111S02
ADVANCE INFORMATION
To convert from digital codes to temperature, first read the data bytes from the device and extract the 12-bit temperature value by right-shifting the result. Figure 8-3 shows the 12-bit temperature sensor data alignment within the 16-bit conversion register. The MSB of the 12-bit value determines the sign: 0b indicates a positive temperature and 1b indicates a negative temperature. For positive temperatures convert the 12-bit binary value to decimal and multiply the result by the temperature sensor LSB size, 0.125°C. For negative temperatures, the value is in two's compliment format. Invert all 12 bits and add 1b, convert to decimal, and multiply the result by the negative temperature sensor LSB size, –0.125°C.
1. Positive temperature example: The device reads back 258h. 258h × 0.125°C = 600 × 0.125°C = 75°C
2. Negative temperature example: The device reads back F38h. Subtract 1b and complement the result: F38h → 0C8h, 0C8h × (–0.125°C) = 200 × (–0.125°C) = –25°C