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

Gauge GUI Introduction

In this demo, a Gauge GUI will be used to record MCU data, run battery test case, and do data conversion. This GUI has two pages. First is MCU COM Tool, used to communicate with MSPM0 and record the MCU transmitted battery running data. Second is SM COM Tool, used to communicate with the source meter, run battery test case and record the test data sent from the source meter.

The used function for current detection is to receive the battery running data from MCU, shown in the function 1 of Figure 4-1. The data is saved automatically in excel with a name “time-McuData.xlsx”, after the battery test case settled in SM COM Tool is finished or you stop the test by pressing the "Disconnect" button.

GUID-E2BF0E80-EC21-4620-9CE5-AA9257EB54C7-low.pngFigure 4-1 MCU COM Tool Function

For the SM COM Tool, the used function for current detection is function 1, shown in Figure 4-2. It is used to control the source meter to run the battery testcase to test the current detection performance and show the data measured by source meter on the GUI. After the test is finished, the record data sent from source meter is saved in excel with a name “time-SmData.xlsx”. If you want to recreate this part, for the software, you need to at least install NI_VISA. For hardware, you need to buy a USB to rs232 wire and a keithley 2602A source meter.

GUID-DCCA80BA-4E7E-4A9D-BA99-0424696C2316-low.pngFigure 4-2 SM COM Tool Function