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.

BQ2050h NACH/NACL initialisation

Hello,

I have an issue with NACH/NACL initialisation during the startup of a microcontroller program.

Essentially the software reads the NACH and NACL registers and writes these values to its EEPROM. On power up/software reset, the EEPROM is read and this is written to NACH/NACL registers ready for further battery charging/discharing. Let me make it clear that the gas gauge is remote to the battery and powered seperately as well.

The issue I am observing is that initially the first number of NACH/NACL reads yield the expected values as written from the EEPROM, but after a number of  repeat reads the registers both return to zero. Hence the correct battery capacity is lost. This has been observed using an oscilloscope capturing the first message replies. I am puzzled with this issue and have inserted a catch in the software that rewrites the EEPROM values if the software is restarted with the battery not being immediately charged or discharged, using the INTSS register. This solution appears to work, but doesn't deal with the underlying issue of why the NACH/NACL returns to zero or the situation when the software is restarted mid charge/discharge.

Can you please assist and feel free to ask if further details are required.

 

 

  • Hello Chakras,

    I don't know why I missed seeing this post a long time ago.  Sorry for the delay.

    If the battery is disconnected from the gauge while the gauge is still powered, or the gauge is powered up before the battery is connected, the gauge is going to detect the EDVF (zero capacity) condition by measuring a low voltage on the SB pin and will set the EDV1 and EDVF flags in FLGS1.  These flags will force the gauge to report zero capacity.  You might try to write FLGS1 to zero before adjusting NAC and see if that clears your problem.

    Bill