TI's TMP116 I2C temperature sensor software integration with DA14531

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
Manishkumar Bante
Offline
Last seen:4 months 1 week ago
加入:2020-05-14 36
TI's TMP116 I2C temperature sensor software integration with DA14531

I am using TI's TMP116 temperature sensor connected over I2C to DA14531 .

How do I configure multi byte read from the sensor...since all the registers of the sensor are 16 bit long .. and over i2c i can read 1 byte at a time .

kindly update me asap.

Device:
PM_Dialog
Online
Last seen:10 min 21 sec ago
工作人员
加入:2018-02-08 11:03
Hi Manishkumar Bante,

Hi Manishkumar Bante,

I guess that you are using the i2c_read_byte()function in order to read a single byte. Could you please check the i2c_master_receive_buffer_sync() or i2c_master_receive_buffer_async() APIs in order to read multiple bytes?

Thanks, PM_Dialog

Manishkumar Bante
Offline
Last seen:4 months 1 week ago
加入:2020-05-14 36
I have used same i2c_read

I have used same i2c_read_byte() and generated repeated start condition .. its working for me.

PM_Dialog
Online
Last seen:10 min 21 sec ago
工作人员
加入:2018-02-08 11:03
Hi Manishkumar Bante,

Hi Manishkumar Bante,

Thanks for let us know and glad that you got it working. If you found the answer useful, please mark it as accepted.

Thanks, PM_Dialog