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.

bq34z100-g1: 1-byte command for SOC?

Part Number: BQ34Z100-G1

Hello,

Section 7.3.1.1 of the bq34z100-g1 datasheet states that the chip "uses a series of 2-byte standard commands" for communication.

The state of charge command is listed a 1-byte (0x02).

To read the state to charge do I simply send the 1-byte command and then read a 1-byte answer?

or is something else needed?

Thank you,

Roger

  • Hi Roger,
    Yes, you can just read one byte starting at 0x02 to get the SOC. If you did read two bytes then the second byte would actually be MaxError( ) which you could ignore.
    You could actually just do a sequential read starting at 0x02 and read 18 bytes to get all the data up through FlagsB( ) and then break up each register's data in your FW.
    To also capture the CONTROL_STATUS register you could start with a write of 0x0000 starting at register 0x00, then a sequential read of 20 bytes starting at 0x00.
    Note that you don't need to read any more frequently than once per second since that is how often the registers are updated.
  • Thank you. This resolves my issue. The extra detail is also very helpful.