SLAAEB3A May   2023  – July 2024 MSPM0G3507 , MSPM0L1106 , MSPM0L1306

PRODUCTION DATA  

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Connection
  6. 3Software Structure and Important Functions
    1. 3.1 System Initialization
    2. 3.2 Low-Level Command Control
    3. 3.3 High-Level Function
  7. 4Test Result of Important Functions
    1. 4.1 Read Alarm Status
    2. 4.2 Read Safety Status
    3. 4.3 Read PF Status
    4. 4.4 Read Current
    5. 4.5 Read All Temperatures
    6. 4.6 Read All Voltages
  8. 5References
  9. 6Revision History

Software Structure and Important Functions

Figure 3-1 shows the software project developed in Code Composer Studio™ (CCS). Obtain the code from MSPM0 SDK or from online MSPM0SDK, MSPM0G3507, or MSPM0L1306. The software project mainly consists of three parts. For other files, the files are the default files for the MSPM0 project.

The BQ769x2_protocol declares all of the memory registers, direct commands, sub-commands, and command only sub-commands’ definitions in the BQ769x2 TRM. BQ769x2_protocol also has the functions of getting related status, faults, and measurement result.

The I2C_Communication mainly includes the write and read registers function based on I2C protocol for M0.

The main includes the highest system function code. After pressing the button (PA14 of LP-MSPM0L1306 or PB21 of MSPM0G3507), the MSPM0 starts communicating with BQ769x2. More details about the software are shown in the following section.

 Software Project View Figure 3-1 Software Project View