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.

BQ79731-Q1: Source code in "bq79731_sample_code-BQ79731_Branch_031822" inconsistent with info in "BQ79731-Q1: SLUSEO5C – DECEMBER 2022 – REVISED OCTOBER 2024"

Part Number: BQ79731-Q1

Tool/software:

Hello,

Per BQ79731 reference manual, p.45:

However, in the sample code as referenced above, the function "ReadCoulumbCount79731", has the logic to derive coulomb count as:

printf("value of coulomb count79731 %f\n", (cc_acc_val_u32 * VLSB_CS * TCS_REFRESH * cc_cnt_u8) / (rshunt_u8));

One can see that the additional term of "cc_cnt_u8" (real-time value of the register CC_CNT) being multiplied. Which expression for deriving the coulomb count is correct?

Please advise. Thank you.

John