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

Electricity Meter Metrology Accuracy Testing

To test for metrology accuracy in the electricity meter configuration, a source generator is used to provide the voltages and currents to the system at the proper locations mentioned in Test Setup. In this design, a nominal voltage of 230 V between the line and neutral, calibration current of 10 A, and nominal frequency of 50 Hz are used for each of the three phases.

When the voltages and currents are applied to the system, the system outputs the cumulative active energy pulses and cumulative reactive energy pulses at a rate of 6400 pulses/kWh. This pulse output is fed into a reference meter (in the test equipment for this reference design, this pulse output is integrated in the same equipment used for the source generator) that determines the energy % error based on the actual energy provided to the system and the measured energy as determined by the active and reactive energy output pulse of the system. For the 3-phases configuration, cumulative active energy error testing, cumulative reactive energy error testing, individual phase active energy testing, and frequency variation testing are performed after performing the energy gain calibration and phase compensation as described in Section 4.2.5. In addition to the energy error tests, the RMS voltage % error and RMS current % error are measured as well for the two-voltage configuration. For the one-voltage configuration, cumulative active energy error testing and voltage variation tests are also performed.

For cumulative active energy error, cumulative reactive energy error testing, and individual phase active energy testing, current is varied from 50 mA to 100 A. For cumulative active energy and individual phase error testing, a phase shift of 0°, 60°, and −60° is applied between the voltage and current waveforms fed to the reference design. Based on the error from the active energy output pulse, a plot of active energy % error versus current is created for 0°, 60°, and –60° phase shifts. For cumulative reactive energy error testing, a similar process is followed except that 30°, 60°, –30°, and –60° phase shifts are used, and cumulative reactive energy error is plotted instead of cumulative active energy error. In the cumulative active and reactive energy testing, the sum of the energy reading of each phase is tested for accuracy. In contrast, the individual phase energy readings (Phase A, Phase B, and Phase C) are tested for the individual phase active energy testing. When testing the individual energy accuracy of a phase, the other phase is disabled by providing 0-A input for the current of this other phase so that the cumulative active energy reading is ideally equal to the individual phase voltage, which allows the cumulative energy pulse output to be used for testing individual phase accuracy.

In addition to testing active energy by varying current, active energy was also tested by varying the RMS voltage from 240 V – 15 V and measuring the active energy % error. Another set of energy tests performed were frequency variation tests. For this test, the frequency is varied by ±2 Hz from the 60-Hz nominal frequency. This test is conducted at 0.5 A and 10 A at phase shifts of 0°, 60°, and −60°. The resulting active energy error under these conditions are logged.

To test RMS accuracy, the RMS readings were used from the GUI since the pulse output that was used for the energy accuracy tests cannot be used for RMS voltage and current. For the voltage testing, 10-A current is applied for each phase and the voltage is varied from 9 V – 270 V on each phase simultaneously. The voltage was not varied beyond 270 V because of the 275-V varistor present on the board, which can be removed for testing at voltages beyond 275 V. After applying each voltage, the resulting RMS voltage reading from the GUI is logged for each phase after the readings stabilize. Once the measured RMS voltage readings are obtained from the GUI, the actual RMS voltage readings are obtained from the reference meter, which is necessary because the source generator may not generate the requested values for voltage, especially at small voltages. With the reference meter measured RMS voltage and the RMS voltage value of the GUI, the RMS voltage % error is calculated. A similar process is used to calculate the RMS current % error by using 120 V for each phase and varying current from 50 mA to 100 A.

All these tests have been run using the 8 kSPS sample rate setting of the ADS131M08.