Skip to main content
wsevendays
Associate III
January 18, 2012
Question

Change clock rate I2C

  • January 18, 2012
  • 2 replies
  • 1005 views
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
This topic has been closed for replies.

2 replies

Artur1
Associate III
January 18, 2012
Posted on January 18, 2012 at 12:41

I2C_InitStructure.I2C_ClockSpeed = xxx;

in your Init function.

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

Oh..thanks!

I

was not looking

to the right place