measurement of available capac
ity in Lithium Ion rechargeable
batteries
Designed for battery pack inte
➤
gration
120µA typical operating
-
current
Small size enables imple-
-
mentations in as little as
square inch of PCB
Integrate within a system or as a
➤
stand-alone device
Display capacity via single-
-
wire serial communication
port or direct drive of LEDs
➤ Measurements compensated for
current and temperature
➤ Self-discharge compensation us-
ing internal temperature sensor
➤ 16-pin narrow SOIC
bq2050
Lithium Ion Power Gauge™ IC
General Description
The bq2050 Lithium Ion Power
Gauge™ IC is intended for battery-
pack or in-system installation to
maintain an accurate record of
available battery capacity. The IC
monitors a voltage drop across a
sense resistor connected in series
between the negative battery termi
nal and ground to determine
charge and discharge activity of
the battery. Compensations for bat
1
tery temperature and rate of charge
or discharge are applied to the
2
charge, discharge, and self-discharge
calculations to provide available ca
pacity information across a wide
range of operating conditions. Bat
tery capacity is automatically recali
brated, or “learned,” in the course of
a discharge cycle from full to empty.
supports a simple single-line bidi
rectional serial link to an external
processor (common ground). The
bq2050 outputs battery information
in response to external commands
over the serial link.
The bq2050 may operate directly
from one cell (V
REF output and an external transis
tor, a simple, inexpensive regulator
> 3V). With the
BAT
can be built for systems with more
than one series cell.
Internal registers include available
capacity, temperature, scaled avail
able energy, battery ID, battery
status, and programming pin set
tings. To support subassembly test
ing, the outputs may also be con
trolled. The external processor may
also overwrite some of the bq2050
power gauge data registers.
Nominal available capacity may be
directly indicated using a fivesegment LED display. These segments are used to graphically indicate available capacity. The bq2050
-
-
-
-
-
-
Pin ConnectionsPin Names
LCOMLED common output
SEG
/PROG1LED segment 1/
1
/PROG2LED segment 2/
SEG
2
/PROG3LED segment 3/
SEG
3
/PROG4LED segment 4/
SEG
4
/PROG5LED segment 5/
SEG
5
PROG
6
9/96 C
LCOM
SEG1/PROG
SEG2/PROG
SEG3/PROG
SEG4/PROG
SEG5/PROG
PROG
V
1
2
1
3
2
4
3
5
4
6
5
7
6
8
SS
16-Pin Narrow SOIC
16
15
14
13
12
11
10
9
PN205001.eps
V
CC
REF
N/C
DQ
RBI
SB
DISP
SR
program 1 input
program 2 input
program 3 input
program 4 input
program 5 input
Program 6 input
1
REFVoltage reference output
N/CNo connect
DQSerial communications
input/output
RBIRegister backup input
SBBattery sense input
DISP
Display control input
SRSense resistor input
V
CC
V
SS
3.0–6.5V
System ground
bq2050
Pin Descriptions
LCOM
SEG
SEG
PROG
PROG
PROG
PROG
PROG
PROG
N/C
LED common output
Open-drain output switches V
current for the LEDs. The switch is off dur
ing initialization to allow reading of the soft
pull-up or pull-down program resistors.
LCOM is also high impedance when the dis
play is off.
LED display segment outputs (dual func
–
1
tion with PROG
5
Each output may activate an LED to sink
the current sourced from LCOM.
Programmed full count selection inputs
–
1
(dual function with SEG
2
These three-level input pins define the pro
grammed full count (PFC) thresholds de
scribed in Table 2.
Power gauge rate selection inputs (dual
–
3
function with SEG
4
These three-level input pins define the scale
factor described in Table 2.
Self-discharge rate selection (dual func-
5
tion with SEG
This three-level input pin defines the
selfdischarge and battery compensation factors as shown in Table 1.
Capacity initialization selection
6
This three-level pin defines the battery state
of charge at reset as shown in Table 1.
No connect
–PROG6)
1
)
5
–SEG4)
3
–SEG2)
1
to source
CC
SR
-
-
DISP
Sense resistor input
The voltage drop (V
sistor R
is monitored and integrated over
S
) across the sense re
SR
time to interpret charge and discharge activ
ity. The SR input is tied between the nega
tive terminal of the battery and the sense re
sistor. V
SR<VSS
indicates discharge, and V
>VSSindicates charge. The effective voltage
drop, V
V
OS
, as seen by the bq2050 is VSR+
SRO
.
Display control input
high disables the LED display. DISP
DISP
-
-
-
-
SR
tied to VCCallows PROGXto connect directly
to V
or VSSinstead of through a pull-up or
CC
pull-down resistor. DISP
floating allows the
LED display to be active during charge.
DISP
-
-
SB
low activates the display. See Table 1.
Secondary battery input
This input monitors the battery cell voltage
potential through a high-impedance resistive divider network for end-of-discharge
voltage (EDV) thresholds, and battery removed.
RBI
Register backup input
This pin is used to provide backup potential to
the bq2050 registers during periods when
V
≤ 3V. A storage capacitor or a battery
CC
can be connected to RBI.
DQ
Serial I/O pin
This is an open-drain bidirectional pin.
REF
Voltage reference output for regulator
REF provides a voltage reference output for
an optional micro-regulator.
V
CC
V
SS
Supply voltage input
Ground
2
bq2050
g
Functional Description
General Operation
The bq2050 determines battery capacity by monitor
ing the amount of current input to or removed from a
rechargeable battery. The bq2050 measures dis
charge and charge currents, measures battery volt
age, estimates self-discharge, monitors the battery
for low battery voltage thresholds, and compensates
for temperature and charge/discharge rates. The cur
rent measurement is made by monitoring the voltage
across a small-value series sense resistor between the
negative battery terminal and ground. The estimate of
scaled available energy is made using the remaining
average battery voltage during the discharge cycle
and the remaining nominal available charge. The
bq2050
Power Gauge IC
LCOM
SEG1/PROG
SEG2/PROG
SEG3/PROG
SEG4/PROG
SEG5/PROG
PROG
6
PSTAT
REF
V
CC
SB
1
2
DISP
3
4
SR
5
V
SS
RBI
DQ
scaled available energy measurement is corrected for
the environmental and operating conditions.
Figure 1 shows a typical battery pack application of the
bq2050 using the LED display capability as a chargestate indicator. The bq2050 is configured to display ca
pacity in relative display mode. The relative display
mode uses the last measured discharge capacity of the
battery as the battery “full” reference. A push-button
display feature is available for momentarily enabling
the LED display.
The bq2050 monitors the charge and discharge currents
as a voltage across a sense resistor (see R
in Figure 1).
S
A filter between the negative battery terminal and the
SR pin may be required if the rate of change of the bat
tery current is too great.
R
1
1M
Q1
ZVNL110A
C1
0.1 F
V
CC
V
CC
C2
RB
RB
1
2
R
S
-
-
Indicates optional.
Directly connect to VCC across 1 cell (V
Otherwise, R1, C1, and Q1 are needed for regulation of > 1 cell.
Programming resistors (6 max.) and ESD-protection diodes are not shown.
R-C on SR may be required, application-specific.
A series Zener may be used to limit discharge current at low voltages
In conjunction with monitoring VSRfor charge/discharge
currents, the bq2050 monitors the battery potential
through the SB pin. The voltage is determined through
a resistor-divider network per the following equation:
RB1
RB2
2N=−1
where N is the number of cells, RB1 is connected to the
positive battery terminal, and RB2 is connected to the
negative battery terminal. The single-cell battery volt
age is monitored for the end-of-discharge voltage (EDV).
EDV threshold levels are used to determine when the
battery has reached an “empty” state.
Two EDV thresholds for the bq2050 are programmable
with the default values fixed at:
EDV1 (early warning) = 1.52V
EDVF (empty) = 1.47V
If V
is below either of the two EDV thresholds, the as
SB
sociated flag is latched and remains latched, independent of V
, until the next valid charge. The VSBvalue is
SB
also available over the serial port.
During discharge and charge, the bq2050 monitors V
SR
for various thresholds used to compensate the charge
and discharge rates. Refer to the count compensation
section for details. EDV monitoring is disabled if the
discharge rate is greater than 2C (typical) and resumes
1
second after the rate falls below 2C.
2
RBI Input
The RBI input pin is intended to be used with a storage ca
pacitor or external supply to provide backup potential to the
internal bq2050 registers when V
drops below 3.0V. V
CC
CC
is output on RBI when VCCis above 3.0V. A diode is re
quired to isolate the external supply.
Reset
The bq2050 can be reset either by removing VCCand
grounding the RBI pin for 15 seconds or by writing 0x80
to register 0x39.
Temperature
The bq2050 internally determines the temperature in
10°C steps centered from approximately -35°C to +85°C.
The temperature steps are used to adapt charge and dis
charge rate compensations, self-discharge counting, and
available charge display translation. The temperature
range is available over the serial port in 10°C incre
ments as shown in the following table:
TMP (hex)Temperature Range
0x< -30°C
1x-30°C to -20°C
2x-20°C to -10°C
3x-10°C to 0°C
4x0°C to 10°C
5x10°C to 20°C
6x20°C to 30°C
7x30°C to 40°C
8x40°C to 50°C
9x50°C to 60°C
Ax60°C to 70°C
Bx70°C to 80°C
Cx> 80°C
Layout Considerations
The bq2050 measures the voltage differential between
-
the SR and V
pin) is greatly affected by PC board layout. For optimal
results, the PC board layout should follow the strict rule
-
of a single-point ground return. Sharing high-current
ground with small signal ground causes undesirable
noise on the small signal nodes. Additionally:
n
The capacitors (C1 and C2) should be placed as
close as possible to the V
respectively, and their paths to V
short as possible. A high-quality ceramic capacitor
of 0.1µf is recommended for V
n
The sense resistor capacitor should be placed as close
as possible to the SR pin.
n
The sense resistor (RS) should be as close as possible to
-
the bq2050.
-
pins. VOS(the offset voltage at the SR
SS
and SB pins,
CC
CC
SS
.
should be as
4
bq2050
Gas Gauge Operation
The operational overview diagram in Figure 2 illustrates
the operation of the bq2050. The bq2050 accumulates a
measure of charge and discharge currents, as well as an
estimation of self-discharge. Charge and discharge cur
rents are temperature and rate compensated, whereas
self-discharge is only temperature compensated.
The main counter, Nominal Available Capacity (NAC),
represents the available battery capacity at any given
time. Battery charging increments the NAC register,
while battery discharging and self-discharge decrement
the NAC register and increment the DCR (Discharge
Count Register).
The Discharge Count Register (DCR) is used to update
the Last Measured Discharge (LMD) register only if a
complete battery discharge from full to empty occurs
without any partial battery charges. Therefore, the
bq2050 adapts its capacity determination based on the
actual conditions of discharge.
Inputs
Charge
Current
Rate and
Rate and
Temperature
Temperature
Compensation
Compensation
The battery's initial capacity is equal to the Pro
grammed Full Count (PFC) shown in Table 2. Until
LMD is updated, NAC counts up to but not beyond this
threshold during subsequent charges. This approach al
lows the gas gauge to be charger-independent and com
patible with any type of charge regime.
-
1.Last Measured Discharge (LMD) or learned
battery capacity:
LMD is the last measured discharge capacity of the
battery. On initialization (application of V
tery replacement), LMD = PFC. During subsequent
discharges, the LMD is updated with the latest
measured capacity in the Discharge Count Register
(DCR) representing a discharge from full to below
EDV1. A qualified discharge is necessary for a capac
ity transfer from the DCR to the LMD register. The
LMD also serves as the 100% reference threshold
used by the relative display mode.
Discharge
Current
Rate and
Temperature
Compensation
Self-Discharge
Timer
Temperature
Compensation
CC
or bat
-
-
-
-
-
Main Counters
and Capacity
Reference (LMD)
Outputs
--
Nominal
+
Available
Charge
(NAC)
Temperature
Translation
Compensated
Available Charge
LED Display, etc.
<
Last
Measured
Discharged
(LMD)
Serial
Port
Figure 2. Operational Overview
5
+
Discharge
Count
Qualified
Transfer
Temperature Step,
Other Data
Register
(DCR)
FG205002.eps
+
bq2050
2.Programmed Full Count (PFC) or initial bat
tery capacity:
The initial LMD and gas gauge rate values are pro
grammed by using PROG
–PROG4. The bq2050 is
1
configured for a given application by selecting a
PFC value from Table 2. The correct PFC may be
determined by multiplying the rated battery capac
ity in mAh by the sense resistor value:
Battery capacity (mAh)*sense resistor (Ω) =
PFC (mVh)
Selecting a PFC slightly less than the rated capac
ity provides a conservative capacity reference until
the bq2050 “learns” a new capacity reference.
-
Example: Selecting a PFC Value
Given:
Sense resistor = 0.05
Ω
Number of cells = 2
Capacity = 1000mAh, Li-Ion battery, coke-anode
-
Current range = 50mA to 1A
Relative display mode
Serial port only
Self-discharge =
Voltage drop over sense resistor = 2.5mV to 50mV
NAC
per day @ 25°C
512
Nominal discharge voltage = 3.6V
Therefore:
1000mAh*0.05Ω= 50mVh
Table 1. bq2050 Programming
Pin
Connection
HTable 4/DisabledPFCLEDs disabled
ZTable 4/
LTable 3/
Note:PROG5and PROG6states are independent.
PROG5Compensation/
Self-Discharge
NAC
512
NAC
512
PROG
NAC on Reset
6
Display State
0LEDs on when charging
0LEDs on for 4 sec.
DISP
Table 2. bq2050 Programmed Full Count mVh Selections
Pro-
grammed
PROG
Full
x
Count
12PROG3 = H PROG3 = Z PROG3 = L PROG3 = H PROG3 = Z PROG3 = L
---
(PFC)
SCALE =
1/80
HH4915261430715476.838.419.2mVh
HZ4505656328214170.435.217.6mVh
HL4096051225612864.032.016.0mVh
ZH3686446123011557.628.814.4mVh
ZZ3379242221110653.026.413.2mVh
ZL3072038419296.048.024.012.0mVh
LH2764834617386.443.221.610.8mVh
LZ2560032016080.040.020.010.0mVh
LL2252828214170.435.217.68.8mVh
VSR equivalent to 2
counts/sec. (nom.)
904522.511.255.62.8mV
PROG
= LPROG4= Z
4
SCALE =
1/160
SCALE =
1/320
SCALE =
1/640
SCALE =
1/1280
SCALE =
1/2560
Units
mVh/
count
6
bq2050
Select:
PFC = 30720 counts or 48mVh
= float
PROG
1
PROG
= low
2
PROG
= high
3
PROG
= float
4
PROG
= float
5
PROG
= float
6
The initial full battery capacity is 48mVh (960mAh)
until the bq2050 “learns” a new capacity with a
qualified discharge from full to EDV1.
3.Nominal Available Capacity (NAC):
NAC counts up during charge to a maximum value
of LMD and down during discharge and self-dis
charge to 0. NAC is reset to 0 on initialization and on
the first valid charge following discharge to EDV1. To
prevent overstatement of charge during periods of
overcharge, NAC stops incrementing when NAC =
LMD.
4.Discharge Count Register (DCR):
The DCR counts up during discharge independent of
NAC and could continue increasing after NAC has
decremented to 0. Prior to NAC = 0 (empty battery),
both discharge and self-discharge increment the
DCR. After NAC = 0, only discharge increments the
DCR. The DCR resets to 0 when NAC = LMD. The
DCR does not roll over but stops counting when it
reaches FFFFh.
The DCR value becomes the new LMD value on the
first charge after a valid discharge to V
EDV1
No valid charge initiations (charges greater than
256 NAC counts, where V
SRO>VSRQ
) occurred dur
ing the period between NAC = LMD and EDV1 de
tected.
The self-discharge count is not more than 4096
counts (8% to 18% of PFC, specific percentage
threshold determined by PFC).
The temperature is≥0°C when the EDV1 level is
reached during discharge.
The valid discharge flag (VDQ) indicates whether
the present discharge is valid for LMD update.
5.Scaled Available Energy (SAE):
SAE is useful in determining the available energy
within the battery, and may provide a more useful
capacity reference in battery chemistries with
sloped voltage profiles during discharge. SAE may
be converted to a mWh value using the following
formula:
E(mWh) =
(* *SAEHSAEL)256 +
24.)∗∗+
SCALE (RR
RR
B1B2
∗
SB2
where RB1,RB2and RSare resistor values in ohms.
SCALE is the selected scale from Table 2. SAEH
and SAEL are digital values read via DQ.
6. Compensated Available Capacity (CAC)
CAC counts similar to NAC, but contains the avail
able capacity compensated for discharge rate and
temperature.
Charge Counting
-
Charge activity is detected based on a positive voltage
on the V
bq2050 increments NAC at a rate proportional to V
if enabled, activates an LED display. Charge actions in
input. If charge activity is detected, the
SR
and,
SR
-
crement the NAC after compensation for temperature.
The bq2050 determines charge activity sustained at a
continuous rate equivalent to V
SRO>VSRQ
. A valid
charge equates to sustained charge activity greater
than 256 NAC counts. Once a valid charge is detected,
charge counting continues until V
below V
SRQ
.V
is 210µV, and is described in the
SRQ
SRO(VSR+VOS
) falls
Digital Magnitude Filter section.
Discharge Counting
Discharge activity is detected based on a negative voltage
on the V
if:
cause the NAC register to decrement and the DCR to
increment. V
input. All discharge counts where V
SR
is -200µV, and is described in the
SRD
SRO<VSRD
Digital Magnitude Filter section.
-
Self-Discharge Estimation
-
The bq2050 continuously decrements NAC and increments
DCR for self-discharge based on time and temperature. The
self-discharge count rate is programmed to be a nominal
1
NAC per day or disabled. This is the rate for a bat
512
*
tery whose temperature is between 20°–30°C. The NAC
-
register cannot be decremented below 0.
Count Compensations
Discharge Compensation
Corrections for the rate of discharge, temperature, and anode
type are made by adjusting an internal compensation factor.
This factor is based on the measured rate of discharge of the
battery. Tables 3A and 3B outline the correction factor typi
cally used for graphite anode Li-Ion batteries, and Tables 4A
and 4B outline the factors typically used for coke anode
Li-Ion batteries. The compensation factor is applied to
CAC and is based on discharge rate and temperature.
-
7
bq2050
Table 3A. Graphite Anode
Discharge
Approximate
Discharge Rate
0.5C1.00100%
<
0.5C1.0595%
≥
Compensation
FactorEfficiency
Table 3B. Graphite Anode
Temperature
Compensation
Temperature
10°C1.00100%
≥
FactorEfficiency
0°C to 10°C1.1090%
-10°C to 0°C1.3574%
-10°C2.5040%
≤
Table 4A. Coke Anode
Discharge
Approximate
Discharge Rate
0.5C1.00100%
<
0.5C1.1586%
≥
Compensation
FactorEfficiency
Charge Compensation
The bq2050 applies the following temperature compen
sation to NAC during charge:
Temperature
Compensation
Temperature
10°C0.9595%
<
10°C1.00100%
≥
FactorEfficiency
This compensation applies to both types of Li-Ion cells.
Self-Discharge Compensation
The self-discharge compensation is programmed for a
nominal rate of
battery within the 20°C–30°C temperature range. This
rate varies across 8 ranges from < 10°C to > 70°C, chang
ing with each higher temperature (approximately 10°C).
See Table 5 below:
1
NAC per day. This is the rate for a
512
*
Table 5. Self-Discharge Compensation
Typical Rate
Temperature Range
< 10°C
10–20°C
20–30°C
30–40°C
40–50°C
50–60°C
60–70°C
> 70°C
PROG
5
NAC
NAC
NAC
NAC
NAC
NAC
NAC
NAC
= Z or L
2048
1024
512
256
128
64
32
16
-
-
Table 4B. Coke Anode
Temperature
Compensation
Temperature
10°C1.00100%
≥
0°C to 10°C1.2580%
-10°C to 0°C2.0050%
-10°C8.0012%
≤
FactorEfficiency
Self-discharge may be disabled by connecting PROG
5
Digital Magnitude Filter
The bq2050 has a digital filter to eliminate charge and dis
charge counting below a set threshold. The bq2050 setting
is 200µV for V
8
and 210µV for V
SRD
SRQ
.
=H.
-
Table 6. bq2050 Current-Sensing Errors
SymbolParameterTypicalMaximumUnitsNotes
INL
INR
Integrated non-linearity
error
Integrated nonrepeatability error
2
±
1
±
4
±
2
±
Add 0.1% per °C above or below 25°C
%
and 1% per volt above or below 4.25V.
Measurement repeatability given
%
similar operating conditions.
bq2050
Error Summary
Capacity Inaccurate
The LMD is susceptible to error on initialization or if no
updates occur. On initialization, the LMD value in
cludes the error between the programmed full capacity
and the actual capacity. This error is present until a
valid discharge occurs and LMD is updated (see the
DCR description on page 7). The other cause of LMD er
ror is battery wear-out. As the battery ages, the meas
ured capacity must be adjusted to account for changes in
actual battery capacity.
A Capacity Inaccurate counter (CPI) is maintained and
incremented each time a valid charge occurs (qualified
by NAC; see the CPI register description) and is reset
whenever LMD is updated from the DCR. The counter
does not wrap around but stops counting at 255. The capacity inaccurate flag (CI) is set if LMD has not been updated following 64 valid charges.
Current-Sensing Error
Table 5 illustrates the current-sensing error as a func
tion of V
charge counts to the NAC register when V
V
SRQ
. A digital filter eliminates charge and dis
SRO
and V
SRD
.
is between
SRO
Communicating With the bq2050
The bq2050 includes a simple single-pin (DQ plus re
turn) serial data interface. A host processor uses the in
terface to access various bq2050 registers. Battery char
acteristics may be easily monitored by adding a single
contact to the battery pack. The open-drain DQ pin on
the bq2050 should be pulled up by the host system, or may
be left floating if the serial interface is not used.
The interface uses a command-based protocol, where the
host processor sends a command byte to the bq2050.
The command directs the bq2050 to either store the next
eight bits of data received to a register specified by the
command byte or output the eight bits of data specified
by the command byte.
The communication protocol is asynchronous return-toone. Command and data bytes consist of a stream of
eight bits that have a maximum transmission rate of
333 bits/sec. The least-significant bit of a command or
data byte is transmitted first. The protocol is simple
enough that it can be implemented by most host proces
sors using either polled or interrupt processing. Data
-
input from the bq2050 may be sampled using the pulsewidth capture timers available on some microcontrol
lers.
If a communication error occurs, e.g. t
bq2050 should be sent a BREAK to reinitiate the serial
interface. A BREAK is detected when the DQ pin is
driven to a logic-low state for a time, t
> 6ms, the
CYCB
or greater. The
B
DQ pin should then be returned to its normal readyhigh logic state for a time, t
. The bq2050 is now ready
BR
to receive a command from the host processor.
The return-to-one data bit frame consists of three distinct sections. The first section is used to start the
transmission by either the host or the bq2050 taking the
DQ pin to a logic-low state for a period, t
STRH,B
next section is the actual data transmission, where the
data should be valid by a period, t
, after the negative
DSU
edge used to start communication. The data should be
-
held for a period, t
-
sample the data bit.
, to allow the host or bq2050 to
DV
The final section is used to stop the transmission by re
turning the DQ pin to a logic-high state by at least a pe
riod, t
, after the negative edge used to start commu
SSU
nication. The final logic-high state should be held until
a period, t
mission was stopped properly. The timings for data and
break communication are given in the serial communi
cation timing specification and illustration sections.
, to allow time to ensure that the bit trans
SV
Communication with the bq2050 is always performed with
the least-significant bit being transmitted first. Figure 3
shows an example of a communication sequence to read
the bq2050 NAC register.
-
-
. The
-
-
-
-
-
9
bq2050
Written by Host to bq2050
CMDR = 03h
LSBMSBLSBMSB
Break0 0 0 0 0 01 0 1 0 0 1
1110
DQ
Figure 3. Typical Communication With the bq2050
bq2050 Registers
The bq2050 command and status registers are listed in
Table 7 and described below.
Command Register (CMDR)
The write-only CMDR register is accessed when eight
valid command bits have been received by the bq2050.
The CMDR register contains two fields:
W/R bit
n
n
Command address
The W/R
the received command is for a read or a write function.
The W/R
Where W/R is:
The lower seven-bit field of CMDR contains the address
portion of the register to be accessed. Attempts to write
to invalid addresses are ignored.
bit of the command register is used to select whether
values are:
CMDR Bits
7654 3 2 1 0
W/R
--- - - - -
0The bq2050 outputs the requested register con
-
tents specified by the address portion of CMDR.
1The following eight bits should be written
to the register specified by the address por
-
tion of CMDR.
Received by Host to bq2050
NAC = 65h
TD205002.eps
Primary Status Flags Register (FLGS1)
The read-only FLGS1 register (address=01h) contains
the primary bq2050 flags.
The charge status flag (CHGS) is asserted when a
valid charge rate is detected. Charge rate is deemed
valid when V
SRO>VSRQ
discharge activity clears CHGS.
The CHGS values are:
76543 2 1 0
CHGS--- - - - -
Where CHGS is:
0Either discharge activity detected or V
V
SRQ
1V
SRO>VSRQ
The battery replaced flag (BRP) is asserted whenever
the bq2050 is reset either by application of V
serial port command. BRP is reset when either a valid
charge action increments NAC to be equal to LMD, or a
valid charge action is detected after the EDV1 flag is as
serted. BRP = 1 signifies that the device has been reset.
The capacity inaccurate flag (CI) is used to warn the
user that the battery has been charged a substantial
number of times since LMD has been updated. The CI
flag is asserted on the 64th charge after the last LMD
update or when the bq2050 is reset. The flag is cleared
after an LMD update.
The CI values are:
FLGS1 Bits
76543 2 1 0
---CI- - - -
Where CI is:
0When LMD is updated with a valid full dis
-
charge
1After the 64th valid charge action with no
LMD updates or the bq2050 is reset
The valid discharge flag (VDQ) is asserted when the
bq2050 is discharged from NAC=LMD. The flag remains
set until either LMD is updated or one of three actions
that can clear VDQ occurs:
The self-discharge count register (SDCR) has
n
exceeded the maximum acceptable value (4096
counts) for an LMD update.
n
A valid charge action sustained at V
SRO
> V
SRQ
for at
least 256 NAC counts.
n
The EDV1 flag was set at a temperature below 0°C
The VDQ values are:
FLGS1 Bits
76543 2 1 0
----VDQ---
Where VDQ is:
0SDCR≥4096, subsequent valid charge ac
tion detected, or EDV1 is asserted with the
temperature less than 0°C
1On first discharge after NAC = LMD
The first end-of-discharge warning flag (EDV1)
warns the user that the battery is almost empty. The
first segment pin, SEG
, is modulated at a 4Hz rate if
1
the display is enabled once EDV1 is asserted, which
should warn the user that loss of battery power is immi
nent. The EDV1 flag is latched until a valid charge has
been detected. The EDV1 threshold is externally con
trolled via the VTS register (see Voltage Threshold Reg
ister on this page).
The EDV1 values are:
FLGS1 Bits
7654 3 2 1 0
------EDV1-
Where EDV1 is:
0Valid charge action detected, V
SB
V
≥
TS
1VSB<VTSproviding that the discharge rate is
<2C
The final end-of-discharge warning flag (EDVF) flag
is used to warn that battery power is at a failure condi
tion. All segment drivers are turned off. The EDVF flag
is latched until a valid charge has been detected. The
EDVF threshold is set 50mV below the EDV1 threshold.
The EDVF values are:
FLGS1 Bits
7654 3 2 1 0
---- - - -EDVF
Where EDVF is:
0Valid charge action detected, V
SB
-
(V
≥
TS
50mV)
1V
< (VTS- 50mV) providing the discharge
SB
rate is < 2C
Temperature Register (TMP)
The read-only TMP register (address=02h) contains the
battery temperature.
TMP Temperature Bits
76543210
TMP4 TMP3 TMP2 TMP1----
The bq2050 contains an internal temperature sensor.
The temperature is used to set charge and discharge ef
ficiency factors as well as to adjust the self-discharge co
efficient. The temperature register contents may be
translated as shown in Table 7.
The bq2050 calculates the gas gauge bits, GG3-GG0 as a
function of CACH and LMD. The results of the calculation
give available capacity in
-
-
1
increments from 0 to
16
-
-
-
15
.
16
12
bq2050
Table 7. Temperature Register
TMP3TMP2TMP1TMP0Temperature
0000 T < -30°C
0001-30°C < T < -20°C
0010-20°C < T < -10°C
0011-10°C < T < 0°C
01000°C < T < 10°C
010110°C < T < 20°C
011020°C < T < 30°C
011130°C < T < 40°C
100040°C < T < 50°C
100150°C < T < 60°C
101060°C < T < 70°C
101170°C < T < 80°C
1100 T > 80°C
TMPGG Gas Gauge Bits
76 5 4 321 0
----GG3 GG2 GG1GG0
Nominal Available Charge Registers
(NACH/NACL)
The read/write NACH high-byte register (address=03h) and
the read-only NACL low-byte register (address=17h) are
the main gas gauging register for the bq2050. The NAC
registers are incremented during charge actions and decre
mented during discharge and self-discharge actions. The
correction factors for charge/discharge efficiency are applied
automatically to NAC. NACH and NACL are set to 0 dur
ing a bq2050 reset.
Writing to the NAC registers affects the available charge
counts and, therefore, affects the bq2050 gas gauge opera
tion. Do not write the NAC registers to a value greater than
LMD.
Battery Identification Register (BATID)
The read/write BATID register (address=04h) is avail
able for use by the system to determine the type of bat
tery pack. The BATID contents are retained as long as
V
is greater than 2V. The contents of BATID have no
CC
effect on the operation of the bq2050. There is no de
fault setting for this register.
Last Measured Discharge Register (LMD)
LMD is a read/write register (address=05h) that the
bq2050 uses as a measured full reference. The bq2050
adjusts LMD based on the measured discharge capacity
of the battery from full to empty. In this way the bq2050
updates the capacity of the battery. LMD is set to PFC
during a bq2050 reset.
Secondary Status Flags Register (FLGS2)
The read-only FLGS2 register (address=06h) contains
the secondary bq2050 flags.
They are used to determine the current discharge regime as follows:
FLGS2 Bits
76543 2 1 0
-------OVLD
The overload flag (OVLD) is asserted when a discharge
rate in excess of 2C is detected. OVLD remains asserted
as long as the condition persists and is cleared 0.5 sec
onds after the rate drops below 2C. The overload condi
tion is used to stop sampling of the battery terminal char
acteristics for end-of-discharge determination.
-
Program Pin Pull-Down Register (PPD)
The read-only PPD register (address=07h) contains some
-
of the programming pin information for the bq2050. The
segment drivers, SEG
ter location, PPD
resistor has been detected on its corresponding segment
driver. For example, if SEG
-
resistors, the contents of PPD are xx001001.
-
, have a corresponding PPD regis
1–6
. A given location is set if a pull-down
1–6
and SEG4have pull-down
1
Program Pin Pull-Up Register (PPU)
The read-only PPU register (address=08h) contains the rest
of the programming pin information for the bq2050. The
segment drivers, SEG
ter location, PPU
sistor has been detected on its corresponding segment
, have a corresponding PPU regis
1–6
. A given location is set if a pull-up re
1–6
-
-
-
-
-
-
13
bq2050
driver. For example, if SEG3and SEG6have pull-up resis
tors, the contents of PPU are xx100100.
PPD/PPU Bits
76543210
--PPU
--PPD6PPD5PPD4PPD3PPD2PPD
PPU5PPU4PPU3PPU2PPU
6
Capacity Inaccurate Count Register (CPI)
The read-only CPI register (address=09h) is used to in
dicate the number of times a battery has been charged
without an LMD update. Because the capacity of a re
chargeable battery varies with age and operating condi
tions, the bq2050 adapts to the changing capacity over
time. A complete discharge from full (NAC=LMD) to
empty (EDV1=1) is required to perform an LMD update
assuming there have been no intervening valid charges,
the temperature is greater than or equal to 0°C, and the
self-discharge counter is less than 4096 counts.
The CPI register is incremented every time a valid
charge is detected. When NAC > 0.94*LMD, however,
the CPI register increments on the first valid charge;
CPI does not increment again for a valid charge until
NAC < 0.94*LMC. This prevents continuous trickle
charging from incrementing CPI if self-discharge decrements NAC. The CPI register increments to 255 without rolling over. When the contents of CPI are incremented to 64, the capacity inaccurate flag, CI, is asserted in the FLGS1 register. The CPI register is reset
whenever an update of the LMD register is performed,
and the CI flag is also cleared.
Battery Voltage Register (VSB)
The read-only battery voltage register is used to read the
single-cell battery voltage on the SB pin. The VSB regis
ter (address = 0Bh) is updated approximately once per sec
ond with the present value of the battery voltage. V
2.4V*(VSB/256).
VSB Register Bits
76543210
VSB7 VSB6 VSB5 VSB4 VSB3 VSB2 VSB1 VSB0
SB
Voltage Threshold Register (VTS)
The end-of-discharge threshold voltages (EDV1 and
EDVF) can be set using the VTS register (address =
0Ch). The read/write VTS register sets the EDV1 trip
point. EDVF is set 50mV below EDV1. The default
value in the VTS register is A2h, representing EDV1 =
1.52V and EDVF = 1.47V. EDV1 = 2.4V*(VTS/256).
-
76543210
VTS7 VTS6 VTS5 VTS4 VTS3 VTS2 VTS1 VTS0
Compensated Available Charge Registers
1
(CACH/CACL)
1
The read-only CACH high-byte register (address = 0Dh)
and the read-only CACL low-byte register (address =
0Eh) represent the available charge compensated for
discharge rate and temperature. CACH and CACL use
piece-wise corrections as outlined in Tables 3A, 3B, 4A,
and 4B, and will vary as conditions change. The NAC
and LMD registers are not affected by the discharge
rate and temperature.
VTS Register Bits
Scaled Available Energy Registers
(SAEH/SAEL)
The read-only SAEH high-byte register (address = 0Fh)
and the read only SAEL low-byte register (address =
10h) are used to scale battery voltage and CAC to a
value which can be translated to watt-hours remaining
under the present conditions. SAEL and SAEH may be
converted to mWh using the formula on page 7.
Reset Register (RST)
The reset register (address = 39h) enables a softwarecontrolled reset of the device. By writing the RST register contents from 00h to 80h, a bq2050 reset is performed. Setting any bit other than the most-significant
bit of the RST register is not allowed and results in im
proper operation of the bq2050.
Resetting the bq2050 sets the following:
n
LMD = PFC
-
n
CPI, VDQ, NACH, and NACL = 0
-
=
n
CI and BRP = 1
Note: Self-discharge is disabled when PROG
Display
The bq2050 can directly display capacity information
using low-power LEDs. If LEDs are used, the program
pins should be resistively tied to V
gram high or program low, respectively.
The bq2050 displays the battery charge state in relative
mode. In relative mode, the battery charge is represented
as a percentage of the LMD. Each LED segment repre
sents 20% of the LMD.
The capacity display is also adjusted for the present bat
tery temperature. The temperature adjustment reflects
the available capacity at a given temperature but does
or VSSfor a pro
CC
=H.
5
-
-
-
-
14
bq2050
not affect the NAC register. The temperature adjust
ments are detailed in the CACH and CACL register de
scriptions.
When DISP
tive. When DISP
is tied to VCC, the SEG
outputs are inac
1–5
is left floating, the display becomes ac
tive whenever the bq2050 detects a charge in progress
V
SRO>VSRQ
. When pulled low, the segment outputs be
come active for a period of four seconds,±0.5 seconds.
The segment outputs are modulated as two banks, with
segments 1, 3, and 5 alternating with segments 2 and 4.
The segment outputs are modulated at approximately
100Hz with each segment bank active for 30% of the pe
riod.
SEG
-
-
-
-
-
blinks at a 4Hz rate whenever VSBhas been de
1
tected to be below V
battery condition. V
(EDV1 = 1), indicating a low-
EDV1
SB
below V
(EDVF = 1) disables
EDVF
the display output.
Microregulator
The bq2050 can operate directly from one cell. A micro
power source for the bq2050 can be inexpensively built
using the FET and an external resistor to accommodate
a greater number of cells; see Figure 1.
-
-
-
15
bq2050
Absolute Maximum Ratings
SymbolParameterMinimumMaximumUnitNotes
V
CC
Relative to V
All other pinsRelative to V
REFRelative to V
V
T
SR
OPR
Relative to V
Operating tempera
ture
SS
SS
SS
SS
-
-0.37.0V
-0.37.0V
-0.38.5VCurrent limited by R1 (see Figure 1)
Minimum 100Ωseries resistor should
-0.37.0V
be used to protect SR in case of a
shorted battery (see the bq2050 appli
cation note for details).
070°CCommercial
-4085°CIndustrial
-
Note:Permanent device damage may occur if Absolute Maximum Ratings are exceeded. Functional operation
should be limited to the Recommended DC Operating Conditions detailed in this data sheet. Exposure to con
ditions beyond the operational limits for extended periods of time may affect device reliability.
DC Voltage Thresholds (T
= T
A
; V = 3.0 to 6.5V)
OPR
SymbolParameterMinimumTypicalMaximumUnitNotes
V
V
V
V
V
V
EDVF
EDV1
SRO
SRQ
SRD
MCV
Final empty warning1.441.471.50VSB
First empty warning1.491.521.55VSB
SR sense range-300-2000mVSR, VSR+ V
Valid charge210--
Valid discharge---200
VVSR+ VOS(see note)
µ
VVSR+ VOS(see note)
µ
Maximum single-cell voltage2.202.252.30VSB
OS
Note:VOSis affected by PC board layout. Proper layout guidelines should be followed for optimal performance.
See “Layout Considerations.”
-
16
bq2050
DC Electrical Characteristics (T
= T
OPR
)
A
SymbolParameterMinimum Typical MaximumUnitNotes
excursion from < 2.0V to
V
V
CC
V
OS
V
REF
R
REF
I
CC
V
SB
R
SBmax
I
DISP
I
LCOM
I
RBI
R
DQ
V
SR
R
SR
V
IH
V
IL
V
IZ
V
OLSL
V
OLSH
V
OHLCL
V
OHLCH
I
IH
I
IL
I
OHLCOM
I
OLS
I
OL
V
OL
V
IHDQ
V
ILDQ
R
PROG
R
FLOAT
Supply voltage3.04.256.5V
Offset referred to V
SR
-
±50±150µV
Reference at 25°C5.76.06.3VI
Reference at -40°C to +85°C4.5-7.5VI
Reference input impedance2.05.0-MΩV
-90135
Normal operation
-120180
-170250
Battery input0-V
CC
SB input impedance10--MΩ0 < VSB< V
DISP input leakage--5
LCOM input leakage-0.2-0.2
RBI data retention current--100nAV
Internal pulldown500--K
Sense resistor input-0.3-2.0V
SR input impedance10--MΩ-200mV < VSR< V
Logic input highVCC- 0.2--VPROG1–PROG
Logic input low--VSS+ 0.2VPROG1–PROG
Logic input Zfloat-floatVPROG1–PROG
SEGXoutput low, low V
CC
SEGXoutput low, high V
LCOM output high, low V
LCOM output high, high V
PROG
PROG
input high current-1.2-
1-6
input low current-1.2-
1-6
CC
CC
CC
-0.1-V
-0.4-V
VCC- 0.3--VVCC= 3V, I
VCC- 0.6--VVCC= 6.5V, I
LCOM source current-33--mAAt V
SEG
sink current--11.0mAAt V
1-5
Open-drain sink current--5.0mA
Open-drain output low--0.5VI
DQ input high2.5--VDQ
DQ input low--0.8VDQ
Soft pull-up or pull-down resis
tor value (for programming)
-
--200
Float state external impedance-5-MΩPROG1–PROG
CC
3.0V initializes the unit.
= V
DISP
= 5µA
REF
= 5µA
REF
= 3V
REF
AV
µ
AV
µ
AV
µ
= 3.0V, DQ = 0
CC
= 4.25V, DQ = 0
CC
= 6.5V, DQ = 0
CC
V
AV
µ
ADISP = V
µ
= V
DISP
> VCC< 3V
RBI
Ω
V
SR<VSS
V
> VSS= charge
SR
= 3V, I
V
CC
–SEG
SEG
1
= 6.5V, I
V
CC
SEG
–SEG
1
AV
µ
AV
µ
PROG
PROG
At V
= VCC/2
= VCC/2
OHLCH
OLSH
= VSS+ 0.3V
OL
DQ
5mA, DQ
≤
OL
–PROG
PROG
K
Ω
1
CC
CC
SS
CC
= discharge;
OLS
5
OLS
5
OHLCOM
OHLCOM
= VCC- 0.6V
= 0.4V
Note:All voltages relative to VSS.
6
6
6
1.75mA
≤
≤
6
6
CC
11.0mA
≥
= -5.25mA
= -33.0mA
17
bq2050
Serial Communication Timing Specification (T
=T
OPR
)
A
SymbolParameterMinimumTypicalMaximumUnitNotes
t
CYCH
t
CYCB
t
STRH
t
STRB
t
DSU
t
DH
t
DV
t
SSU
t
SH
t
SV
t
B
t
BR
Cycle time, host to bq20503--msSee note
Cycle time, bq2050 to host3-6ms
Start hold, host to bq20505--ns
Start hold, bq2050 to host500--
Data setup--750
Data hold750--
s
µ
s
µ
s
µ
Data valid1.50--ms
Stop setup--2.25ms
Stop hold700--
s
µ
Stop valid2.95--ms
Break3--ms
Break recovery1--ms
Notes:The open-drain DQ pin should be pulled to at least VCCby the host system for proper DQ operation.
DQ may be left floating if the serial interface is not used.
Serial Communication Timing
DQ
(R/W "1")
DQ
(R/W "0")
DQ
(BREAK)
t
STRH
t
STRB
t
DSU
t
DV
t
t
DH
t
SSU
t
SV
CYCH, tCYCB, tB
18
t
SH
t
BR
TD201002.eps
16-Pin SOIC Narrow (SN)
bq2050
16-Pin SN(0.150" SOIC
D
e
E
H
A
C
A1
B
Dimension
A0.0600.0701.521.78
A10.0040.0100.100.25
B0.0130.0200.330.51
C0.0070.0100.180.25
D0.3850.4009.7810.16
E0.1500.1603.814.06
e0.0450.0551.141.40
H0.2250.2455.726.22
L0.0150.0350.380.89
InchesMillimeters
Min.Max.Min.Max.
)
.004
L
Data Sheet Revision History
Change No.Page No.DescriptionNature of Change
14Changed reset procedureWas:Reset by issuing command over serial port
Unitrode assumes no responsibility for use of any products or circuitry described within. No license for use of intel
lectual property (patents, copyrights, or other rights) owned by Unitrode or other parties is granted or implied.
Unitrode does not authorize the use of its components in life-support systems where failure or malfunction may
cause injury to the user. If Unitrode components are used in life-support systems, the user assumes all responsibili
ties and indemnifies Unitrode from all liability or damages.
Benchmarq is a registered trademark of Unitrode Corporation.Printed in U.S.A.
20
-
-
-
IMPORTANT NOTICE
T exas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue
any product or service without notice, and advise customers to obtain the latest version of relevant information
to verify, before placing orders, that information being relied on is current and complete. All products are sold
subject to the terms and conditions of sale supplied at the time of order acknowledgement, including those
pertaining to warranty, patent infringement, and limitation of liability.
TI warrants performance of its semiconductor products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are utilized to the extent
TI deems necessary to support this warranty . Specific testing of all parameters of each device is not necessarily
performed, except those mandated by government requirements.
CERTAIN APPLICATIONS USING SEMICONDUCTOR PRODUCTS MAY INVOLVE POTENTIAL RISKS OF
DEATH, PERSONAL INJURY, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE (“CRITICAL
APPLICATIONS”). TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, AUTHORIZED, OR
WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT DEVICES OR SYSTEMS OR OTHER
CRITICAL APPLICA TIONS. INCLUSION OF TI PRODUCTS IN SUCH APPLICATIONS IS UNDERST OOD TO
BE FULLY AT THE CUSTOMER’S RISK.
In order to minimize risks associated with the customer’s applications, adequate design and operating
safeguards must be provided by the customer to minimize inherent or procedural hazards.
TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent
that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other
intellectual property right of TI covering or relating to any combination, machine, or process in which such
semiconductor products or services might be or are used. TI’s publication of information regarding any third
party’s products or services does not constitute TI’s approval, warranty or endorsement thereof.
Copyright 1999, Texas Instruments Incorporated
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.