2020-11-12 02:52 AM
2020-11-12 08:00 AM
Hi Fredrik @FLund.1 ,
1.0 us at 300kHz should work, if you can guarantee there is little or no jitter on the SCL clock slopes...
I cannot exclude in principle potential problems, but they should not result in hard faults: you may skip some clock frame but, since the pressure measured by the sensor is varying slowly in time compared to the clock frequency, you will not get a big measurement difference.
-Eleon
2020-11-12 03:42 AM
Hi @FLund.1 ,
there is some elasticity on the ST sensors from the clock stretching point of view, but tolerances are not declared, so it is better to manage the clock tuning from the I2C master side. You can however try and see if it works, for your specific case.
The sensor supports I2C standard mode and the fast mode, so a broad range of clock frequencies: which is the I2C frequency of your application?
-Eleon
2020-11-12 05:25 AM
Hi, thanks for the quick reply!
The SCL frequency during data transfer is around 300 kHz. Our main concern is the fact that our master device uses a SCL LOW time which is shorter than the I2C specification. Our SCL LOW time is 1.0 us, whereas the specification requires >1.3 us. That is why I wondered about clock stretching; if the ST sensor will stretch the clock if the SCL LOW time is not enough?
The design works - we read good data from the sensor with the current design, but we are considering potential problems that might arise because of the deviant SCL LOW time.
-Thanks
/Fredrik
2020-11-12 08:00 AM
Hi Fredrik @FLund.1 ,
1.0 us at 300kHz should work, if you can guarantee there is little or no jitter on the SCL clock slopes...
I cannot exclude in principle potential problems, but they should not result in hard faults: you may skip some clock frame but, since the pressure measured by the sensor is varying slowly in time compared to the clock frequency, you will not get a big measurement difference.
-Eleon
2020-11-26 02:18 AM
Hi @FLund.1 ,
were you able to test your I2C with the LPS22HB?
-Eleon
2020-12-03 06:18 AM
Hi @Eleon BORLINI
Yes, everything works fine. Tested and released for production. Thanks for the support!
/Fredrik