cancel
Showing results for 
Search instead for 
Did you mean: 

Change clock rate I2C

wsevendays
Associate II
Posted on January 18, 2012 at 12:13

How I can change clock rate for I2C bus? I need to get work wii motion plus. Code from arduino:

TWBR = ((16000000L / 400000L) - 16) / 2; // change the I2C clock rate

How I can do this in stm32?

I'm use stm32f103vet6.

#i2c #bus #rate #arduino #clock
2 REPLIES 2
Artur1
Associate II
Posted on January 18, 2012 at 12:41

I2C_InitStructure.I2C_ClockSpeed = xxx;

in your Init function.

wsevendays
Associate II
Posted on January 18, 2012 at 14:28

Oh..thanks!

I

was not looking

to the right place