Tool/software:
Hello!
In my product I use bq40z50 with R5 firmware.
There was a need to determine the current state of the battery - “Charge”,
“Relax” or “Discharge” without reading via SMBus.
For this I decided to try using the bq40z50 GPIO.
For example, so that when “Relax” the GPIO is at a low level, and when
“Charge” or “Discharge” is high.
But here a problem arose: if to determine the “Charge” state you can use
the [DSG] bit of the “Battery Status” register
(LOW – charging is in progress, HIGH – no charge), then the “Relax” and “Discharge”
states are interconnected, and both are defined as Battery Status [DSG]: HIGH.
Please tell me, is it possible to determine from the bits of the bq40z50
registers that is the battery in the “Discharge” state?