Skip to main content
Manish Sharma
Associate III
June 27, 2018
Question

I2C Timing Calculation

  • June 27, 2018
  • 1 reply
  • 933 views
Posted on June 27, 2018 at 05:32

Hi Everyone,

I am working on I2C to sense DAC data. I generated the code using STM32CubeMX. It gives timing in hex format i.e.

'hi2c2.Init.Timing = 0x10707DBC;'. It does confuse me that how does it calculate timing ? 

I don't know the formula behind this timing value. I need to know it to setup my own timing.

Regards,

Manish

#i2c-analysis #stc3115-i2c-issue-timing #i2c-setup #i2c-timing-register
This topic has been closed for replies.

1 reply

Technical Moderator
June 27, 2018
Posted on June 27, 2018 at 12:54

Hello

manishsharma3134

,

Which board are you using?

May be the '

https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32html

for STM32F3xxxx and STM32F0xxxx microcontrollers' can help you.

With Regards,

Imen.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Manish Sharma
Associate III
June 27, 2018
Posted on June 27, 2018 at 13:09

Hi

DAHMEN.IMEN

‌,

Sorry for my bad. I forgot to mention board name. I am using STM32H753-Eval board.

Regards,

Manish