SLAAEF5B March   2024  – June 2025 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3506 , MSPM0G3507 , MSPM0H3216 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Algorithm Introduction
    1. 2.1 Battery Basic Knowledge Introduction
    2. 2.2 Different SOCs and Used Technologies
      1. 2.2.1 NomAbsSoc Calculation
        1. 2.2.1.1 Coulometer With OCV Calibration
        2. 2.2.1.2 Data Fusion
        3. 2.2.1.3 Battery Model Filter
      2. 2.2.2 CusRltSoc Calculation
        1. 2.2.2.1 EmptySoc and FullSoc
        2. 2.2.2.2 Core Temperature Evaluation
      3. 2.2.3 SmoothRltSoc Calculation
    3. 2.3 Algorithm Overview
      1. 2.3.1 Voltage Gauge Introduction
      2. 2.3.2 Current Gauge Introduction
      3. 2.3.3 Capacity Learn Introduction
      4. 2.3.4 Mixing Introduction
  6. 3Gauge GUI Introduction
    1. 3.1 MCU COM Tool
    2. 3.2 SM COM Tool
    3. 3.3 Data Analysis Tool
  7. 4MSPM0 Gauge Evaluation Steps
    1. 4.1 Step 1: Hardware Preparation
    2. 4.2 Step 2: Get a Battery Model
      1. 4.2.1 Battery Test Pattern
      2. 4.2.2 Battery Model Generation
    3. 4.3 Step 3: Input Customized Configuration
    4. 4.4 Step 4: Evaluation
      1. 4.4.1 Detection Data Input Mode
      2. 4.4.2 Communication Data Input Mode
    5. 4.5 Step 5: Gauge Performance Check
      1. 4.5.1 Learning Cycles
      2. 4.5.2 SOC and SOH Accuracy Evaluation
  8. 5MSPM0 Gauge Solutions
    1. 5.1 MSPM0L1306 and 1 LiCO2 Battery
      1. 5.1.1 Hardware Setup Introduction
      2. 5.1.2 Software and Evaluation Introduction
      3. 5.1.3 Battery Test Cases
        1. 5.1.3.1 Performance Test
        2. 5.1.3.2 Current Consumption Test
    2. 5.2 MSPM0G3507, BQ76952 and 4 LiFePO4 Batteries
      1. 5.2.1 Hardware Setup Introduction
      2. 5.2.2 Software and Evaluation Introduction
      3. 5.2.3 Battery Test Cases
        1. 5.2.3.1 Performance Test 1 (Pulse Discharge)
        2. 5.2.3.2 Performance Test 2 (Load Change)
    3. 5.3 MSPM0L1306 and BQ76905
  9. 6Summary
  10. 7References
  11. 8Revision History

Introduction

There are different gauge implementations based on MSPM0. Table 1-1 shows a comparison for customers to choose.

Table 1-1 MSPM0 Gauge Implementation Comparison
MSPM0 Gauge L1 MSPM0 Gauge L2
Detected parameters Voltage; temperature Voltage; temperature; current
Output key parameters SOC SOC; SOH; Remain capacity; Cycles
Used methods Volt Gauge Coulomb counting + volt gauge + mixing + capacity learn
Key technologies Battery model Battery model + data fusion + empty or full compensation+ core temperature evaluation
Application Output step data with low SOC accuracy Output percentage data with high SOC accuracy
Battery type LiCO2, LiMn2O4 LiCO2, LiMn2O4, LiFePO4

MSPM0 Gauge L2 is a pure software algorithm, provided in software lib type and has large flexibility on MCU platform, the AFE or the battery selection. Some key features are shown below:

  • Support SOC, SOH, capacities and warning flag output with limited parameters input
  • Work after MCU power-on without factory calibration or learning cycles
  • Have residual SOC and Full SOC learning and compensation for cell aging, temperature, and current rate
  • Have SOC and FullCap measurement error reduction with the data fusion method
  • Have battery core temperature estimation to handle low temperature discharge
  • Support data saving for reloading

Here is the summary of the MCU resource requirement for this Gauge L2 algorithm.

Single Cell Multiple Cells
Flash Optimization level 0: approx. 14.8k
Optimization level 0: approx. 13.6k
Optimization level 0: approx. 14.8k
Optimization level 0: approx. 13.6k
RAM 1.54k 2 cells: 2.04k
3 cells: 2.54k
N cells: 1.04k + 0.5*Nk
Algorithm running time based on M0L 3ms N*3ms
MSPM0 platform MSPM0L, MSPM0C, MSPM0H, MSPM0G
Examples MSPM0L1306 Gauge board + 1 LiCO2 battery (Section 5.1) MSPM0G3507 Launchpad+ BQ76952 EVM + 4 LiFePO4 batteries (Section 5.2) MSPM0L1306 Gauge board + BQ76905 EVM (Section 5.3)

The design is combined of three parts: hardware, software and GUI. These can be found at MSPM0 Gauge L2 Development Package.

  • The hardware board is used to detect voltage, current and temperature, which are input into algorithm to calculate SOC. As described for different hardware setup details, refer to Section 5.
  • The software project includes the used gauge algorithm, MCU control and AFE communications. For the description of algorithm, refer to Section 2. For the typical usage case, see Section 5.
  • The GUI is written by python, which can be used to communicate with the gauge board, run test pattern, and do data analysis. For GUI introduction, refer to Section 3.