AnsweredAssumed Answered

Configure I2C clock speed on STM32L476JG

Question asked by Jeremy Wong on Jan 24, 2018

I am trying to read data from an I2C peripheral. This peripheral requires the I2C clock to be at 100kHz. When probing with a scope, the SCL line shows 400kHz. From the STM32CubeL4 I2C examples, the I2C_timing register is set to 0x00D00E28. How can I make it so that the clock speed is 100kHz?

 

I've opened up the CubeMX tool and used the configuration tool to generate a timing value. However, it seems like no matter what value I set for this register, the I2C clock is always running at 400kHz.

Outcomes