Sensirion SF04 I2C Flow and Differential Pressure Sensors Sample Code Application Note

This application note contains a C++ sample code to implement the basic commands of I2C flow and differential pressure sensors.


Sensirion SF04 I2C Flow and Differential Pressure Sensors Sample Code Application Note - cover page
Brand
SENSIRION
Category
Other Electronics
Document type
Application Note
Language
English
Pages
17
File format
PDF
File size
103 KB
Published
11 April, 2012
Updated
30 September, 2023
Model
SF04
MD5 checksum
F0BABC8441DBA91B8C6C16EA1BE030D5

About this manual

This application note provides C++ sample code to implement basic commands for Sensirion's SF04 I2C flow and differential pressure sensors. The code is designed for easy understanding and is not optimized for speed or size. It uses bit-banging for I2C compatibility and targets a NEC V850/SG3 microcontroller. The code includes functions to read sensor registers, measure flow, and retrieve serial numbers and scale factors.

What's inside

  • Sample Code
  • Revision History
  • SF04.h Definitions
  • Sensor Commands
  • Register Access
  • Flow Measurement
  • Serial Number and Scale Factor

Specifications

Sensor Chip4th generation CMOSens® mass flow sensor chip
InterfaceI2C with bit-banging implementation
Target MicrocontrollerNEC V850/SG3 (uPD70F3740)
CompilerIAR compiler for V850 (3.50A)

Frequently asked questions

What is the sensor chip used in the SF04?

It is a 4th generation CMOSens® mass flow sensor chip.

How is the I2C interface implemented?

It is implemented as "bit-banging" on normal I/O's for compatibility.

What microcontroller is the code designed for?

The code is designed for the NEC V850/SG3 (uPD70F3740) microcontroller.

Download PDF (103 KB)

More SENSIRION Manuals


View all SENSIRION manuals →