PIC16F1773 I2C comms with Sensirion SFM3000 flow sensor
Hello all, I hope you're all looking after yourselves in this alarming time.
Does anyone have experience of using Sensirion SFM3000 flow meter? I'm trying in vain to get some life out of it for a medical application.
I'm using PIC16F1773, XC8, 100KHz I2C clock, PIC PPS is all configured right, SSP module I'm sure is set up right, but I can't get data back from my sensor. It acknowledges commands, but that's as far as it goes, the only thing I get back is 0xff, 0xff...
I believe I structured everything right, timings right, according to the datasheet, I'm at a loss currently.
I've attached a summary file, I call my routine "read_flow_sensor()" and that should do the rest.
I'd really appreciate any thoughts, many thanks, Ste.