STM32L010 and NXP NT3H2211 (I2C question)
- May 21, 2021
- 1 reply
- 836 views
Greetings everyone, I am trying to communicate with NT3H2211.
My specific problem is marked red on the picture (everything else I manage to successfully send/receive). When reading data NT3H2211 wants to get " 7 bits SA and '1' " and then it will send data. How can I make the transition from write to read like that?
I am using STM32L010 and NXP NT3H2211 transponder.
So far I have used HAL_I2C_Master_Transmit and HAL_I2C_Master_Receive functions for I2C communication with NT3H2211.
But both Transmit and Recieve functions are sending START/RESTART, and STOP after all data is sent/received (I2C_AUTOEND_MODE). So the scenario marked on the picture never happens and I can't read data.
Would I have to manually write register by register of I2C to make such a function that firstly sends data, and then immediately receives data?
Or is there any solution for that, which I haven't heard of?
Thanks