cancel
Showing results for 
Search instead for 
Did you mean: 

I²C Communication Issues Between STM8 and ST25R3916B

Rance
Associate III

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Rance
Associate III

I found out why.

Rance_4-1727598914581.png

 

so i should init first:

Rance_5-1727599070458.png

 

View solution in original post

2 REPLIES 2
Rance
Associate III

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

Rance
Associate III

I found out why.

Rance_4-1727598914581.png

 

so i should init first:

Rance_5-1727599070458.png