Ntag i2c plus - bidirectional communication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ntag i2c plus - bidirectional communication

Jump to solution
1,662 Views
kaibuechler
Contributor II

Hello,

I'm doing a bidirectional communication between a android phone and a microcontroller in the following sequence:

  1. the phone writes data to sram
  2. the micrcontroller reads the data from the phone
  3. microcontroller writes data to the sram
  4. phone reads the data from the microcontroller
  5. start all over again (read write is always done to the same addresses)

The Problem I see is, that the data written at step 3. is only successfull for the first cylce. The i2c write is alright, but the phone does not read the new data, it always reads the values from the first cycle

I quess my seassion Register configuration does not match for the 2nd cylce, has someone a idea here?

Tags (2)
0 Kudos
Reply
1 Solution
1,513 Views
kaibuechler
Contributor II

Hello Kan,

I found the solution. You always need to disable the put-through mode before changeing the transfer direction.

View solution in original post

0 Kudos
Reply
3 Replies
1,513 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Kai,

Could you provide more details regarding this issue? Like data log between the phone and micro controller.

Thanks for your patience!


Have a great day,
Kan

0 Kudos
Reply
1,514 Views
kaibuechler
Contributor II

Hello Kan,

I found the solution. You always need to disable the put-through mode before changeing the transfer direction.

0 Kudos
Reply
1,018 Views
Jimmywder03
Contributor III

Hello kaibuechler ,

I saw that you find the solution, can you attach the project to see how you did it, becuase i would like to do the same.

it will be very helpfull for me

thanks for all

 

Tags (1)
0 Kudos
Reply