SLUUBD4A
April 2016 – November 2022
BQ27220
Read This First
1.1
About This Manual
1.2
Formatting conventions used in this document:
1.3
Related Documentation from Texas Instruments
1.4
Trademarks
2
General Description
2.1
Gas Gauging
2.1.1
CEDV Gas Gauging Operational Overview
2.1.2
Main Fuel Gauge Registers
2.1.3
Capacity Learning (FCC Update) and Qualified Discharge
2.1.4
End-of-Discharge Thresholds and Capacity Correction
2.1.5
EDV Discharge Rate and Temperature Compensation
2.1.6
EDV Age Factor
2.1.7
Self-Discharge
2.1.8
Battery Electronic Load Compensation
2.1.9
CEDV Configuration
2.1.10
Initial Battery Capacity at Device Reset
2.1.11
Fuel Gauge Operating Modes
2.1.12
Qmax
2.1.13
CEDV Smoothing
3
Standard Data Commands
3.1
Standard Commands
3.2
Control()/CONTROL_STATUS(): 0x00 and 0x01
3.2.1
CONTROL_STATUS: 0x0000
3.2.2
DEVICE_NUMBER: 0x0001
3.2.3
FW_VERSION: 0x0002
3.2.4
HW_VERSION: 0x0003
3.2.5
BOARD_OFFSET: 0x0009
3.2.6
CC_OFFSET: 0x000A
3.2.7
CC_OFFSET_SAVE: 0x000B
3.2.8
OCV_CMD: 0x000C
3.2.9
BAT_INSERT: 0x000D
3.2.10
BAT_REMOVE: 0x000E
3.2.11
SET_SNOOZE: 0x0013
3.2.12
CLEAR_SNOOZE: 0x0014
3.2.13
SET_PROFILE_1/2/3/4/5/6: 0x0015–0x001A
3.2.14
CAL_TOGGLE: 0x002D
3.2.15
SEALED: 0x0030
3.2.16
RESET: 0x0041
3.2.17
OPERATION_STATUS: 0x0054
3.2.18
GaugingStatus: 0x0056
3.2.19
EXIT_ CAL: 0x0080
3.2.20
ENTER_CAL: 0x0081
3.2.21
ENTER_CFG_UPDATE: 0x0090
3.2.22
EXIT_CFG_UPDATE_REINIT: 0x0091
3.2.23
EXIT_CFG_UPDATE: 0x0092
3.2.24
ENTER_ROM: 0x0F00
3.3
AtRate(): 0x02 and 0x03
3.4
AtRateTimeToEmpty(): 0x04 and 0x05
3.5
Temperature(): 0x06 and 0x07
3.6
Voltage(): 0x08 and 0x09
3.7
BatteryStatus(): 0x0A and 0x0B
3.8
Current(): 0x0C and 0x0D
3.9
RemainingCapacity(): 0x10 and 0x11
3.10
FullChargeCapacity(): 0x12 and 0x13
3.11
TimeToEmpty(): 0x16 and 0x17
3.12
TimeToFull(): 0x18 and 0x19
3.13
StandbyCurrent(): 0x1A and 0x1B
3.14
StandbyTimeToEmpty(): 0x1C and 0x1D
3.15
MaxLoadCurrent(): 0x1E and 0x1F
3.16
MaxLoadTimeToEmpty(): 0x20 and 0x21
3.17
RawCoulombCount(): 0x22 and 0x23
3.18
AveragePower(): 0x24 and 0x25
3.19
InternalTemperature(): 0x28 and 0x29
3.20
CycleCount(): 0x2A and 0x2B
3.21
StateOfCharge(): 0x2C and 0x2D
3.22
StateOfHealth(): 0x2E and 0x2F
3.23
ChargingVoltage(): 0x30 and 0x31
3.24
ChargingCurrent(): 0x32 and 0x33
3.25
BTPDischargeSet(): 0x34 and 0x35
3.26
BTPChargeSet(): 0x36 and 0x37
3.27
OperationStatus(): 0x3A and 0x3B
3.28
DesignCapacity(): 0x3C and 0x3D
3.29
MACData(): 0x40 through 0x5F
3.30
MACDataSum(): 0x60
3.31
MACDataLen(): 0x61
3.32
AnalogCount(): 0x79
3.33
RawCurrent(): 0x7A and 0x7B
3.34
RawVoltage(): 0x7C and 0x7D
4
Data Memory Interface
4.1
Accessing the Data Memory
4.2
Device Access Modes
4.3
Sealing and Unsealing Data Memory Access
4.4
Data Memory Summary
5
Functional Description
5.1
Device Configuration
5.1.1
CEDV Smoothing Config Register
5.1.2
Operation Configuration A (Operation Config A) Register
5.1.3
Operation Configuration B (Operation Config B) Register
5.2
External Pin Functions
5.2.1
Pin Function Code (PFC) Descriptions
5.2.2
Battery Presence Detection Using the BIN/TOUT Pin
5.2.3
SOC_INT Pin Behavior
5.2.4
Power Path Control With the BAT_GD Pin
5.2.5
Battery Trip Point (BTP) Interrupts
5.2.6
Wake-Up Comparator
5.2.7
Autocalibration
5.3
Temperature Measurement
5.3.1
Overtemperature Indication
5.3.1.1
Overtemperature: Charge
5.3.1.2
Overtemperature: Discharge
5.4
Charging and Charge Termination Indication
5.4.1
Detecting Charge Termination
5.4.2
Charge Inhibit
5.5
Power Modes
5.5.1
NORMAL Mode
5.5.2
SLEEP Mode
5.6
CONFIG UPDATE Mode
5.7
BAT INSERT CHECK Mode
5.8
Application-Specific Information
5.8.1
Battery Profile Storage and Selection
5.8.2
First OCV Measurement
5.9
Additional Data Memory Parameter Descriptions
5.9.1
Calibration
5.9.1.1
CC Gain
5.9.1.2
CC Delta
5.9.2
Coulomb Counter Offset
5.9.3
Board Offset
5.9.4
Int Temp Offset
5.9.5
Ext Temp Offset
5.9.6
Pack VOffset
5.9.7
Internal Temp Model
5.9.8
Ext a Coef and Ext b Coef
5.9.9
Filter
5.9.10
Deadband
5.9.11
CC Deadband
5.9.12
SOC Flag Configuration A (SOC Flag Config A) Register
5.9.13
SOC Flag Configuration B (SOC Flag Config B) Register
5.9.14
CEDV Gauging Configuration (CEDV Config) Register
5.9.15
EMF
5.9.16
C0
5.9.17
R0
5.9.18
T0
5.9.19
R1
5.9.20
TC
5.9.21
C1
5.9.22
Age Factor
5.9.23
Fixed EDV0
5.9.24
Fixed EDV1
5.9.25
Fixed EDV2
5.9.26
Battery Low %
5.9.27
Low Temp Learning
5.9.28
Overload Current
5.9.29
Self Discharge Rate
5.9.30
Electronic Load
5.9.31
Near Full
5.9.32
Reserve Capacity
5.9.33
Charge Efficiency
5.9.34
Discharge Efficiency
5.9.35
Qmax Cell 1 and Qmax Pack
5.9.36
Learned Full Charge Capacity
5.9.37
DOD at EDV2
5.9.38
Cycle Count
5.9.39
Design Capacity
5.9.40
Design Voltage
5.9.41
Cycle Count %
5.9.42
Charge Inhibit Temp Low
5.9.43
Charge Inhibit Temp High
5.9.44
Temp Hys
5.9.45
Fast Charge Current
5.9.46
Charging Voltage
5.9.47
Taper Current
5.9.48
Taper Voltage
5.9.49
SOC Delta
5.9.50
Clock Control Register
5.9.51
Sleep Current
5.9.52
Offset Calibration Inhibit Temperature Low
5.9.53
Offset Calibration Inhibit Temperature High
5.9.54
Sleep Voltage Time
5.9.55
Sleep Current Time
5.9.56
Dsg Current Threshold
5.9.57
Chg Current Threshold
5.9.58
Quit Current
5.9.59
Dsg Relax Time
5.9.60
Chg Relax Time
5.9.61
Quit Relax Time
5.9.62
OT Charge
5.9.62.1
OT Charge Time
5.9.63
OT Chg Recovery
5.9.64
OT Discharge
5.9.64.1
OT Discharge Time
5.9.65
OT Dsg Recovery
5.9.66
Initial Standby Current
5.9.67
Default Temperature
5.9.68
Device Name
5.9.69
System Down Set Voltage
5.9.70
System Down Set Voltage Time
5.9.71
System Down Clear Voltage
5.9.72
Full Reset Counter
5.9.73
Reset Counter Watchdog
6
Communications
6.1
I2C Interface
6.2
I2C Time Out
6.3
I2C Command Waiting Time
6.4
I2C Clock Stretching
7
Application Examples
7.1
Data Memory Parameter Update Example
8
Open-Circuit Voltage Measurement Background
8.1
Background
8.1.1
OCV Qualification and Calculation
8.1.2
OCV Calculation Assumption
8.1.3
OCV Timing
8.2
OCV Timing and OCV_CMD Use Recommendations
8.2.1
ACTIVE Mode (Fuel Gauge Is Not in SLEEP Mode)
8.2.2
SLEEP Mode
8.2.3
Initial OCV – POR
9
Updating BQ27220 Configuration Parameters
9.1
Gauge Mode FlashStream (gm.fs) Files
9.1.1
Write Command
9.1.2
Read and Compare Command
9.1.3
Wait Command
9.1.4
CONFIG UPDATE Mode
9.2
OTP Mode FlashStream (ot.fs) Files
9.2.1
Write Command
9.2.2
Read and Compare Command
9.2.3
Wait Command
9.2.4
CONFIG UPDATE Mode
9.3
Programming Instructions
9.3.1
Using gm.fs Files
9.3.2
Using ot.fs Files
9.4
General Setup and Software Installation to Program OTP
9.5
Launch BQStudio Software
9.6
Load .GG File
9.7
Confirm or Update Data Memory Parameters
9.8
Save .OTFS File
9.9
Launch SmartFlash Software
9.10
Open Ot.fs File
9.11
Program OTP
9.12
Confirm Success
A Battery Gauge Glossary
A.1 Glossary
B Revision History
Read This First