SLUAAX5 August   2024 BQ25750 , BQ40Z80 , MSPM0L1306

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2The Role of MCU in Smart Battery System
  6. 3Application Example Using BQ25750, BQ40z80, and MSPM0L1306
    1. 3.1 Gauge Setup
    2. 3.2 Charger Setup
    3. 3.3 MCU Setup
    4. 3.4 Communication Protocol
    5. 3.5 MCU Code Example
    6. 3.6 Data Collected
  7. 4Summary
  8. 5References

MCU Setup


 Typical
                                        Application block diagram of the MSPM0L1306

Figure 3-4 Typical Application block diagram of the MSPM0L1306

The block diagram shown above is the typical application of using the MSPM0L1306. For this application note, PA0, PA1, PA15 and P16 were used as I2C and SMBus lines. Those ports have to be configured either through sysconfig file provided by TI or manually defining before compile time. The clock speeds for both were 100kHz.

To verify normal operation of MCU, refer to the MSPM0L1306 LaunchPad Development Kit (LP‑MSPM0L1306) user's guide. TI has an extensive device driver library with multiple examples and use cases for different communication protocols. TI also provides an integrated development environment (IDE) to develop and debug code for the MCU, available through the cloud and on desktops. Applications using TI’s MSP MCU can leverage SMBus library and I2C library to interface with multiple devices with only the device addresses.

Once data can be transmitted and received by the MCU through TI’s function calls, the MCU has to translate such that the data can be sent through different communication protocols. Code executed on the MCU has to be mindful of the endianness of the data, and scaling of data based on the device properties (reserved bits in registers, bit step, and range). The functionality of the MCU can also be scaled to more than translating between communication protocols with the help of TI's extensive library and products.