cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 i2c slave configuration

MAbba.2
Associate II

Hello,

I am working with STM32F407 evaluation board. I want to use i2c as a slave on it.

My master device is siliconlab micro-controller (mighty gecko).

  1. What slave address i should use for sending data for STM32?

As master needs slave address to send data.

2. I have following configuration for i2c on master

  • I2C_FREQ_STANDARD_MAX  92000
  • i2cClockHLRStandard = _I2C_CTRL_CLHR_STANDARD,   /**< Ratio is 4:4 */

Please help to use STM32 for the same configuration. I am new to STM32.

i will be really thankful for help

Regards

1 REPLY 1
CFran.1
Associate II

If you refer to the reference manual under the I2C section, and look at the OAR1 register, you'll notice you can configure your own 7 bit address or 10 bit address. Hopefully this helps! Good luck on your project.