SLUS573 JULY 2003
www.ti.com
32
BatteryStatus( ) (0x16)
Description:
Returns the bq2083V1P2 status word (flags). Some of the BatteryStatus( ) flags
(REMAINING_CAPACITY_ALARM and REMAINING_TIME_ALARM) are calculated on the basis of either
current or power depending on the setting of the BatteryMode( ) CAPACITY_MODE bit. This is important because
use of the wrong calculation mode may result in an inaccurate alarm.
Purpose:
The BatteryStatus( ) function is used by the power-management system to get alarm and status bits,
as well as error codes from the bq2083V1P2. This is basically the same information broadcast to both the SMBus
host and the smart battery charger by the AlarmWarning( ) function except that the AlarmWarning( ) function sets
the error code bits all high before sending the data.
SMBus protocol:
Read word
Output:
Unsigned Integer-Status Register with Alarm Conditions Bit Mapped as follows:
ALARM BITS
0x8000
OVER_CHARGED_ALARM
0x4000
TERMINATE_CHARGE_ALARM
0x2000
Reserved
0x1000
OVER_TEMP_ALARM
0x0800
TERMINATE_DISCHARGE_ALARM
0x0400
Reserved
0x0200
REMAINING_CAPACITY_ALARM
0x0100
REMAINING_TIME_ALARM
STATUS BITS
0x0080
Initialized
0x0040
DISCHARGING
0x0020
FULLY_CHARGED
0x0010
FULLY_DISCHARGED
ERROR CODES
0x0007
Unknown Error
0x0006
BadSize
0x0005
Overflow/Underflow
0x0004
AccessDenied
0x0003
UnsupportedCommand
0x0002
ReservedCommand
0x0001
Busy
0x0000
OK
Alarm Bits
OVER_CHARGED_ALARM bit is set whenever the bq2083V1P2 detects that the battery is being charged
beyond the maximum overcharge limit. This bit is cleared when the bq2083V1P2 detects that the battery is no
longer being charged and there are 2 mAh of continuous discharge (i.e., the bq2083V1P2 detects discharge
activity or no activity above the digital filter).
TERMINATE_CHARGE_ALARM bit is set when the bq2083V1P2 detects that one or more of the battery
charging parameters are out of range (e.g., its voltage, current, or temperature is too high) or when the
bq2083V1P2 detects a primary charge termination. This bit is cleared when the parameter falls back into the
allowable range, the termination condition ceases, or when the bq2083V1P2 detects that the battery is no longer
being charged.
OVER_TEMP_ALARM bit is set when the bq2083V1P2 detects that the internal battery temperature is greater
than or equal to the
Max Temperature
threshold. This bit is cleared when the internal temperature falls back into
the acceptable range.