Solved
Setting peripheral clock same as the APB1 bus clock following the data sheet which is 42MHZ .It's from bit 0 to 5 on I2C control register 2.To what bit do I set it to?
..
..
Hello @Marrkinho ,
To set the peripheral clock frequency for I2C as APB1 frequency (for 42 MHz ) , you need to program the bits 0-5 (FREQ[5:0]) of the I2C control register 2 (I2C_CR2) as 0x2A. (following the RM)
Hope I helped you!
Foued
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.