2024-01-24 8:44 PM - last edited on 2024-01-25 1:34 AM by Sarra.S
Hello Community,
I am planning to use I2C operating at 1kHz maximum on STM32G4 & STM32G0 series for measuring temperature from Digital Temperature sensors placed at 2m distance from the main board in an industrial environment using CAT6 (STP) Cables with SCL & SDA paired with Grounds. I have options to operate this I2C bus at 3.3V or at 5V. The Temperature sensor has an inbulit hysteresis of 600mV.
We will be measuring temperature less frequently (probably once every one hour) & I2C based temperature sensing shall never be initiated at the starting or wake up time of the MCU from any state.
Kindly guide with your experience based insights.
Regards.
2024-11-26 1:53 PM - edited 2024-11-26 1:55 PM
Hey, I didn't confirmed it yet, but looks like digital filter makes measure X times and averaging value which allow to skip falce calls, example:
you chose value 3, and your device measuring 3 times state of SDA pin per one SCL cycle, if it reads 0, 1, 1 it will decide that that bit have logic 1.
... I'm not sure about it, but it's how I understand it :)
Regarding 5 V - you answered your question by yourself, if your Master and slave have 5V tollerant pins, than yes. if no use voltage devider. or make pullup from 3.3V net