Skip to main content
Graduate II
September 29, 2024
Solved

I²C Communication Issues Between STM8 and ST25R3916B

  • September 29, 2024
  • 1 reply
  • 652 views

Rance_0-1727585038989.png

At the beginning of the program,

I first performed a write-then-read operation on register 00 using I²C timing.

I wrote 0x04 to register 00, and this worked correctly.

However, when I used the same method to perform a write-then-read operation on register 03,

I wrote 0x07 to register 03,

but when I read register 03, the returned value was 0x08.

Rance_0-1727585561232.png

 

Can you tell me why this problem might occur?

What are the possible reasons?

    This topic has been closed for replies.
    Best answer by Rance

    I found out why.

    Rance_4-1727598914581.png

     

    so i should init first:

    Rance_5-1727599070458.png

     

    1 reply

    RanceAuthor
    Graduate II
    September 29, 2024

    Rance_0-1727595986095.png

     

     

    Even though I wrote 0xFF to register 0x03, the value read back is still 0x08.

    Rance_2-1727596501616.png

    Rance_3-1727596597554.png

    RanceAuthorAnswer
    Graduate II
    September 29, 2024

    I found out why.

    Rance_4-1727598914581.png

     

    so i should init first:

    Rance_5-1727599070458.png