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: Accumulated time in DAStatus6 overflows after 32767

Part Number: BQ76952

I am using dspic33ck micro-controller with BQ76952 and I am reading the bits[8:11] from DAStatus6 register to get the running time of the AFE. I am converting the 4 8-bit numbers to one 32-bit number. (bit-11 << 24) | (bit-10 << 16) | (bit-9 << 8) | (bit-8 & 0xFF). But after I get the bits[8:11] =  FF 7F 00 00 (32767 in decimal), I am getting the next value as bits[8:11] = 00 80 FF FF, which is overflowing into the negative range. 
Could I get any help regarding this ?

  • Hi Syed,

    The Accumulated Charge does have a maximum value before it overflows. Your microcontroller should send the RESET_PASSQ() command after it reads the Accumulated Charge and Accumulated Time. If it is overflowing too quickly (very high current application), then you can change the userA setting in the DA Configuration register to 10mA or 100mA units - this will give you 10x or 100x the range.

    Best regards,

    Matt