SLVUDF6 September   2025

 

  1.   1
  2.   Description
  3.   Get Started
  4.   Features
  5.   Applications
  6.   6
  7. 1Evaluation Module Overview
    1. 1.1 Introduction
    2. 1.2 Kit Contents
    3. 1.3 System Description
      1. 1.3.1 Key System Specifications
      2. 1.3.2 End Equipment
      3. 1.3.3 Electricity Meter
    4. 1.4 Device Information
  8. 2Hardware
    1. 2.1 System Overview
      1. 2.1.1 Block Diagram
      2. 2.1.2 Design Considerations
        1. 2.1.2.1 Voltage Measurement - Analog Front End
        2. 2.1.2.2 Current Measurement - Analog Front End
        3. 2.1.2.3 Input Voltage
  9. 3Software
    1. 3.1 Metrology Overview
      1. 3.1.1 Metrology Formulas
      2. 3.1.2 UART for PC GUI Communication
      3. 3.1.3 Direct Memory Access (DMA)
      4. 3.1.4 ADC Setup
      5. 3.1.5 Foreground Process
      6. 3.1.6 Background Process
      7. 3.1.7 Software Function per_sample_dsp ()
      8. 3.1.8 Frequency Measurement and Cycle Tracking
      9. 3.1.9 LED Pulse Generation
  10. 4Implementation Results
    1. 4.1 Evaluation Procedure
      1. 4.1.1 Equipment Setup
      2. 4.1.2 Test Procedure
        1. 4.1.2.1 Working with the Metrology GUI
        2. 4.1.2.2 Calibration
          1. 4.1.2.2.1 Voltage and Current Offset Calibration
          2. 4.1.2.2.2 Voltage and Current Gain Calibration
          3. 4.1.2.2.3 Active Power Gain Calibration
          4. 4.1.2.2.4 Offset Calibration
          5. 4.1.2.2.5 Phase Calibration
    2. 4.2 Performance Data and Results
      1. 4.2.1 Electricity Meter Metrology Accuracy Results
  11. 5Hardware Design Files
    1. 5.1 Schematics
    2. 5.2 PCB Layouts
    3. 5.3 Bill of Materials (BOM)
  12. 6Additional Information
    1. 6.1 Trademarks
  13. 7Compliance Information
    1. 7.1 Compliance and Certifications
  14. 8Related Documentation

Frequency Measurement and Cycle Tracking

The instantaneous voltage, currents, active powers, and reactive powers are accumulated in 64-bit registers. A cycle tracking counter keeps track of the number of cycles accumulated. When CYCLES_PER_COMPUTATION number of cycles have been accumulated, the background process stores these accumulation registers and notifies the foreground process to produce the average results, such as RMS and power values. Cycle boundaries are used to trigger the foreground averaging process because this process produces very stable results.

For frequency measurements, a straight line interpolation is used between the zero crossing voltage samples. Because noise spikes can also cause errors, the application uses a rate-of-change check to filter out the possible erroneous signals and make sure that the two points are interpolated from genuine zero crossing points. For example, with two negative samples, a noise spike can make one of the samples positive, thereby making the negative and positive pair appear as if there is a zero crossing.

The resultant cycle-to-cycle timing goes through a weak low-pass filter to further smooth out any cycle-to-cycle variations. This filtering results in a stable and accurate frequency measurement that is tolerant of noise.