• AVR Freaks

PIC16F1773 I2C comms with Sensirion SFM3000 flow sensor

Author
MPicSte
Starting Member
  • Total Posts : 45
  • Reward points : 0
  • Joined: 2012/11/08 05:17:25
  • Location: 0
  • Status: offline
2020/03/26 05:03:39 (permalink)
0

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.
#1

1 Reply Related Threads

    MPicSte
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2012/11/08 05:17:25
    • Location: 0
    • Status: offline
    Re: PIC16F1773 I2C comms with Sensirion SFM3000 flow sensor 2020/03/26 07:50:16 (permalink)
    0
    Whoops, sorry, the third line in "void read_flow_sensor(void)" should read " I2C_master_write_expect_Ack(0x10); //ST_MESURE_H);"
     
    - that was a glitch that crept in, this doesn't fix my problem -
     
    Thanks!
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5