| Electronic Components Datasheet Search |
|
TMP102 Datasheet(PDF) 15 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
TMP102 Datasheet(HTML) 15 Page - Texas Instruments |
|
15 / 36 page ![]() Table 7-5. 12-Bit Q4 Bit Values in °C 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 will have 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; Similarly, in extended mode, the temperature register is extended to a 13-bit format with the same resolution (Q4). This changes the range and effective bits but the resolution remains the same. For this reason, the bit shift also changes. Encoding and C code examples for extended mode are shown below. Table 7-6. 13-Bit Q4 Encoding Parameters PARAMETER VALUE Bits 13 Q 4 Resolution 0.0625 Range (+) 255.9375 Range (–) -256 25˚C 0xC80 Table 7-7. 13-Bit Q4 Bit Values in °C 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Sign 128 64 32 16 8 4 2 1 0.5 0.25 0.125 0.0625 - - - -256 128 64 32 16 8 4 2 1 1/2 1/4 1/8 1/16 - - - -28 27 26 25 24 23 22 21 20 2-1 2-2 2-3 2-4 - - - /* 13-bit format will have 3 bits discarded by right shift q4 is 0.062500 resolution the following bytes represent 24.5C */ uint8_t byte1 = 0xC; uint8_t byte2 = 0x40; float f = (((int8_t) byte1 << 8 | byte2) >> 3) * 0.0625f; int mC = (((int8_t) byte1 << 8 | byte2) >> 3) * 1000 >> 4; int C = (((int8_t) byte1 << 8 | byte2) >> 3) >> 4; 7.3.3 Temperature Limits and Alert The TMP110 has alert feature and uses the TLow_limit register for low threshold comparison and THigh_Limit register for high threshold comparison. The alert limit is programmed in the TMP110 in a 12-bit or 13-bit two's complement format based on the Extended_Mode setting in the configuration register, with a resolution of 62.5 m°C. At the end of each temperature conversion, the temperature result is compared with the high limit and low limit registers, and the alert status flag and/or ALERT pin is updated. The alert status flag in configuration register and/or the ALERT pin are updated based on the Alert_Mode and Polarity bit setting in the configuration register after every temperature conversion. As shown in Figure 7-3, in comparator mode (Alert_Mode = 0b), the ALERT pin and status flag become active when the temperature equals or exceeds the value in THigh_Limit for Fault number of consecutive conversions. www.ti.com TMP110 SNIS233 – FEBRUARY 2024 Copyright © 2024 Texas Instruments Incorporated Submit Document Feedback 15 Product Folder Links: TMP110 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |