SBAU487 August 2025
The MSPM0G1506 found on the ADS131M08REF-EVM is flashed with the necessary firmware to implement the various metering functions found within the energy measurement library. The Energy Measurement software is divided three layers. The MSPM0 DriverLib layer consists of all the peripherals defined and is configured using SysConfig. The module layer contains four modules; Hardware Abstraction Layer (HAL) module, Analog front end converter (ADS131M0x) module, Metrology module, and a Communication module. The HAL module provides Application Programming Interfaces (APIs) to manipulate and configure MCU pins and peripherals. The Analog front end module provides Application Programming Interfaces (APIs) related to configuration of ADS131M0x and SPI communication. The metrology module provides the APIs to process the sampled data and do the mathematical calculations. The communication module is used to receive commands from the GUI and send the computation results to the GUI. Documentation describing the functions and formulas used are installed with the MSPM0-SDK package.
The GUI does not support direct programming of the ADS131M08, other than gain and software integration which takes effect upon reset of the controller. The MSPM0G1506 determines the state of the VGAIN, IGAIN, and SW INT switches as part of an initialization process on start-up. The MSPM0G1506 configures the ADS131M08 through 4-wire SPI communication to operate with a 4.096MHz SCLK with 512 oversampling ratio (OSR) and a data rate of 8kSPS.