# sdp600

sdp600, Sensirion differential pressure sensor with I2C output

Author | Eur van Andel, eur@fiwihex.nl Copyright © 2012
Adapted-by |
Compiler | =2.40

Description

    this library works with the Sensirion SDP600 series pressure sensors
    Output is value, pressure in Pascal is value/scale, where scale is typically 60.
    Range is -500 to 500 Pa.
    Nota Bene: these sensors have 3V3 supply and data!

Dependencies

No dependency found

## Summary

### Global variables/contants

- `var bit tx_ok`
- `const byte sdp600_addr = 0b1000_0000`

### Procedures

- `sdp600_soft_reset()`

### Functions

- `sdp600_read_press_raw() return sword`
- `sdp600_read_press_pa() return sword`

## API details

### Global variables/contants

- `var bit tx_ok`

      for I2C debugging

- `const byte sdp600_addr = 0b1000_0000`

      add 1 when reading, add zero when writing

### Procedures

- `sdp600_soft_reset()`

      force soft reset of pressure sensor

### Functions

- `sdp600_read_press_raw() return sword`

      initiate pressure measurement and read data
      returns raw data as sword
      raw data is pressure * scale
      does not check CRC

- `sdp600_read_press_pa() return sword`

      initiate pressure measurement and read data
      returns pressure in pascal as sword
      does not check CRC

## Related samples

Here are the list of samples which use this library:

18f452 | 18f452_pressure.jal