SLAAEB3A May 2023 – July 2024 MSPM0G3507 , MSPM0L1106 , MSPM0L1306
PRODUCTION DATA
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.