TIDUEM7A April   2019  – February 2021

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
    1. 1.1 End Equipment
      1. 1.1.1 Electricity Meter
    2. 1.2 Key System Specifications
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Highlighted Products
      1. 2.2.1 ADS131M04
      2. 2.2.2 TPS7A78
      3. 2.2.3 MSP432P4111
      4. 2.2.4 TPS3840
      5. 2.2.5 THVD1500
      6. 2.2.6 ISO7731B
      7. 2.2.7 TRS3232E
      8. 2.2.8 TPS709
      9. 2.2.9 ISO7720
    3. 2.3 Design Considerations
      1. 2.3.1 Design Hardware Implementation
        1. 2.3.1.1 TPS7A78 Cap-Drop Supply
        2. 2.3.1.2 TPS3840 SVS
        3. 2.3.1.3 Analog Inputs
          1. 2.3.1.3.1 Voltage Measurement Analog Front End
          2. 2.3.1.3.2 Current Measurement Analog Front End
      2. 2.3.2 Current-Detection Mode
        1. 2.3.2.1 ADS131M04 Current-Detection Procedure
        2. 2.3.2.2 Using an MCU to Trigger Current-Detection Mode
          1. 2.3.2.2.1 Using a Timer to Trigger Current-Detection Mode Regularly
          2. 2.3.2.2.2 MCU Procedure for Entering and Exiting Current-Detection Mode
        3. 2.3.2.3 How to Implement Software for Metrology Testing
          1. 2.3.2.3.1 Setup
            1. 2.3.2.3.1.1 Clock
            2. 2.3.2.3.1.2 Port Map
            3. 2.3.2.3.1.3 UART Setup for GUI Communication
            4. 2.3.2.3.1.4 Real-Time Clock (RTC)
            5. 2.3.2.3.1.5 LCD Controller
            6. 2.3.2.3.1.6 Direct Memory Access (DMA)
            7. 2.3.2.3.1.7 ADC Setup
          2. 2.3.2.3.2 Foreground Process
            1. 2.3.2.3.2.1 Formulas
          3. 2.3.2.3.3 Background Process
            1. 2.3.2.3.3.1 per_sample_dsp()
              1. 2.3.2.3.3.1.1 Voltage and Current Signals
              2. 2.3.2.3.3.1.2 Frequency Measurement and Cycle Tracking
            2. 2.3.2.3.3.2 LED Pulse Generation
            3. 2.3.2.3.3.3 Phase Compensation
    4. 2.4 Hardware, Software, Testing Requirements, and Test Results
      1. 2.4.1 Required Hardware and Software
        1. 2.4.1.1 Cautions and Warnings
        2. 2.4.1.2 Hardware
          1. 2.4.1.2.1 Connections to the Test Setup
          2. 2.4.1.2.2 Power Supply Options and Jumper Settings
        3. 2.4.1.3 Software
      2. 2.4.2 Testing and Results
        1. 2.4.2.1 Test Setup
          1. 2.4.2.1.1 SVS and Cap-Drop Functionality Testing
          2. 2.4.2.1.2 Electricity Meter Metrology Accuracy Testing
          3. 2.4.2.1.3 Current-Detection Mode Testing
          4. 2.4.2.1.4 Viewing Metrology Readings and Calibration
            1. 2.4.2.1.4.1 Viewing Results From LCD
            2. 2.4.2.1.4.2 Calibrating and Viewing Results From PC
              1. 2.4.2.1.4.2.1 Viewing Results
              2. 2.4.2.1.4.2.2 Calibration
                1. 2.4.2.1.4.2.2.1 Gain Calibration
                  1. 4.2.1.4.2.2.1.1 Voltage and Current Gain Calibration
                  2. 4.2.1.4.2.2.1.2 Active Power Gain Calibration
                2. 2.4.2.1.4.2.2.2 Offset Calibration
                3. 2.4.2.1.4.2.2.3 Phase Calibration
        2. 2.4.2.2 Test Results
          1. 2.4.2.2.1 SVS and TPS7A78 Functionality Testing Results
          2. 2.4.2.2.2 Electricity Meter Metrology Accuracy Results
          3. 2.4.2.2.3 Current-Detection Mode Results
  8. 3Design Files
    1. 3.1 Schematics
    2. 3.2 Bill of Materials
    3. 3.3 PCB Layout Recommendations
      1. 3.3.1 Layout Prints
    4. 3.4 Altium Project
    5. 3.5 Gerber Files
    6. 3.6 Assembly Drawings
  9. 4Related Documentation
    1. 4.1 Trademarks
  10. 5About the Author
  11. 6Revision History

