I2C_SLAVE WAIT IN READ BYTE

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Rajapurerohit
Offline
Last seen:8 months 1 week ago
加入:2017-04-20 09:17
I2C_SLAVE WAIT IN READ BYTE

Dear Dialog_Support,

1.I am using I2C VEML6070 UV sensor for my project. I have referred the SDK i2c_eeprom code to configure my sensor. I have changed I2C_SLAVE_ADDRESS as per my sensor datasheet. I am able to write data to sensor register, but i am not able to read data from sensor register it always holds in WAIT_FOR_RECEIVED_BYTE();.

2.Just to confirm my code is correct, i have used same code with another I2C based accelerometer sensor the code works fine, i am able to read and write the registers.

3.But for same code i am not able to read register data of VEML6070 UV sensor data
Please help me why code holds in wait state?
Is there any troubleshooting procedure why is in wait state?

Thanks and Regards
Rohit

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

你得到这个等待的原因,我s because the device on the other side never responds with data. The device goes in wait state and waits for the other side to send the data that it should so that the counter will increase and the 580 can go to the I2C FIFO and get the actual data.

Thanks MT_dialog

Rajapurerohit
Offline
Last seen:8 months 1 week ago
加入:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,

Thank you for the response.