SNIS241 September 2025 TMP461-EP
PRODUCTION DATA
The TMP461-EP temperature registers use a 12-bit format. The 12 bits are aligned to the left side, or most significant side, of the 16-bit word. The four unused bits are on the right side, or the least significant side. For this reason, a shift is needed to discard the extra bits. 2’s complement is employed to describe negative temperatures. C code can easily convert the 2’s complement data when the data is typecast into the correct signed data type. Q notation describes the number of bits that represent a fractional result. 4 bits of fractional data, known as Q4, offers 0.0625°C resolution.
PARAMETER | VALUE |
|---|---|
| Bits | 12 |
| Q | 4 |
| Resolution | 0.0625 |
| Range (+) | 127.9375 |
| Range (-) | -128 |
| First Byte Integer C | Yes |
| 25˚C | 0x1900 |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sign | 64 | 32 | 16 | 8 | 4 | 2 | 1 | 0.5 | 0.25 | 0.125 | 0.0625 | - | - | - | - |
| -128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | 1/2 | 1/4 | 1/8 | 1/16 | - | - | - | - |
-27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 2-1 | 2-2 | 2-3 | 2-4 | - | - | - | - |
/* 12-bit format has 4 bits discarded by right shift
q4 is 0.062500 resolution
the following bytes represent 24.5C */
uint8_t byte1 = 0x18;
uint8_t byte2 = 0x80;
float f = (((int8_t) byte1 << 8 | byte2) >> 4) * 0.0625f;
int mC = (((int8_t) byte1 << 8 | byte2) >> 4) * 1000 >> 4;
int C = (int8_t) byte1;