SLAAEB3 may 2023 MSPM0L1106 , MSPM0L1106
PRODUCTION DATA
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.