SBOA444 November   2020 TMCS1100

 

  1.   Trademarks
  2. 1Introduction
  3. 2Implementation Block Diagram
  4. 3Hardware Implemenation
    1. 3.1 Analog Inputs
      1. 3.1.1 Voltage Measurement Analog Front End
      2. 3.1.2 Current Measurement Analog Front End
    2. 3.2 MSP432 LaunchPad Connections
    3. 3.3 PCB Layout Recommendations
  5. 4How to Implement Software for Metrology Testing
    1. 4.1 Setup
      1. 4.1.1 Clock
      2. 4.1.2 UART Setup for GUI Communication
      3. 4.1.3 Real-Time Clock (RTC)
      4. 4.1.4 Direct Memory Access (DMA)
      5. 4.1.5 ADC Setup
    2. 4.2 Foreground Process
      1. 4.2.1 Formulas
        1. 4.2.1.1 Standard Metrology Parameters
        2. 4.2.1.2 Power Quality Formulas
    3. 4.3 Background Process
      1. 4.3.1 per_sample_dsp( )
        1. 4.3.1.1 Voltage and Current ADC Samples
        2. 4.3.1.2 Pure Waveform Samples
        3. 4.3.1.3 Frequency Measurement and Cycle Tracking
      2. 4.3.2 LED Pulse Generation
      3. 4.3.3 Phase Compensation
  6. 5Metrology Accuracy Testing
    1. 5.1 Test Setup
    2. 5.2 Results
  7. 6Schematics
  8. 7References

Voltage Measurement Analog Front End

The nominal voltage from the mains is from 100 V–240 V, so it needs to be scaled down to be sensed by an ADC. Since the ADS131M08 device can sense voltages down to 1.2 V, AC signals from mains can be divided down with a voltage divider and then fed to the ADS131M08 without the need for level shifters. In the board used for testing, there are four voltage sensing circuits; however, only the voltage divider circuit in the Analog Front End for Voltage Inputs figure is used for the PDU configuration referenced in this application note. The other three voltage sensing circuits are outside the scope of the PDU configuration referenced in this application note.

GUID-20201005-CA0I-PHZH-HXDR-XSZN01H4VT8F-low.gifFigure 3-1 Analog Front End for Voltage Inputs.
In the analog front end for voltage, J36 is where the input Mains voltage is applied. This circuit consists of a spike protection varistor (RV1), footprints for electromagnetic interference filter beads (resistor footprints R95 and R102) , a voltage divider network (R96, R97, R98, and R100), and an RC low-pass filter (R99, R101, and C53).

At lower currents, voltage-to-current crosstalk affects active energy accuracy much more than voltage accuracy if power offset calibration is not performed. To maximize the accuracy at these lower currents, the entire ADC range is not used for voltage channels. Since the ADCs of the ADS131M08 device are high-accuracy ADCs, using the reduced ADC range for the voltage channels in this design still provides more than enough accuracy for measuring voltage. Equation 1 shows how to calculate the range of differential voltages fed to the voltage ADC channel for a given Mains voltage and selected voltage divider resistor values:

Equation 1.
GUID-20201005-CA0I-2KTK-SWLV-R5HK7RVF7NWV-low.gif

Based on this formula and the previously-stated selected resistor values, for a mains voltage of 230 V, the input signal to the voltage ADC has a voltage swing of ±246 mV (174 mVRMS). The ±246-mV voltage range is well within the ±1.2-V input voltage that can be sensed by the ADS131M08 device for the selected PGA gain value of 1 that is used for the voltage channels.