Is there any function to read register value of temperature sensor through i2c master in S32K146?

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

Is there any function to read register value of temperature sensor through i2c master in S32K146?

2,248 Views
Jeevitha
Contributor II

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. 

Labels (1)
7 Replies

2,082 Views
kavithastephen
Contributor I

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];) 

0 Kudos
Reply

2,036 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @kavithastephen 

I think I am not what are you looking for, the structure of the I2C frame is the following: 

VaneB_0-1686173645358.png

Could you please help me to clarify what you mean by register address?

0 Kudos
Reply

2,008 Views
kavithastephen
Contributor I

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.

0 Kudos
Reply

1,997 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @kavithastephen 

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. 

 

0 Kudos
Reply

2,229 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Jeevitha 

Did you already consult the LPI2C examples for master and slave that are included in the SDK?

 

B.R.

VaneB

0 Kudos
Reply

2,171 Views
Jeevitha
Contributor II

Yes, I have already consulted the LPI2C examples.

0 Kudos
Reply

2,111 Views
Jeevitha
Contributor II

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.