STM32F407 i2c slave configuration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-20 7:34 AM
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).
- 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
Labels:
- Labels:
-
I2C
-
STM32F4 Series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-20 7:47 AM
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.
