ZHCSSV5 January   2024 TMP119

PRODUCTION DATA  

  1.   1
  2. 特性
  3. 应用
  4. 说明
  5. Device Comparison
  6. Pin Configuration and Functions
  7. Specifications
    1. 6.1 Absolute Maximum Ratings
    2. 6.2 ESD Ratings
    3. 6.3 Recommended Operating Conditions
    4. 6.4 Thermal Information
    5. 6.5 Electrical Characteristics
    6. 6.6 Switching Characteristics
    7. 6.7 Two-Wire Interface Timing
    8. 6.8 Timing Diagram
    9. 6.9 Typical Characteristics
  8. Detailed Description
    1. 7.1 Overview
    2. 7.2 Functional Block Diagram
    3. 7.3 Feature Description
      1. 7.3.1 Power Up
      2. 7.3.2 Averaging
      3. 7.3.3 Temperature Result and Limits
      4. 7.3.4 Strain Tolerance
    4. 7.4 Device Functional Modes
      1. 7.4.1 Continuous Conversion Mode
      2. 7.4.2 Shutdown Mode (SD)
      3. 7.4.3 One-Shot Mode (OS)
      4. 7.4.4 Therm and Alert Modes
        1. 7.4.4.1 Alert Mode
        2. 7.4.4.2 Therm Mode
    5. 7.5 Programming
      1. 7.5.1 EEPROM Programming
        1. 7.5.1.1 EEPROM Overview
        2. 7.5.1.2 Programming the EEPROM
      2. 7.5.2 Pointer Register
      3. 7.5.3 I2C and SMBus Interface
        1. 7.5.3.1 Serial Interface
          1. 7.5.3.1.1 Bus Overview
          2. 7.5.3.1.2 Serial Bus Address
          3. 7.5.3.1.3 Writing and Reading Operation
          4. 7.5.3.1.4 Target Mode Operations
            1. 7.5.3.1.4.1 Target Receiver Mode
            2. 7.5.3.1.4.2 Target Transmitter Mode
          5. 7.5.3.1.5 SMBus Alert Function
          6. 7.5.3.1.6 General-Call Reset Function
          7. 7.5.3.1.7 Timeout Function
          8. 7.5.3.1.8 Timing Diagrams
  9. Application and Implementation
    1. 8.1 Application Information
      1. 8.1.1 C-Code Decoding Temperature Data
    2. 8.2 Typical Application
      1. 8.2.1 Design Requirements
      2. 8.2.2 Detailed Design Procedure
        1. 8.2.2.1 Noise and Averaging
        2. 8.2.2.2 Self-Heating Effect (SHE)
        3. 8.2.2.3 Synchronized Temperature Measurements
      3. 8.2.3 Application Curves
    3. 8.3 Power Supply Recommendations
    4. 8.4 Layout
      1. 8.4.1 Layout Guidelines
      2. 8.4.2 Layout Example
    5. 8.5 Register Map
  10. Device and Documentation Support
    1. 9.1 Documentation Support
      1. 9.1.1 Related Documentation
    2. 9.2 接收文档更新通知
    3. 9.3 支持资源
    4. 9.4 Trademarks
    5. 9.5 静电放电警告
    6. 9.6 术语表
  11. 10Revision History
  12. 11Mechanical, Packaging, and Orderable Information

封装选项

机械数据 (封装 | 引脚)
散热焊盘机械数据 (封装 | 引脚)
订购信息

C-Code Decoding Temperature Data

The TMP119 temperature registers use a 16-bit format. Temperature data is represented by a 16-bit 2's complement word with a Least Significant Bit (LSB) equal to 0.0078125°C. The temperature output of the TMP119 has a range of -256°C to 255°C. The fractional values are included in the temperature readings, which can be denoted using Q notation, a simple way to represent the length of the fractional portion of the value. 2's Compliment is employed to describe negative temperatures. C code can easily convert the 2's Compliment data when the data is typecast into the correct signed data type.

Figure 8-1 Encoding Parameters
ParameterValue
Bits16
Q

7

Resolution0.0078125
Range (+)

255.9921875

Range (-)-256
25˚C0xC80
Table 8-1 16-Bit Q Notation Bit Weights
1514131211109876543210
Sign

128

64

32

16

8

4

2

1

0.5

0.25

0.125

0.06250.031250.0156250.0078125
-256

128

64

32

16

8

4

2

1

1/2

1/4

1/8

1/161/321/641/128

-28

27

26

25

24

23

22

21

20

2-1

2-2

2-3

2-4

2-5

2-6

2-7

C Code Examples: 
/* 16-bit format will have 0 bits discarded by right shift 
q7 is 0.0078125 resolution 
the following bytes represent 24.5C */ 
uint8_t byte1 = 0xC; 
uint8_t byte2 = 0x40; 
float f = ((int8_t) byte1 << 8 | byte2) * 0.0078125f; 
int mC = ((int8_t) byte1 << 8 | byte2) * 1000 >> 7; 
int C = ((int8_t) byte1 << 8 | byte2) >> 7;