Author | Eur van Andel, eur@fiwihex.nl Copyright © 2012 |
Adapted-by | |
Compiler | =2.40 |
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!
No dependency found
var bit tx_ok
for I2C debugging
const byte sdp600_addr = 0b1000_0000
add 1 when reading, add zero when writing
sdp600_soft_reset()
force soft reset of pressure sensor
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
18f452 | 18f452_pressure.jal |