3 posts / 0 new
Last post
Krutarth
Offline
Last seen: 6 years 11 months ago
Joined: 2015-07-09 19:57
I2C

Hi Dialog,
Is there a way possible to read 16 bits via I2C between a single start and stop condition? In your current SDK I2C drivers one does not have any control over when a start and stop condition is issued. I have a sensor sending 16 bits of data but i can only receive 8 bits since da14580 issues a stop condition on the I2C bus before all the 16 bits are transferred.

Thanks and Regards,

Keywords: 
Device: 
MT_dialog
Offline
Last seen: 1 year 9 months ago
Staff
Joined: 2015-06-08 11:34
Hi krutarth,

Hi krutarth,

In the I2C all the data are transmitted in byte format, with no limit on the number of bytes transfered per data transfer, when the master sends the address and the RW bit or the master transmits a byte of data to the slave, the slave receiver must respond with an ack signal. When the slave receiver does not respond with an ACK pulse, the master terminates the transfer by issuing a stop condition. Normally you should be capable of trasmiting 2 bytes without a STOP condition. Perhaps your slave transmitter relinquishes the SDA line after sending the first byte, for some reason, and the master issues a STOP condition.

Thanks MT_dialog

Krutarth
Offline
Last seen: 6 years 11 months ago
Joined: 2015-07-09 19:57
Thanks for the insight MT

Thanks for the insight MT_Dialog.
Finally was able to read the two bytes of the Sensor. You can close this ticket now.

Thanks and Regards,
Krutarth

Topic locked