SLAAEF5 March   2024 MSPM0G1505 , MSPM0G1505 , MSPM0G1506 , MSPM0G1506 , MSPM0G1507 , MSPM0G1507 , MSPM0L1303 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306 , MSPM0L1306-Q1 , 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 Equations
      1. 2.2.1 NomAbsSoc Calculation
        1. 2.2.1.1 Coulometer With OCV Calibration
        2. 2.2.1.2 Battery Model Filter
      2. 2.2.2 CusRltSoc Calculation
      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 Step1: Hardware Preparation
    2. 4.2 Step2: Get Battery Model
      1. 4.2.1 Battery Test Pattern
      2. 4.2.2 Battery Model Generation
    3. 4.3 Step3: Input Customized Configuration
    4. 4.4 Step4: Evaluation
      1. 4.4.1 Detection Data Input Mode
      2. 4.4.2 Communication Data Input Mode
  8. 5MSPM0 Gauge Solutions
    1. 5.1 MSPM0L1306 + 1 LiCO2 Battery
      1. 5.1.1 Hardware Setup Introduction
      2. 5.1.2 Software and Evaluation Introduction
      3. 5.1.3 Battery Testcases
        1. 5.1.3.1 Performance Test
        2. 5.1.3.2 Current Consumption Test
    2. 5.2 MSPM0G3507 + BQ76952 + 4 LiFePO4 Batteries
      1. 5.2.1 Hardware Setup Introduction
      2. 5.2.2 Software and Evaluation Introduction
      3. 5.2.3 Battery Testcases
        1. 5.2.3.1 Performance Test1 (Pulse Discharge)
        2. 5.2.3.2 Performance Test2 (Load Change)
  9. 6References

Software and Evaluation Introduction

Before starting software development and evaluation, it is suggested that you first refer to MSPM0 Design Flow Guide to have a basic understanding about MSPM0 ecosystem. It will help you quickly catch up the MSPM0 development.

Figure 5-6 illustrates the software project. The project and files related to the gauge algorithm has five parts. For other files, they are same for all the MSPM0 projects.

GUID-15715CE0-825F-481D-8CCE-168C71B3EC06-low.png Figure 5-6 MSPM0 Gauge Software Project View

For Gauge_UserConfig part, you will find the description in Section 4.3. The Gauge_Algorithm part introduction is in Section 2. For the Driver part, it includes all the MCU related control. It prepares Icell, Vcell and Tcell data into Gauge_Algorithm. For the Gauge_COMM part, it handles all the UART protocol. For the Gauge_App part, it includes the high-level gauge algorithm calling. This is the place for customers to customize their own functions. For the Main part, it includes the highest system function code.

Remember to follow Section 4 to update the configurations in Gauge_UserConfig folder:

  • Generate battery models or use the default one
  • Update the configuration in tBattParamsConfig structure
  • Update battGlobalParams_xx, and battGlobalParamsArray according to your own battery cells.
  • Update the detection mode, communication mode, circuit table length and cell numbers

After you program the MSPM0 through XDS110, you can use the GUI to check and record the results.