SLUUBD4A April 2016 – November 2022 BQ27220
This read-word function returns the contents of the gas-gauge status register, depicting the current Battery status.
Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | |
---|---|---|---|---|---|---|---|---|
High Byte | FD | OCVCOMP | OCVFAIL | SLEEP | OTC | OTD | FC | CHGINH |
Low Byte | RSVD | TCA | OCVGD | AUTH_GD | BATTPRES | TDA | SYSDWN | DSG |
High Byte | |
FD = | Full-discharge is detected. This flag is set and cleared based on the selected SOC Flag Config B options. |
OCVCOMP = | An OCV measurement update is complete. True when set. |
OCVFAI L= | Status bit indicating that the OCV reading failed due to current. This bit can only be set with the presence of a battery after receiving OCV_CMD() . True when set. |
SLEEP = | Device is operating in SLEEP mode when set. This will clear temporarily during AD measurements in SLEEP mode. |
OTC = | Overtemperature in charge condition is detected. If the Operation Config B [INT_OT] bit = 1, SOC_INT pin toggles once [OTC] bit is set. |
OTD = | Overtemperature in discharge condition is detected. True when set. If the Operation Config B [INT_OT] bit = 1, SOC_INT pin toggles once [OTD] bit is set. |
FC = | Full-charged is detected. This flag is set and cleared based on the selected SOC Flag Config A and SOC Flag Config B options. |
CHGINH = | Charge inhibit: If set, indicates that charging should not begin because Temperature() is outside the range [Charge Inhibit Temp Low, Charge Inhibit Temp High]. True when set. |
Low Byte | |
TCA = | Terminate Charge Alarm. This flag is set and cleared based on the selected SOC Flag Config A options. |
OCVGD = | Good OCV measurement taken. True when set. |
AUTH_GD = | Detect inserted battery. True when set. |
BATTPRES = | Battery Present detected. True when set. |
TDA = | Terminate Discharge Alarm . This flag is set and cleared based on the selected SOC Flag Config A options. |
SYSDWN = | System down bit indicating the system should shut down. True when set. SOC_INT pin toggles once if set. |
DSG = | The device is in DISCHARGE mode when set CHARGING or RELAXATION mode when clear. |