AnsweredAssumed Answered

How to calculate I2C SCL Speed

Question asked by Tharaga B on Jul 14, 2017
Latest reply on Jul 17, 2017 by waclawek.jan

I'm trying to get a 100 or 400 kHz rate on I2C3 SCL to interface with a Sparkfun IMU breakout board. I was wondering what value I should set "TIMING" to in order to achieve this rate with an STM32L476RG Nucleo board. For reference, this is the "TIMING" value I'm trying to calculate:

hi2c3.Instance = I2C3;
hi2c3.Init.Timing = 0x0020098E; // Thought this was 100 kHz based on other examples, but appearing as 600 Hz on my oscilloscope