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.

TMS570LS0432: I2C communication not working BQ34Z100EVM

Part Number: TMS570LS0432
Other Parts Discussed in Thread: BQ34Z100EVM, BQ34Z100, HALCOGEN

Hi,

Device address: 0x55 (BQ34Z100EVM)

Register address inside  the device: 0x02 (SOC %)

I want to read the Data of Register address: 0x02 (SOC %) on TMS570 launchpad.

Can anyone help me with the code?

thanks

Ritul Shah

  • Hello Ritul,

    The BQ34Z100 uses a series of 2-byte standard commands to enable host reading and writing of battery information. Each standard command has an associated command-code pair (for example, 0x00/0x01 is for control). Because each command consists of two bytes of data, two consecutive I2C transmissions must be executed both to initiate the command function and to read or write the corresponding two bytes of data.

    You can use the I2C driver generated through the HALCoGen to send 2-byte command to BQ34 and read 2-byte data back from BQ34.

    what is the register (0x02) for? Do you mean StateOfCharge() command?