Skip to main content
Associate II
September 14, 2024
Question

I2C weird behavior, SDA come high before SCL

  • September 14, 2024
  • 1 reply
  • 1305 views

IMG_2641.jpeg

I was implementing i2c on the stm32f4 to read the as5600 magnetic encoder. Everything ran perfectly for a while, then the I2C got stuck, I check and see that after the start generate, sda transition when the scl still low. I checked many times and the same thing happened every time.

1 reply

AScha.3
Super User
September 14, 2024

Where you see "wrong" signal?

For me it looks ok.

"If you feel a post has answered your question, please click ""Accept as Solution""."
NoNamedAuthor
Associate II
September 14, 2024

ah yes my bad, 

IMG_2641.jpeg

right after generated start, the sda somehow changed before the scl.

AScha.3
Super User
September 14, 2024

Ok, this looks ... like an error.  One clock pulse, then nothing...

1. What you doing there ? (command call ?)

2. Did you check for errors ? (state of I2S registers ?)

"If you feel a post has answered your question, please click ""Accept as Solution""."