TMP112
SBOS473B–MARCH 2009–REVISED JUNE 2009 ......................................................................................................................................................... www.ti.com
Table 5. 12-Bit Temperature Data Format(1)
TEMPERATURE (°C)
DIGITAL OUTPUT (BINARY)
0111 1111 1111
0111 1111 1111
0110 0100 0000
0101 0000 0000
0100 1011 0000
0011 0010 0000
0001 1001 0000
0000 0000 0100
0000 0000 0000
1111 1111 1100
1110 0111 0000
1100 1001 0000
HEX
7FF
7FF
640
500
4B0
320
190
004
000
FFC
E70
C90
128
127.9375
100
80
75
50
25
0.25
0
–0.25
–25
–55
(1) The resolution for the Temp ADC in Internal Temperature mode is 0.0625°C/count.
For positive temperatures (for example, +50°C):
Twos complement is not performed on positive numbers. Therefore, simply convert the number to binary
code with the 12-bit, left-justified format, and MSB = 0 to denote a positive sign.
Example: (+50°C)/(0.0625°C/count) = 800 = 320h = 0011 0010 0000
For negative temperatures (for example, –25°C):
Generate the twos complement of a negative number by complementing the absolute value binary number
and adding 1. Denote a negative number with MSB = 1.
Example: (|–25°C|)/(0.0625°C/count) = 400 = 190h = 0001 1001 0000
Twos complement format: 1110 0110 1111 + 1 = 1110 0111 0000
Table 6. 13-Bit Temperature Data Format
TEMPERATURE (°C)
DIGITAL OUTPUT (BINARY)
0 1001 0110 0000
0 1000 0000 0000
0 0111 1111 1111
0 0110 0100 0000
0 0101 0000 0000
0 0100 1011 0000
0 0011 0010 0000
0 0001 1001 0000
0 0000 0000 0100
0 0000 0000 0000
1 1111 1111 1100
1 1110 0111 0000
1 1100 1001 0000
HEX
0960
0800
07FF
0640
0500
04B0
0320
0190
0004
0000
1FFC
1E70
1C90
150
128
127.9375
100
80
75
50
25
0.25
0
–0.25
–25
–55
8
Submit Documentation Feedback
Copyright © 2009, Texas Instruments Incorporated
Product Folder Link(s): TMP112