SNAU250 November   2020 HDC2010 , HDC2021 , HDC2022 , HDC2080

 

  1.   1
  2.   2
    1.     3
    2.     4
      1.      5
      2.      6
      3.      7
  3.   8
    1.     9
    2.     10
      1.      11
      2.      12
  4.   13
    1.     14
    2.     15
      1.      16
      2.      17
      3.      18
    3.     19
      1.      20
      2.      21
      3.      22
      4.      23
    4.     24
    5.     25
  5.   26
  6.   27
    1.     28
    2.     29
    3.     30
    4.     31
    5.     32
    6.     33
    7.     34
  7.   35

Understanding the Output Data

The measured temperature and humidity data are sent to the output register: TEMP_LOW, TEMP_HIGH, RH_LOW and RH_HIGH. The complete temperature and humidity data are represented as 16-bit numbers, so in order to translate to real world values it is necessary to concatenate the low and high register like so:

Equation 1. TEMPERATURELSB = TEMP_HIGH <<8 + TEMP_LOW;
Equation 1. HUMIDITYLSB = RH_HIGH <<8 + RH_LOW;

Where:

  • TEMPERATURELSB is the 16 bit concatenation of the 8 bit temperature registers
  • HUMIDITYLSB is the 16 bit concatenation of the 8 bit humidity registers

Convert the output value

Please note, these values are not in two's complement, so it is necessary to convert temperature and humidity to °C and %RH respectively using the following equations.

Equation 1. GUID-6848840D-6B00-4BD6-B579-250A23DBAA02-low.gif
Equation 1. GUID-CD0EC327-34DE-46F8-A253-6167C03441EA-low.gif

Temperature Calculation Example:

1. Output registers:

Equation 1. TEMP_LOW = 0x5E;
Equation 1. TEMP_HIGH = 0x64;

Temperature value in hex:

Equation 1. TEMPERATURELSB = 0x645E

Temperature value in decimal:

Equation 1. TEMPERATURELSB = 25694

Temperature value in degree C:

Equation 1. GUID-D71A5927-5A63-4312-AE88-FCDF0EFD8852-low.gif

2. Output registers:

Equation 1. TEMP_LOW = 0x3B;
Equation 1. TEMP_HIGH = 0x29;

Temperature value in hex:

Equation 1. TEMPERATURE = 0x293B

Temperature value in decimal:

Equation 1. TEMPERATURE = 10555

Temperature value in degree C:

Equation 1. GUID-411E22B3-7A96-420B-ABAF-3596D5F3DA68-low.gif

Humidity Calculation Example:

Output registers:

Equation 1. RH_LOW = 0xDC;
Equation 1. RH_HIGH = 0x42;

Humidity value in hex:

Equation 1. HUMIDITYLSB = 0x42DC

Humidity value in decimal:

Equation 1. HUMIDITYLSB = 17116

Humidity value in %RH:

Equation 1. GUID-0C15F8ED-B762-4551-90B6-201839302DAB-low.gif