Skip to main content
Visitor 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.

    This topic has been closed for replies.

    1 reply

    Super User
    September 14, 2024

    Where you see "wrong" signal?

    For me it looks ok.

    NoNamedAuthor
    Visitor II
    September 14, 2024

    ah yes my bad, 

    IMG_2641.jpeg

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

    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 ?)