Skip to main content
MAbba.2
Associate
January 20, 2020
Question

STM32F407 i2c slave configuration

  • January 20, 2020
  • 1 reply
  • 683 views

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

This topic has been closed for replies.

1 reply

CFran.1
Associate III
January 20, 2020

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.