Sensirion SF04 I2C Flow and Differential Pressure Sensors CRC Checksum Application Note

This application note describes how to calculate the CRC checksum in I2C flow and differential pressure sensors.


Sensirion SF04 I2C Flow and Differential Pressure Sensors CRC Checksum Application Note - cover page
Brand
CRC
Category
Other
Document type
Application Note
Language
English
Pages
5
File format
PDF
File size
48 KB
Published
11 April, 2012
Updated
30 September, 2023
MD5 checksum
27F31E6FA687285587B752954067D12D

About this manual

The note describes the CRC‑8 error‑detection scheme used by Sensirion's SF04 CMOSens® flow and differential pressure sensors with an I²C interface. It explains when the CRC byte is transmitted, how a mismatch should be handled, and provides the polynomial and CRC parameters used.

The document details the bitwise CRC calculation, including XOR‑division and a generator‑model algorithm, and supplies a simple C++ routine for microcontroller implementation. Revision history and contact information for Sensirion worldwide are also included.

What's inside

  • Summary
  • Trigger Measurement
  • Theory
  • Bitwise CRC‑8 Calculation
  • XOR Division
  • Generator Model
  • C++ Code
  • Revision History

Frequently asked questions

How is the CRC register initialized?

The CRC register initializes with the value 0x00.

Is there a CRC check byte sent from the master to the sensor?

No, the CRC check byte is only sent by the sensor after the master acknowledges both data bytes.

Download PDF (48 KB)