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.

BQ76952: How to read and write big chunk of data

Part Number: BQ76952

Hello support team,

Could you please clarify following two things to me:

  • It is possible to read back data continuously over I2C when direct commands are issued. For example, if read back is initiated using Direct Command at 0x14 for reading Cell 1 Voltage, will bq76952 continue to increment the internal data pointer (which is typical of I2C slaves) and return the data for next contiguous values for Cell 2, Cell 3 and so on till I2C clock is provided?
  • Similarly, for the data memory section if 32 bytes are written to the transfer buffer after address for Calibration:Voltage:Cell 1 Gain (0x9180) is written to 0x3E/0x3F, will this also update values till Calibration:Voltage:Cell 16 Gain  in the same I2C write cycle?  

If the cases above are possible, it will really help in reading and writing data in bq76952 quickly.

  • Hi Manuj,

    Reading multiple voltages with the voltage command gives the sequential voltages.  

    Sub commands are returned in the buffer with limited size.

    See section 3 for command and sub-command description.

    For reading memory you can read multiple locations up to the buffer size, see section 13.1 Data Memory Access.

  • Hi WM5295,

    As I can understand from section 13.1, I have made the following assumptions regarding reading and writing data from Data Memory:

    • initiating a read at any location always returns 32 bytes (into the transfer buffer) of data starting from the memory location written in 0x3E/3F.
    • after initiating a 32 bytes write at any location, bq76952 will transfer the data from transfer buffer and automatically align it starting from the address written in 0x3E/3F  

    Please let me know if my assumptions are correct, as I don't have a way of verifying this; as our custom evaluation board is under fabrication.

  • Hi Manuj,

    Basically yes.  With the write the checksum and length must be written to 0x60/0x61.