cancel
Showing results for 
Search instead for 
Did you mean: 

Configure I2C clock speed on STM32L476JG

Jeremy Wong
Associate
Posted on January 24, 2018 at 05:25

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.

#stm32l4-hal-i2c
0 REPLIES 0