Hello All,
We using the bq27542-g1 fuel gauge to monitor a single cell Li-Ion Battery. The fuel gauge communicates to MCU using I2C.
We are interested only to detect the battery is charging or discharging state . Hence I’m polling for the Flags ()status in the register address 0x0A & 0x0B via I2C for every 1 seconds and looking at DSG Bit (Bit 0) of the Low Byte. As per the SLUUB65A–May 2015–Revised May 2016, Pg: 78, the DSG bit is set when discharging is detected.
This design of polling the DSG Bit is inconsistent in detecting the Battery State and also not promptly reported. The Fuel Gauge takes more time to detect the charging/discharging state.
I receive the Flags () status as LSB - 0x3C and MSB - 0x00 when no charger in connected. Here DSG Bit is 0 which Indicates charging state when no charger in connected.
Please help me out on why I’m facing this issue & how to resolve it
Is there any other consistent way to detect the Battery Charging/Discharging state?