SNAU265C june   2021  – july 2023 HDC3020 , HDC3020-Q1 , HDC3021 , HDC3021-Q1 , HDC3022 , HDC3022-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1HDC302x Devices
    1. 1.1 HDC3020 in WSON
    2. 1.2 HDC3021 in WSON
    3. 1.3 HDC3022 in WSON
  5. 2Storage and Handling Guidelines
    1. 2.1 Exposure to Contaminants
    2. 2.2 Chemical Analysis
      1. 2.2.1 Saturation and Recovery Tests
      2. 2.2.2 Long-Term Exposure
    3. 2.3 Packaging and Storing
      1. 2.3.1 Assembly
      2. 2.3.2 Application in Extreme Environment
  6. 3Programming the HDC3020
    1. 3.1 Trigger-On Demand
    2. 3.2 Auto Measurement
    3. 3.3 Programming the CRC
      1. 3.3.1 CRC C Code
    4. 3.4 Condensation Removal
    5. 3.5 Offset Error Correction
      1. 3.5.1 Offset Error Correction Example With a Fingerboard
  7. 4References
  8. 5Revision History

Programming the CRC

The Cyclical Redundancy Check (CRC) computation module can be used for message transfer and safety system checks. The 8-bit CRC checksum transmitted after each data word is generated by a CRC algorithm. The CRC covers the contents of 2 bytes of transmitted data. To calculate the checksum, only these two previously transmitted data bytes are used.

Table 3-1 HDC3x CRC Properties
PROPERTYVALUE

Name

CRC-8 / NRSC-5

Width

8 bit

Protected Data

Read and/or write Data

Polynomial

0x31 (x8 + x5 + x4 + 1)

Initialization

0xFF

Example

CRC of 0xABAB is 0x72