Gas Gauge IC With Battery Charger Control For Handheld Applications
Gas Gauge IC With Battery Charger Control For Handheld Applications
Gas Gauge IC With Battery Charger Control For Handheld Applications
Description
The STC3117 includes the STMicroelectronics
OptimGauge™ algorithm. It provides accurate
battery state-of-charge (SOC) monitoring, tracks
battery parameter changes with operation
conditions, temperature, and aging, and allows
the application to get a battery state-of-health
(SOH) indication.
An alarm output signals low SOC or low voltage
conditions and also indicates fault conditions like
CSP (1.49 x 1.594 mm) a missing or swapped battery.
Features
Patented OptimGauge™ algorithm for accurate
battery capacity calculation
Robust initial open-circuit-voltage (OCV)
measurement at power up
Programmable low battery alarm
Missing/swapped battery detection
Average current internal calculation
End-of-charge detection
Internal temperature sensor
Battery swap detection with protection against
false battery insertion
Low power: 40 µA in voltage-only mode, 2 µA
max in standby mode
1.49 x 1.594 mm 9-bump CSP package
Applications
Mobile phones, multimedia players, digital
cameras
Portable medical equipment
Contents
1 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Application information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
6 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.1 Battery monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
6.1.1 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.1.2 Battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.1.3 Internal temperature monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.1.4 Current sensing in mixed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.1.5 SOC change rate in voltage mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.2 STC3117 gas gauge architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.2.1 Coulomb counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.2.2 Voltage gas gauge algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.2.3 Mixed mode gas gauge system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.3 Alarm output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.4 Current monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.5 Power-up and battery swap detection . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7 I2C interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.1 Read and write operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.2 Register map and description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.2.1 Register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.2.2 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.2.3 REG_MODE and REG_CTRL register description . . . . . . . . . . . . . . . . 25
7.2.4 OCV table register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
8.1 Flip Chip CSP 1.49 x 1.594 x 0.4 mm (N5) with coating ball
printing package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
10 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
1 Block diagram
VCC
1.2 V 32768 Hz
BATD Battery detection Oscillator
reference time base
CD and charge control
Temperature
control logic & sensor
ALM VIN
state machine AD converter MUX
SCL
I2C interface RAM and ID registers
SDA
GND
2 Pin assignment
CD SDA GND
BATD SCL CS
4 Electrical characteristics
Table 4. Electrical characteristics (2.7 V < VCC < 4.5 V, -20C to 70C)
Symbol Parameter Conditions Min Typ Max Units
Supply
Average value over 4 s in
40
voltage mode
ICC Operating current consumption
Average value over 4 s in
80
mixed mode
Standby mode, µA
ISTBY Current consumption in standby inputs = 0 V 2
BATD_PU bit = 0
VCC < UVLOTH,
IPDN Current consumption in power-down 1
inputs = 0 V
UVLOTH Undervoltage threshold (VCC decreasing) 2.5 2.6 2.7 V
UVLOHYST Undervoltage threshold hysteresis 100 mV
POR Power-on reset threshold (VCC decreasing) 2.0 V
Current sensing
Vin_gg Input voltage range -40 +40 mV
IIN Input current 500 nA
ADC_res AD converter granularity 5.88 µV
ADC_offset AD converter offset CS = 0 V -3 3 LSB
ADC_time AD conversion time 500 ms
Table 4. Electrical characteristics (2.7 V < VCC < 4.5 V, -20C to 70C) (continued)
Symbol Parameter Conditions Min Typ Max Units
Table 5. I2C timing - VIO = 2.8 V, Tamb = -20 °C to 70 C (unless otherwise specified)
Symbol Parameter Min Typ Max Unit
WI
9LK
6'$
9LO
WKGVWD
WU WVXGDW WKLJK
6&/
5 Application information
Optional filter
IO voltage
VCC
C1 R1
VIN Other
SCL STC3117 C2 detection
circuit
SDA Battery pack
ALM BATD
R2
Rid
CD CS
GND Rs
6 Functional description
0 Mixed mode, Coulomb counter is active, voltage gas gauge runs in parallel
Voltage gas gauge with power saving
1
Coulomb counter is not used. No current sensing.
In mixed mode, current is measured continuously (except for a conversion cycle every 4 s
and every 16 s for measuring voltage and temperature respectively). This provides the
highest accuracy from the gas gauge.
In voltage mode with no current sensing, a voltage conversion is made every 4 s and a
temperature conversion every 16 s. This mode provides the lowest power consumption.
It is possible to switch between the two operating modes to get the best accuracy during
active periods, and to save power during standby periods while still keeping track of the
SOC information.
REG_CURRENT
register
EOC
To SOC
CS Coulomb counter
management
AD converter calculator
GND
REG_CC_CNF
register
The REG_CC_CNF value depends on battery capacity and the current sense resistor. It
scales the charge integrated by the sigma delta converter into a percentage value of the
battery capacity. The default value is 395 (corresponding to a 10-m sense resistor and
1957-mAh battery capacity).
The Coulomb counter is inactive if the VMODE bit is set, this is the default state at power-
on-reset (POR) or reset (VMODE bit = 1).
Writing a value to the register REG_SOC (mixed mode SOC) forces the Coulomb counter
gas gauge algorithm to restart from this new SOC value.
REG_CC_CNF register is a 16-bit integer value CC_CNF that is calculated as shown in
Equation 1:
Equation 1
REG_VOLTAGE
register
REG_VM_CNF
register
REG_OCV
VIN register
AD Voltage mode
converter (VM)
algorithm To SOC
management
REG_OCVTAB
Reference register
OCV
curve REG_SOCTAB
register
Equation 2
VM_CNF = Ri Cnom 977.78
The STC3117 implements a mixed mode gas gauge (OptimGaugeTM 1) that uses both the
Coulomb counter (CC) and the voltage mode (VM) algorithm to track the battery SOC in all
application conditions and automatically provide the optimum SOC information. The VM
algorithm cancels any long-term errors and prevents the SOC drift problem that is
commonly found in CC-only solutions.
The STC3117 automatically selects the best method based on the relaxation timer (see
Section 6.4: Current monitoring) as follows: when a low-power application state is detected
by the relaxation timer, the SOC reported by the STC3117 is the VM SOC, otherwise the CC
SOC is reported. The STC3117 manages the transitions between the VM and CC modes
without discontinuity by adjusting the VM and the CC SOC to ensure smooth SOC variations
without jumps in any application conditions.
The current mixed mode state is indicated by the GG_VM bit in the REG_CTRL register:
GG_VM=1 means the reported SOC is the VM SOC, otherwise the SOC is the CC SOC.
Note: When the application enters standby mode, the STC3117 can be put into power-saving
mode by setting the VMODE bit to 1 in the REG_MODE register. Only the VM gas gauge
stays active, the CC is stopped, and the power consumption is reduced.
Voltage mode
(VM)
gas gauge SOC REG_SOC
management register
Coulomb Alarm
counter management
(CC) REG_VM_ADJ
register
Parameter
tracking REG_CC_ADJ
register
Adjustment registers
The registers REG_CC_ADJ and REG_VM_ADJ are signed 16-bit registers. They
accumulate the adjustment quantities made to the SOC values by the embedded mixed
mode algorithm:
REG_CC_ADJ = REG_SOC – (unadjusted CC SOC)
REG_VM_ADJ = REG_SOC – (unadjusted VM SOC)
These registers can be used by the system application to implement more sophisticated
algorithms for improved performance and accuracy.
Writing to the REG_SOC or REG_OCV initializes the two VM and CC algorithms to the
corresponding SOC value and clears REG_VM_ADJ and REG_CC_ADJ. It is possible to
write to the REG_SOC, REG_OCV, REG_VM_CNF and REG_CC_CNF registers when the
STC3117 is running without disturbing SOC management.
Note: When writing to the REG_SOC or REG_OCV registers, the resulting SOC value is rounded
to the nearest 1/64 % value (the least three bits of REG_SOC are zero).
BATD +
1.61 V -
The BATD pin is an analog I/O. The input detection threshold is typically 1.61 V.
The CD pin is an output connected to the VCC level when active. Otherwise, it is high
impedance.
The BATD pin can be connected to the NTC sensor or to the identification resistor of the
battery pack. By default, the STC3117 provides an internal pull-up resistor for the detection
of battery removal. The internal resistor can be disabled by clearing the bit BATD_PU in the
REG_MODE register. When disabled, an external pull-up resistor or another device has to
pull the BATD pin high.
“Dead”
Internal 1mA battery
sink current
“Good” battery “Dead” battery
CD pin
(low means HiZ)
375 ms
Voltage
measurement
Current
measurement
Temperature
measurement
Conversion X 0 1 2 3
counter
100 125 125 125 250
ms ms ms ms ms
GAMS1601141520CB
<0.5s <0.5s
VCC UVLO
POR
BATD 1.61V
7 I2C interface
1 1 1 0 0 0 0 R/W
0DVWHU 6ODYH
$GGUHVV $GGUHVV
6WDUWELW 6'$IDOOLQJZKHQ6&/ Q Q
6WRSELW 6'$ULVLQJZKHQ6&/
5HVWDUWELW VWDUWDIWHUDVWDUW
$FNQRZOHGJH 6'$IRUFHGORZGXULQJD6&/FORFN
*$3060'
$GGUHVV $GGUHVV
6WDUWELW 6'$IDOOLQJZKHQ6&/ Q Q
6WRSELW 6'$ULVLQJZKHQ6&/
5HVWDUWELW VWDUWDIWHUDVWDUW
*$3060'
Control registers 0 to 30
REG_MODE 0 R/W Mode register
REG_CTRL 1 R/W Control and status register
REG_SOC (L-H) 2-3 R/W Battery SOC (2 bytes) 1/512 %
Number of conversions
REG_COUNTER (L-H) 4-5 R 0x00 0x00
(2 bytes)
REG_CURRENT (L-H) 6-7 R 0x00 0x00 Battery current (2 bytes) 5.88 V
REG_VOLTAGE (L-H) 8-9 R 0x00 0x00 Battery voltage (2 bytes) 2.2 mV
REG_TEMPERATURE 10 R 0x00 0x00 Temperature 1 C
REG_AVG_CURRENT Battery average current or 1.47 V or
11-12 R/W 0x00 0x00
(L-H) SOC change rate (2 bytes) 0.008789 C
REG_OCV (L-H) 13-14 R/W 0x00 0x00 OCV register (2 bytes) 0.55 mV
Coulomb counter gas gauge
REG_CC_CNF (L-H) 15-16 R/W 395 395
configuration (2 bytes)
Voltage gas gauge algorithm
REG_VM_CNF (L-H) 17-18 R/W 321 321
parameter(2 bytes)
SOC alarm level
REG_ALARM_SOC 19 R/W 0x02 0x02 1/2 %
(default = 1 %)
Battery low voltage alarm
REG_ALARM_VOLTAGE 20 R/W 0xAA 0xAA 17.6 mV
level (default is 3 V)
Current threshold for current
REG_CURRENT_THRES 21 R/W 0x0A 0x0A 47.04 V
monitoring (bits 6-0)
REG_CMONIT_COUNT 22 R 0x78 0x78 Current monitoring counter
Maximum counter value for
REG_CMONIT_MAX 23 R/W 0x78 0x78
current monitoring
REG_ID 24 R 0x16 0x16 Part type ID = 16h
Coulomb counter adjustment
REG_CC_ADJ (L-H) 27-28 R 0x00 0x00
register (2 bytes)
1/512 %
Voltage mode adjustment
REG_VM_ADJ (L-H) 29-30 R 0x00 0x00
register (2 bytes)
RAM registers 32 to 47
Working register 0 for gas
REG_RAM0 32 R/W 0x00 0x00
gauge
... ... ...
Working register 15 for gas
REG_RAM15 47 R/W 0x00 0x00
gauge
OCV table registers 48 to 95
REG_OCVTAB0 (L-H) to 48-49 to See See OCV points, 2 bytes per
R/W 0.55 mV
REG_OCVTAB15 (L-H) 78-79 table 14 table 14 point (32 registers)
REG_SOCTAB0 to See See SOC points, 1 byte per point
80 to 95 R/W 1/2 %
REG_SOCTAB15 table 14 table 14 (16 registers)
8 Package information
8.1 Flip Chip CSP 1.49 x 1.594 x 0.4 mm (N5) with coating ball
printing package information
Figure 13. Flip Chip CSP 1.49 x 1.594 x 0.4 mm (N5) package mechanical drawing
D1
fD
e
fE1
C
e
SE
B E1
A
fE2
1 2 3
A
A2
$
ccc C
Top view
GAMS1701141057CB
1. The terminal A1 on the bump side is identified by a distinguishing feature - for instance, by a circular “clear
area” typically 0.1 mm in diameter and/or a missing bump.
2. The terminal A1, on the back side, is identified by a distinguishing feature - for instance, by a circular “clear
area” typically 0.2 mm in diameter depending on the die size.
Table 15. Flip Chip CSP 1.49 x 1.594 x 0.4 mm (N5) package mechanical data
Dimensions
Figure 14. Flip Chip CSP 1.49 x 1.594 x 0.4 mm (N5) package footprint
recommendation (top view)
0.80
0.40
0.40
B 0.80
1 2 3
Ø0.22
GAMS1701141127CB
Figure 15. Flip Chip CSP 1.49 x 1.594 x0.4 mm (N5) package reflow profile
recommendation
GAMS1701141140CB
9 Ordering information
10 Revision history
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers’ products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.