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