I found the place to modify the slave address but I couldn't find the place to modify the register address.
I am a beginner so can you please help this out? Now I am working on i2c master programming.
Hi @VaneB
How to assign my register address to the LPI2C master program? Is there any specific place for that or else I have to assign the register address directly to the buffer?( uint8_t masterRxBuffer[BUFF_SIZE];)
I think I am not what are you looking for, the structure of the I2C frame is the following:
Could you please help me to clarify what you mean by register address?
Hi, @VaneB
I am using the TMP1075DGKT sensor for i2c communication. I want to read the device id register value from the sensor. How to assign the 16-bit register address. For this sensor the device ID register address is 0x0F.
It looks like the problem is the way of suiting the device frame.
Usually, the supplier provides information on how to generate communication with the IC.
We just provide the interface.
Hi @Jeevitha
Did you already consult the LPI2C examples for master and slave that are included in the SDK?
B.R.
VaneB
Yes, I have already consulted the LPI2C examples.
I have tried lots of solutions as you discussed below in the previous forum.
https://community.nxp.com/t5/S32K/How-to-set-up-register-address-with-S32K118/m-p/1368127#M12686
https://community.nxp.com/t5/S32-Design-Studio/can-t-read-register-values-in-mpc5748g/td-p/726745
Still, I am facing the same problem with reading the value from the register. Hope I am looking for your perfect solution. Please respond as soon as possible.