How to perform a I2C burst write?

2 posts / 0 new
Last post
kenneth.er
Offline
Last seen:4 years 7 months ago
加入:2015-09-03 15:31
How to perform a I2C burst write?

Hi all,

I'm rather new to the DA14580 SDK and have been trying to port the EEPROM I2C code to control my fuel gauge chip. So far, I have success in the reading portion but not so much on the writing portion. To transmit command over I2C, I have been using SEND_I2C_COMMAND(). However, this code will always append the slave address before the 1 byte data. How do I just simply transmit 1 byte over the I2C w/o transmitting the slave address as well?

My apology if this has been answered before but I couldn't seem to find the answer on the forum. Thank you for your help!

Device:
kenneth.er
Offline
Last seen:4 years 7 months ago
加入:2015-09-03 15:31
I have managed to resolved

我已经设法解决了problem. During my initial I2C read, I have placed WAIT_WHILE_I2C_FIFO_IS_FULL() before i2c_send_address(). That messed up the entire reading process, which affected my I2C write operation as well since I performed an I2C read before my write. After I have removed that, my problem was all solved.

Topic locked