This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ34110: BQ34110 I2C communication example

Part Number: BQ34110
Other Parts Discussed in Thread: BQ34Z100, BQSTUDIO

Hi ALL:

  now  I want to use the BQ34110  I2C communication  with  MCU,who can give me  some the bq34110 I2C communication examples?

  • Hi Darren,

    I do not have code examples for a microcontroller, but I can point you to a few references that can help you get started. First there are two app notes on gauging communication:
    www.ti.com/.../slua801 - App note on gauging communication
    www.ti.com/.../slua790 - App note on using I2C with the bq34110

    For code examples, it might be good to search github.com to see what others have developed. At the below link, someone shared their code for communicating with the bq34z100 (also an I2C gauge):
    github.com/.../bq34z100

    Best regards,
    Matt
  • Hi  Matt:

    now I  write the  I2C communication with the BQ34110,when I read the BQ34110 Votage and the BQ34110 give the iic response ,but the bytes read from the BQ34110 is 0x7f 0xff,so the data read  from bq34110 is not correct,the iic read sequence is below:

  • Hi Darren,

    Your image is not showing. Have you read through this app note below already? It goes through the specific example (reading the voltage register). If you are having trouble with the I2C read, I recommend connecting an oscilloscope or logic analyzer to the I2C pins to observe the waveforms with bqStudio and the EVM. Then you can compare with the I2C waveforms you are generating with your microcontroller. Otherwise, this may be very difficult to debug through the E2E forum.

    www.ti.com/.../slua790 - App note on using I2C with the bq34110

    Regards,
    Matt
  • Hi Matt:
    I can read the BQ34110 some informations by i2c for example RSOC , battery voltage and so on ,but I can't read the BQ34110 dataflash ,I should read the TRM.