cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Timing Calculation

Manish Sharma
Associate III
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
2 REPLIES 2
Imen.D
ST Employee
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.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
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