SLAAEE6 October   2023 MSPM0L1306 , MSPM0L1306

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Introduction
  6. 3Software Introduction
  7. 4Gauge GUI Introduction
  8. 5Current Detection and Calibration Method
    1. 5.1 MSPM0 OPA Introduction
      1. 5.1.1 OPA input and output limitation
      2. 5.1.2 OPA Accuracy Influence
    2. 5.2 Current Detection Method
    3. 5.3 Current Calibration Method
      1. 5.3.1 (R1+R2)/R2 calibration
      2. 5.3.2 OPA1 Voffset calibration
      3. 5.3.3 R3/(R4+R3) calibration
      4. 5.3.4 Vref calibration
  9. 6Solution Evaluation Steps
    1. 6.1 Step1: Hardware Preparation
    2. 6.2 Step2: Evaluation
  10. 7MSPM0 Gauge Solution Test Results
    1. 7.1 Calibration Test Result
    2. 7.2 Current Detection Result
      1. 7.2.1 Test Under 25°C
      2. 7.2.2 Test Under 0°C
      3. 7.2.3 Test Under 50°C
      4. 7.2.4 Conclusion
    3. 7.3 Current Consumption Test
  11. 8Solution Summery and Improvement Direction
    1. 8.1 Shunter Resistor
    2. 8.2 ADC and its Reference
    3. 8.3 Runtime Calibration

Step2: Evaluation

Before you start, there are some settings related to evaluation in UserConfig.h.

GUID-29E1148D-A3FE-48E2-AB06-55F33C3145AB-low.pngFigure 6-1 Mode Setting

If you enable the definition of “DEBUG”, you can see the current calibration data output from the UART1.

For different output modes, “UART_OUTPUT” means enabling data output through UART1. Then you can observe the running parameters on the GUI. “NO_OUTPUT” means terminating the UART data output.

For customized configuration settings, you may need to make change for “VCELL_FACTOR”, “SHUNT_RESISTOR_VALUE_R” and “NTC_PAIR_RESISTOR_VALUE” according to your hardware setup.

The hardware test setup is shown in Figure 6-2. You need the MSPM0 Gauge board and a real battery for test. You can insert the battery into the socket and charge or discharge it on J2. You can also connect a power supply to J3 directly.

The detection data (Vcell, Icell, Tcell) comes from the MSPM0 analog peripherals. Then it sends the data to the GUI through UART1 on J4. The GUI can help to record the battery running data for further analysis.

In order to ensure the voltage of programming pins mach with the debug port of MUC, when programming the MSPM0, use a jumper to connect VMCU and VEx on J1. As the UART1 port supports up to 5 V input and output voltage, When evaluating, use a jumper to connect VMCU and VIn on J1.

GUID-B6F61061-33BC-44A4-A93A-A98200130A31-low.pngFigure 6-2 Hardware Setup and Connection