Skip to main content
Mohsin
Associate II
June 26, 2024
Solved

How to configure I2C_TIMINGR for STM32L073RZT6?

  • June 26, 2024
  • 1 reply
  • 1677 views

Timing.pngI2C_TIMINGR is configured for I2C bus speed of 400kHz. Is his configuration correct?

 

  • PRESC[3:0] = 0010 (PRESC = 2)
  • SCLDEL[3:0] = 0001 (SCLDEL = 1)
  • SDADEL[3:0] = 0001 (SDADEL = 1)
  • SCLL[7:0] = 00001010 (SCLL = 10)
  • SCLH[7:0] = 00001010 (SCLH = 10)

Is it correct or not?

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
June 26, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.