Texas Instruments BQ27220 Technical Reference Manual
Texas Instruments BQ27220 Technical Reference Manual

Texas Instruments BQ27220 Technical Reference Manual

Hide thumbs Also See for BQ27220:
Table of Contents

Advertisement

BQ27220
Technical Reference Manual
Literature Number: SLUUBD4A
APRIL 2016 – REVISED NOVEMBER 2022

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BQ27220 and is the answer not in the manual?

Questions and answers

Summary of Contents for Texas Instruments BQ27220

  • Page 1 BQ27220 Technical Reference Manual Literature Number: SLUUBD4A APRIL 2016 – REVISED NOVEMBER 2022...
  • Page 3: Table Of Contents

    Table of Contents Table of Contents Read This First...................................7 1.1 About This Manual................................1.2 Formatting conventions used in this document:.........................7 1.3 Related Documentation from Texas Instruments....................... 1.4 Trademarks..................................1 General Description................................9 1.1 Gas Gauging..................................1.1.1 CEDV Gas Gauging Operational Overview.......................10 1.1.2 Main Fuel Gauge...
  • Page 4 4.7 BAT INSERT CHECK Mode.............................52 4.8 Application-Specific Information............................52 4.8.1 Battery Profile Storage and Selection........................52 4.8.2 First OCV Measurement............................53 4.9 Additional Data Memory Parameter Descriptions......................BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 5 4.9.56 Dsg Current Threshold............................4.9.57 Chg Current Threshold............................4.9.58 Quit Current................................4.9.59 Dsg Relax Time............................... 4.9.60 Chg Relax Time............................... 4.9.61 Quit Relax Time............................... SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 6 8.9 Launch SmartFlash Software............................83 8.10 Open Ot.fs File................................8.11 Program OTP................................. 8.12 Confirm Success................................A Battery Gauge Glossary..............................Glossary...................................88 B Revision History...................................89 BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 7: Read This First

    Read This First 1.1 About This Manual This manual discusses the modules and peripherals of the BQ27220 device, and how each is used to build a complete battery pack fuel gauge solution. For further information, refer to the BQ27220 System-Side CEDV Fuel Gauge Data Sheet (SLUSCB7).
  • Page 8 Read This First www.ti.com This page intentionally left blank. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 9: General Description

    Chapter 1 General Description The BQ27220 fuel gauge, using compensated end-of-discharge voltage (CEDV) technology, accurately predicts the battery capacity and other operational characteristics of a single series, Li-based rechargeable cell. It can be interrogated by a system processor to provide cell information such as time-to-empty (TTE), state-of-charge (SOC), and the SOC interrupt signal to the host.
  • Page 10: Cedv Gas Gauging Operational Overview

    DCR to update the FCC register if the battery undergoes a qualified discharge from nearly full to a low battery level. In this way, the BQ27220 device learns the true discharge capacity of the battery under-system use conditions.
  • Page 11: Capacity Learning (Fcc Update) And Qualified Discharge

    1.1.3 Capacity Learning (FCC Update) and Qualified Discharge The BQ27220 device updates FCC with an amount based on the value in the DCR if a qualified discharge occurs. The new value for FCC equals the DCR value plus the programmable Near Full and low battery levels, per the following equation: FCC (new) = DCR (final) = DCR (initial) + Measured Discharge to EDV2 + (FCC ×...
  • Page 12: End-Of-Discharge Thresholds And Capacity Correction

    If [FCC_LIMIT] is set in CEDV Gauging Configuration then FCC cannot learn above the Design Capacity mAh. The BQ27220 device saves the new FCC value to the data flash within 4 s of being updated. 1.1.4 End-of-Discharge Thresholds and Capacity Correction The BQ27220 device monitors the battery for three low-voltage thresholds: EDV0, EDV1, and EDV2.
  • Page 13: Edv Age Factor

    Various Loads 1.1.6 EDV Age Factor The EDV Age Factor allows the BQ27220 device to correct the EDV detection algorithm to compensate for cell aging. This parameter scales cell impedances as the cycle count increases. This new factor is used to accommodate for much higher impedances observed in larger capacity and/or aged cells.
  • Page 14: Battery Electronic Load Compensation

    EDV0, EDV1, and EDV2 thresholds based on rate, temperature, and capacity. If the bit is cleared, the BQ27220 device uses the fixed values programmed in data flash for EDV0, EDV1, and EDV2. If the bit is set, the BQ27220 device calculates EDV_CMP EDV0, EDV1, and EDV2.
  • Page 15: Fuel Gauge Operating Modes

    Design Capacity mAh data flash value. 1.1.13 CEDV Smoothing The BQ27220 device has the ability to smooth the RemainingCapacity() during discharge in order to avoid a drop in RelativeStateOfCharge() when the EDV thresholds are reached. This feature is enabled by setting the Smoothing Config [SMEN] = 1 and configuring the Smoothing Start Voltage and Smoothing Delta Voltage.
  • Page 16 Smoothing to EDV0 if calculated EDV2/EDV1 is less than EDV0. The BQ27220 device can also add smoothing during charging. In situations when the FCC is not updated during a discharge cycle or on a subsequent charge cycle, if the valid charge termination is reached, RSOC is synced to 100% regardless of the true RSOC.
  • Page 17: Standard Data Commands

    Chapter 2 Standard Data Commands 2.1 Standard Commands The BQ27220 fuel gauge uses a series of 2-byte standard commands to enable system reading and writing of battery information. Each standard command has an associated command-code pair, as indicated in Table 2-1.
  • Page 18: Control()/Control_Status(): 0X00 And 0X01

    Select CEDV Profile 3 SET_PROFILE_4 0x0018 Select CEDV Profile 4 SET_PROFILE_5 0x0019 Select CEDV Profile 5 SET_PROFILE_6 0x001A Select CEDV Profile 6 BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 19: Control_Status: 0X0000

    This command instructs the fuel gauge to return the firmware revision on MACData() in the following format: ddDDvvVVbbBBTTzzZZRREE, where ddDD: Device Number SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 20: Hw_Version: 0X0003

    2.2.13 SET_PROFILE_1/2/3/4/5/6: 0x0015–0x001A This command instructs the device to switch the CEDV profile to one of the six pre-programmed profiles in the gauge. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 21: Cal_Toggle: 0X002D

    This instructs the fuel gauge to enter CALIBRATION mode and reset AnalogCount() to zero if OperationStatus() [CALMD] is set. [CALMD] is controlled by the CAL_MODE() command. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 22: Enter_Cfg_Update: 0X0090

    This read-word function returns an unsigned integer value of the measured cell-pack voltage in mV with a range of 0 to 6000 mV. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 23: Batterystatus(): 0X0A And 0X0B

    This read-only function returns an unsigned integer value of the predicted remaining time until battery reaches full charge, in minutes, based upon AverageCurrent(). The computation accounts for the taper current time SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 24: Standbycurrent(): 0X1A And 0X1B

    This read-only function returns an unsigned integer value of the number of cycles that the active cell has experienced with a range of 0 to 65535. One cycle occurs when accumulated discharge ≥ cycle threshold. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 25: Stateofcharge(): 0X2C And 0X2D

    11 = Sealed Access 10 = Unsealed Access 01 = Full Access CALD = Toggles with 0x2D command to Enable/Disable CALIBRATION mode SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 26: Designcapacity(): 0X3C And 0X3D

    This read-only function returns the raw data from the coulomb counter. 2.34 RawVoltage(): 0x7C and 0x7D This read-only function returns the raw data from the cell voltage reading. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 27: Data Memory Interface

    Control() register in between. When in SEALED mode, the OperationStatus[SEC] bits (SEC1,SEC0) are set to 11; but when the Sealed to Unsealed keys are correctly received by the fuel gauge, the SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 28: Data Memory Summary

    0x9188 CC Delta 3.0e+04 3.0e+06 799341.14 — Calibration Current 0x91DD Filter Calibration Current 0x91DE Deadband Calibration Current 0x91DF CC Deadband 294 nV BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 29 Gas Gauging 0x928C Set % RSOC Threshold Gas Gauging 0x928D Clear % RSOC Threshold Gas Gauging 0x928E Set Voltage Threshold 5000 3200 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 30 CEDV Profile 1 0x92CB Voltage 70% DOD –32768 32767 3582 Gas Gauging CEDV Profile 1 0x92CD Voltage 80% DOD –32768 32767 3515 BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 31 OTP) Calibration (Present Temperature 0x4024 Voltage Comp Coefficient 3 –32768 32767 –71 OTP) Calibration (Present Temperature 0x4026 Voltage Comp Input Multiplier OTP) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 32 Offset Cal Inhibit Temp High –400 1200 0.1°C (Present OTP) Configuration Power 0x406A Sleep Voltage Time (Present OTP) Configuration Power 0x406B Sleep Current Time (Present OTP) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 33 Set % RSOC Threshold (Present OTP) Gas Gauging 0x40DF Clear % RSOC Threshold (Present OTP) Gas Gauging 0x40E0 Set Voltage Threshold 5000 4200 (Present OTP) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 34 CEDV Profile 1 0x4105 EDV 1 Hold Time (Present OTP) Gas Gauging CEDV Profile 1 0x4106 Fixed EDV 2 32767 3501 (Present OTP) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 35 CEDV Profile 2 0x413D EDV 1 Hold Time (Present OTP) Gas Gauging CEDV Profile 2 0x413E Fixed EDV 2 32767 3501 (Present OTP) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 36 CEDV Profile 3 0x4175 EDV 1 Hold Time (Present OTP) Gas Gauging CEDV Profile 3 0x4176 Fixed EDV 2 32767 3501 (Present OTP) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 37 Temperature 0x4810 External Model Coefficient 3 –32768 32767 –19262 Default) Calibration (ROM Temperature 0x4812 External Model Coefficient 4 –32768 32767 28203 Default) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 38 0x0000 0xFFFF 0x1000 Default) Configuration (ROM Registers 0x4857 SOC Delta Default) Configuration (ROM Registers 0x4858 Clk Ctl Reg 0x00 0x0F 0x09 Default) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 39 Clear Voltage Threshold 5000 3100 Default) Gas Gauging (ROM 0x48D2 Set % RSOC Threshold Default) Gas Gauging (ROM 0x48D3 Clear % RSOC Threshold Default) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 40 Default) Gas Gauging (ROM CEDV Profile 1 0x48F7 65535 — Default) Gas Gauging (ROM CEDV Profile 1 0x48F9 65535 4030 — Default) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 41 Default) Gas Gauging (ROM CEDV Profile 2 0x492F 65535 — Default) Gas Gauging (ROM CEDV Profile 2 0x4931 65535 4030 — Default) SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 42 Default) Gas Gauging (ROM CEDV Profile 3 0x4967 65535 — Default) Gas Gauging (ROM CEDV Profile 3 0x4969 65535 4030 — Default) BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 43 Gas Gauging (ROM CEDV Smoothing 0x48C7 EOC Smooth Current 0.1% Default) Config Gas Gauging (ROM CEDV Smoothing 0x48C8 EOC Smooth Current Time Default) Config SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 44 Data Memory Interface www.ti.com This page intentionally left blank. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 45: Functional Description

    High Byte TEMPS = When set to 1, the external thermistor is selected for Temperature() measurements. RSVD = Reserved. Do not use. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 46: Operation Configuration B (Operation Config B) Register

    (see Section 4.2.1, Pin Function Code (PFC) Descriptions). WAKE_EN,WK_TH1,WK_TH0 = These bits configure the current wake function. See the BQ27220 System-Side CEDV Fuel Gauge Data Sheet (SLUSCB7) for threshold values. 4.1.3 Operation Configuration B (Operation Config B) Register Table 4-3. Operation Config B Register Bit Definitions...
  • Page 47: Battery Presence Detection Using The Bin/Tout Pin

    4-6. After initialization, only one SOC_INT pulse is generated within any given 1-s time slot and, therefore, may indicate multiple event conditions. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 48: Power Path Control With The Bat_Gd Pin

    Settings:Configuration:IO Config[BTP_POL] where setting to 1 selects active-high and clearing to 0 yields active-low assertion behavior on GPOUT. It should be further noted that the logic governing trigger BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 49: Wake-Up Comparator

    Section 2.5, Temperature(): 0x06 and 0x07, for specific information on configuration options. Regardless SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 50: Overtemperature Indication

    BAT INSERT CHECK mode is a powered up, but low-power halted, state, where the fuel gauge resides when no battery is inserted into the system. Figure 4-1 shows the relationship between these modes. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 51: Normal Mode

    Current() is below the programmable level Sleep Current. Once entry into SLEEP mode has been qualified, but prior to entering it, the fuel gauge performs a coulomb counter autocalibration to minimize offset. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 52: Config Update Mode

    Note Because the BQ27220 device does not support HIBERNATE mode, it is highly recommended to set Hibernate I to 0. To set Hibernate I to 0, do the following set of commands: 1. Write 0x0090 to 0x3E (enter CONFIG UPDATE mode), and wait 1100 ms for it to fully enter CONFIG UPDATE mode.
  • Page 53: First Ocv Measurement

    4.9.7 Internal Temp Model These values characterize the internal thermistor of the device. Do not modify these values without consulting TI. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 54 High Byte RSVD RSVD RSVD RSVD TCSETVCT FCSETVCT RSVD RSVD Default 0x0C TCCLEARRS TCSETR TDCLEARRS TDSETR Low Byte TCCLEARV TCSETV TDCLEARV TDSETV BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 55 FDCLEARRS FDSETR FCSETRSOC FCCLEARV FCSETV FDCLEARV FDSETV Default 0x8C FCCLEARRSOC = Enables BatteryStatus()[FC] flag clear when RelativeStateOfCharge() ≤ FC:Clear % RSOC Threshold SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 56 FIXED_EDV0 = This bit is used when [EDV_CMP] = 1 to determine if EDV0 will use a fixed threshold. When set to 1, FIXED_EDV0 will be used. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 57 This value is the desired reserved battery capacity remaining at EDV0. 4.9.22 Age Factor This value allows the BQ27220 device to correct the EDV detection algorithm to compensate for cell aging. 4.9.23 Fixed EDV0 This value is the EDV0 threshold if [CEDV] is clear in CEDV Config.
  • Page 58 Low % ÷ 100. The firmware default value is 15232, which corresponds to a Battery Low % = 703 (.01 %). 4.9.38 Cycle Count The default value of CycleCount() is stored in Cycle Count and copied upon BQ27220 initialization. When the value changes Cycle Count is also updated.
  • Page 59 During Primary Charge Termination detection, one of the three requirements is that the accumulated change in capacity > 0.25 mAh per Current Taper Window for the BQ27220 device to start trying to qualify a termination. It must be above this Min Taper Capacity before BQ27220 starts trying to detect a primary charge termination.
  • Page 60 During Primary Charge Termination detection, one of the three requirements is that Voltage must be above (Charging Voltage – Taper Voltage) for the BQ27220 device to start trying to qualify a termination. It must be above this voltage before BQ27220 starts trying to detect a primary charge termination.
  • Page 61: Ot Charge

    4.9.62.1 OT Charge Time If the [OTC] condition exists for a time that exceeds the OT Chg Time period, the BQ27220 device goes into an overtemperature charge condition. This function is disabled if OT Chg Time is set to 0.
  • Page 62: Default Temperature

    DeviceName() (0x63 through 0x69). 4.9.69 System Down Set Voltage The BQ27220 device goes into SYSTEM DOWN mode if the battery pack Voltage() is equal to or less than SysDown Set Voltage Threshold for SysDown Set Volt Time.
  • Page 63: Communications

    5.1 I C Interface The BQ27220 fuel gauge supports the standard I C read, incremental read, quick read, one byte write, and incremental write functions. The 7-bit device address (ADDR) is the most significant 7 bits of the hex address and is fixed as 1010101.
  • Page 64: I 2 C Clock Stretching

    (INITIALIZATION, NORMAL), a ≤ 4-ms clock stretching period may occur within packets addressed for the fuel gauge as the I C interface performs normal data flow control. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 65: Application Examples

    0x01 0x36; //Two-byte incremental method wr 0x00 0xFF 0xFF; wr 0x00 0xFF 0xFF; The BQ27220 boots up in UNSEAL, but not in FULL ACCESS. Enter //Alternative single byte method FULL ACCESS to gain access to the Data Memory. wr 0x00 0xFF;...
  • Page 66 2 is clear. May take up to 1 second. If the device was previously SEALED, return to SEALED mode by wr 0x00 0x30 0x00; sending the Control (0x0030) subcommand. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 67: Open-Circuit Voltage Measurement Background

    2. Quick voltage and current measurements are taken to qualify OCV VIT conditions. 3. Voltage, current, and temperature are measured for subsequent fuel gauge parameters updates. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 68 This makes the fuel gauge respond as if this were a pass condition; however, the actual result is not good because the actual VIT measurement used for OCV was taken under high load. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 69: Ocv Timing And Ocv_Cmd Use Recommendations

    300 ms after POR until the end of SOC_INT. To achieve a good initial OCV measurement after POR, the recommendation is to keep VIT stable from POR until the end of SOC_INT (see Figure 7-3). SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 70 Open-Circuit Voltage Measurement Background www.ti.com Figure 7-3. Initial OCV Taken After POR BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 71: Updating Bq27220 Configuration Parameters

    1. Download the configuration/profile to BQ27220 RAM on power up. The BQ27220 fuel gauge has RAM-based data memory parameters that can be updated if needed by the host processor. This prevents external communication access to the fuel gauge to allow updating with external tools.
  • Page 72: Write Command

    The gm.fs file contains no information about program flow or decision making. If a read and compare command BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 73: Wait Command

    SOFT_RESET subcommand from the host. The memory of the BQ27220 device is separated into memory subclasses defined in this document. The memory cannot be directly addressed, but is updated through a sequence of extended commands that can access each block of memory indirectly.
  • Page 74: Write Command

    The format of this sequence is: "W: I2CAddr RegAddr Byte0 Byte1 Byte2…" For example, the following: W: AA 55 AB CD EF 00 BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 75: Read And Compare Command

    To resume fuel gauging, the host must send a Control()SOFT_RESET subcommand to exit the CONFIG UPDATE mode, which clears both Flags()[ITPOR] and [CFGUPMODE] bits. After a timeout SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 76: Programming Instructions

    The BQ27220 fuel gauge has two One-Time Programmable (OTP) areas for custom CEDV profile programming. In cases where the user does not want to program the RAM in the BQ27220 device every time on a power up, there is a provision to program the custom CEDV profiles in the OTP area of the BQ27220 device. Once programmed, the fuel gauge automatically uses the OTP profile the next time the gauge is powered up.
  • Page 77: General Setup And Software Installation To Program Otp

    C instructions (with data) on how to program the OTP with the values that were just setup in RAM. Step 5: Use the ot.fs file with the SmartFlash programming tool; the OTP on the BQ27220 device can be programmed. 8.4 General Setup and Software Installation to Program OTP 1.
  • Page 78 Updating BQ27220 Configuration Parameters www.ti.com Figure 8-3. Launch BQStudio Software BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 79: Load .Gg File

    Updating BQ27220 Configuration Parameters 8.6 Load .GG File This procedure imports the fuel gauge data or the data memory image to the device. 1. Browse to a desired template or sample *.GG parameter file. (Example: BQ27220.gg.csv in Figure 8-4.) 2. Click Open button.
  • Page 80: Confirm Or Update Data Memory Parameters

    2. Confirm or update Data Memory (RAM) parameters as required. 3. Save .GG file for future reference by clicking Export. Figure 8-5. Confirm or Update Data Memory Parameters BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 81 Updating BQ27220 Configuration Parameters Figure 8-6. Update Battery ID 4. Set BATT_ID2 to 1. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 82: Save .Otfs File

    Updating BQ27220 Configuration Parameters www.ti.com 8.8 Save .OTFS File 1. Click the GoldenImage icon. 2. From the GoldenImage panel, enter the desired .OTFS base file name (example, BQ27220.ot.fs). Note No Options changes are required. 3. Click Create Image File. 4. Exit BQStudio software.
  • Page 83: Launch Smartflash Software

    2. Confirm auto-detection of the EV2x00 adapter, Gauge = 220 and Version ≥ 1.09. 3. Click File > Open. Figure 8-8. Launch SmartFlash Software SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 84: Open Ot.fs File

    1. From the pop-up dialog box, click the needed ot.fs file and click Open. 2. Confirm successful file load from log window. Figure 8-9. Open .OTFS File BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 85: Program Otp

    3. After a brief, approximately 1-second, delay for OTP programming and when the Remove Programming Voltage pop-up dialog box appears, disable the power supply and click OK. Figure 8-10. Apply 7.4 V Figure 8-11. Program OTP SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 86: Confirm Success

    1. Confirm the message Programming completed successfully! from the log window. 2. The device is now fully programmed. Figure 8-12. Confirm Success BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 87: A Battery Gauge Glossary

    Most significant bit Milliwatt-hour NACK Negative acknowledge character Negative temperature coefficient Open-circuit voltage. Voltage measured on fully-relaxed battery with no load applied. SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 88: Glossary

    Temperature status Time-to-empty Time-to-full Voltage, current, temperature Voltage measurement time A.1 Glossary TI Glossary This glossary lists and explains terms, acronyms, and definitions. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 89: B Revision History

    Changes from Revision * (April 2016) to Revision A (November 2022) Page • Added a sentence explaining 0x3E ......................... • Renamed the Battery Gauge Glossary and added the TI Glossary..............SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 BQ27220 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 90 Revision History www.ti.com This page intentionally left blank. BQ27220 SLUUBD4A – APRIL 2016 – REVISED NOVEMBER 2022 Submit Document Feedback Copyright © 2022 Texas Instruments Incorporated...
  • Page 91 TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products. TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2022, Texas Instruments Incorporated...

Table of Contents