TIDUF25 june   2023 ADS131M08 , MSPM0G1507

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 End Equipment
    2. 1.2 Electricity Meter
    3. 1.3 Power Quality Meter, Power Quality Analyzer
    4. 1.4 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 External Supply Voltage Supervisor (SVS) With TPS3840
      2. 2.2.2 Magnetic Tamper Detection With TMAG5273 Linear 3D Hall-Effect Sensor
      3. 2.2.3 Analog Inputs
        1. 2.2.3.1 Voltage Measurement Analog Front End
        2. 2.2.3.2 Current Measurement Analog Front End
    3. 2.3 Highlighted Products
      1. 2.3.1  ADS131M08
      2. 2.3.2  MSPM0G3507
      3. 2.3.3  MSP430FR4131 for Driving Segmented LCD Displays
      4. 2.3.4  TPS3840
      5. 2.3.5  THVD1400
      6. 2.3.6  ISO6731
      7. 2.3.7  ISO6720
      8. 2.3.8  TRS3232E
      9. 2.3.9  TPS709
      10. 2.3.10 TMAG5273
  9. 3System Design Theory
    1. 3.1  How to Implement Software for Metrology Testing
    2. 3.2  Clocking System
    3. 3.3  UART Setup for GUI Communication
    4. 3.4  Real-Time Clock (RTC)
    5. 3.5  LCD Controller in MSP430FR4131
    6. 3.6  Direct Memory Access (DMA)
    7. 3.7  ADC Setup
    8. 3.8  Foreground Process
      1. 3.8.1 Formulas
    9. 3.9  Background Process
    10. 3.10 Software Function per_sample_dsp()
      1. 3.10.1 Voltage and Current Signals
      2. 3.10.2 Frequency Measurement and Cycle Tracking
    11. 3.11 LED Pulse Generation
    12. 3.12 Phase Compensation
  10. 4Hardware, Software, Testing Requirements, and Test Results
    1. 4.1 Required Hardware and Software
      1. 4.1.1 Hardware
      2. 4.1.2 Cautions and Warnings
    2. 4.2 Test Setup
      1. 4.2.1  Connecting the TIDA-010243 to the Metering Test Equipment
      2. 4.2.2  Power Supply Options and Jumper Settings
      3. 4.2.3  Electricity Meter Metrology Accuracy Testing
      4. 4.2.4  Viewing Metrology Readings and Calibration
        1. 4.2.4.1 Viewing Results From LCD
        2. 4.2.4.2 Calibrating and Viewing Results From PC
      5. 4.2.5  Calibration and FLASH Settings for MSPM0+ MCU
      6. 4.2.6  Gain Calibration
      7. 4.2.7  Voltage and Current Gain Calibration
      8. 4.2.8  Active Power Gain Calibration
      9. 4.2.9  Offset Calibration
      10. 4.2.10 Phase Calibration
      11. 4.2.11 Software Code Example
    3. 4.3 Test Results
      1. 4.3.1 SVS Functionality Testing
      2. 4.3.2 Electricity Meter Metrology Accuracy Results
  11. 5Design and Documentation Support
    1. 5.1 Design Files
      1. 5.1.1 Schematics
      2. 5.1.2 BOM
      3. 5.1.3 PCB Layout Recommendations
      4. 5.1.4 Layout Prints
      5. 5.1.5 Gerber Files
    2. 5.2 Tools and Software
    3. 5.3 Documentation Support
    4. 5.4 Support Resources
    5. 5.5 Trademarks
  12. 6About the Author

Block Diagram

TIDA-010243 Block Diagram, Three-Phase + Neutral Configuration depicts the block diagram of the high-level interface used for an ADS131M08-based three-phase energy measurement application. For each phase, the line-to-neutral voltage is directly measured, as well as the current for each line (3 phases) and the current thru the N (neutral) wire.

In the TIDA-010243 block diagram, a current transformer (CT) connects to each current channel and a simple voltage divider is used for dividing down the corresponding voltage of each channel. Each CT has an associated burden resistor that must be connected at all times to protect the measuring device. The selection of the CT and the burden resistor is made based on the manufacturer and current range required for energy measurements.

The choice of voltage divider resistors for the voltage channel is selected to make sure the Mains voltage is divided down to adhere to the normal input ranges of the ADS131M08 device. Since the ADS131M08 ADCs have a large dynamic range and a large dynamic range is not needed to measure voltage, the voltage front-end circuitry is purposely selected so that the maximum voltage seen at the inputs of the voltage channel ADCs are only a fraction of the full-scale voltage.

GUID-20230518-SS0I-Q3LP-FWVF-PGZFNWRSBCRZ-low.svg Figure 2-1 TIDA-010243 Block Diagram, Three-Phase + Neutral Configuration

By reducing the voltage fed to the three ADS131M08 voltage ADC channels, voltage to current crosstalk, which actually affects metrology accuracy more than voltage ADC accuracy, is reduced at the cost of voltage accuracy, thereby resulting in more accurate energy measurements at lower currents.

The ADS131M08 device interacts with the MSPM0+ MCU in the following manner:

  1. The CLKIN clock used by the ADS131M08 device is provided from the M0_CLKOUT clock signal output of the MSPM0G3507 MCU.
  2. The ADS131M08 device divides the clock provided on the CLKIN pin by two and uses this divided clock as the delta-sigma modulation clock.
  3. When new ADC samples are ready, the ADS131M08 device asserts the DRDY pin, which alerts the MSPM0+ MCU that new samples are available.
  4. After being alerted of new samples, the MSPM0+ MCU uses one of the SPIs and two of the DMA channels in the DMA module to get the voltage and current samples from the ADS131M08 device.

The optional TPS3840 device is used as an external SVS for the MSPM0+ MCU. Although the MSPM0+ MCU has internal Power-on reset (POR) and POR as well as a Brownout reset (BOR) supply monitor with four configurable threshold voltages, the external TPS3840 standalone SVS adds redundancy in case of a power failure.

Other signals of interest in Figure 2-1 are the active and reactive energy pulses used for accuracy measurement and calibration. The ISO6720 device provides an isolated connection for these pulses for connecting to non-isolated equipment. This design also supports isolated RS-232 communication through the use of the TPS70933, ISO6731B, and TRS3232E devices. The hardware uses a push switch to select between the RS-485 interface, with ISO6731 and THVD1400 devices, or the RS-232 interface with TRS3232E.

The design can be powered either by applying 3.3 V at TP6 and GND at TP1 directly or by connecting 3.3 V and GND to the Application Board Connector J13. See Header Names and Jumper Settings for more details on the proper jumper connections for powering the board for both options.