SLAAEB3 may   2023 MSPM0L1106 , MSPM0L1106

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

Software Structure and Important Functions

The software project is shown in Figure 3-1, developed in CCS. Here is the software project link. 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 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), the MSPM0 will start communicating with BQ769x2. More details about the software are shown in the following section.

GUID-92722EE8-82C5-4E27-878E-3CED8B743A6C-low.png Figure 3-1 Software Project View