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.

Starterware/BQ34Z110: I'm using BQ34Z110, Help me Please.

Part Number: BQ34Z110
Other Parts Discussed in Thread: BQSTUDIO, BQ34Z100-G1

Tool/software: Starterware

Hello, I'm Denis-Jeong.

I use Atmega128 and AVR Studio4.

I want to measure Voltage of Battery through BQ34Z110.

I consulted a website("e2e.ti.com/.../372162"). then I finished basic setting of BQ34Z110.

But I don't know method which measure voltage.

I send like data under 5step.

Step1.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----Receive_Data_Wait----I2C_End

I2C_Start----0x55(Device address)----0x09----I2C_End
I2C_Start----0x55(Device address)----Receive_Data_Wait----I2C_End

Step2.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----0x09----I2C_End

I2C_Start----0x55(Device address)----0x08----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0x09----Receive_Data_Wait----I2C_End

Step3.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----0x09----I2C_End

I2C_Start----0x55(Device address)----0x08----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0x09----Receive_Data_Wait----I2C_End

Step4.
I2C_Start----0x55(Device address)----0xaa----0x08----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End

I2C_Start----0x55(Device address)----0xaa----0x09----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End

Step5.
I2C_Start----0x55(Device address)----0xaa----0x08----I2C_End
I2C_Start----0x55(Device address)----0xaa----0x09----I2C_End

I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End

but I didn't get normality voltage data.

I want to get Battery Voltage.

when I get Battery Voltage through I2C, What should I do?

  • Reading the Voltage() is a simple Standard I2C command and you should just have to read 2 bytes of data from SBS command 08. The device supports auto-increment of the command. The data will be byte swapped and in HEX, so you will need to consider this when converting the data. Here is a document to help with communicating with the device. Also, the bq34z110 is NRND and we recommend upgrading the firmware to the bq34z100-G1. You can find links to the firmware and the bqStudio evaluation tool on the bq34z100-G1 product website. 

    Using I2C Communications.pdf

  • Thanks. I would needed it.
    I see it, and I could understand format which I send I2C data.
    I send example1 in document, but I received error data both LSB and MSB.
    I'll try to fix this error.
    when I don't fix this error, I write about question in TI forum.