Block Diagram

Figure 2-1 depicts a block diagram that shows the high-level interface used for an ADS131M04-based one-phase energy measurement application.

GUID-54FC819D-7E40-44D7-A5E1-40DA4770169A-low.gif Figure 2-1 TIDA-010036 Block Diagram

In Figure 2-1, a simple voltage divider is used for translating the Mains voltage to a voltage that can be sensed by the ADC. For the current, two current sensors are used, where one current sensor is used for sensing the line current and another current sensor is used to sense the neutral current. The design uses a shunt and a current transformer for the current sensors. In Figure 2-1, the system shows that the CT measures the line current, the shunt measures the neutral current, and the system is referenced with respect to the neutral; however, the design also supports a second configuration where the CT measures the neutral current, the shunt measures the line current, and the system is referenced with respect to the line.

For the shunt current sensor, the resistance of the shunt is selected based on the current range required for energy measurements and also the minimization of the maximum power dissipation of the shunt. For the CT current sensor, the 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 ensure the Mains voltage is divided down to adhere to the normal input ranges of the ADS131M04 device. Since the ADS131M04 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. By reducing the voltage fed to the ADS131M04 voltage ADC, voltage-to-current crosstalk, which actually affects metrology accuracy more than voltage ADC accuracy, is reduced at the cost of voltage accuracy.

In this design, the ADS131M04 device interacts with the MSP432™ MCU in the following manner:

  1. The CLKIN clock used by the ADS131M04 device is provided from the SMCLK clock signal output of the MSP432 MCU.
  2. The ADS131M04 device divides the clock provided on its CLKIN pin by two and uses this divided clock as its delta-sigma modulation clock.
  3. When new ADC samples are ready, the ADS131M04 device asserts its DRDY pin, which alerts the MSP432 MCU that new samples are available.
  4. After being alerted of new samples, the MSP432 MCU uses one of its SPI interfaces and its DMA to get the voltage and current samples from the ADS131M04 device.

In this design, a TPS3840 device is used as an external SVS for the MSP432 MCU. Although the MSP432 MCU has an internal SVS that suffices for this application, the TPS3840 standalone SVS is used because there is additional security in having an SVS that is independent of the MCU.

To power this design, a TPS7A78 device is used to implement a cap-drop supply. This TPS7A78 device allows a higher output current than traditional cap-drop supplies. It also has a power failure pin, which can be used to alert the MCU whenever the system sees an AC supply failure either because of a power outage or if the neutral connection has been removed from the meter. The TPS7A78 has a power good pin, which can be used to alert the MCU that the output voltage of the cap-drop supply has ramped up after power has been restored from a power outage.

Other signals of interest in Figure 2-1 are the active and reactive energy pulses used for accuracy measurement and calibration. The ISO7720 device provides an isolated connection for these pulses for connecting to non-isolated equipment. This is especially needed if the shunt measures the line current since the system is referenced to this high-voltage line connection as well for this configuration.

In addition to isolated pulses, the design supports isolated RS-232 communication through the use of the TPS70933, ISO7731B, and TRS3232E devices. The design can be configured to use RS-485 as well instead of RS-232 through the use of the ISO7731B and THVD1500 devices on the board.