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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

2,315 次查看
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. 

标签 (1)
7 回复数

2,149 次查看
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 项奖励
回复

2,103 次查看
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 项奖励
回复

2,075 次查看
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 项奖励
回复

2,064 次查看
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 项奖励
回复

2,296 次查看
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 项奖励
回复

2,238 次查看
Jeevitha
Contributor II

Yes, I have already consulted the LPI2C examples.

0 项奖励
回复

2,178 次查看
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.