SLAA517F May   2012  – August 2021 MSP430F6720A , MSP430F6720A , MSP430F6721A , MSP430F6721A , MSP430F6723A , MSP430F6723A , MSP430F6724A , MSP430F6724A , MSP430F6725A , MSP430F6725A , MSP430F6726A , MSP430F6726A , MSP430F6730A , MSP430F6730A , MSP430F6731A , MSP430F6731A , MSP430F6733A , MSP430F6733A , MSP430F6734A , MSP430F6734A , MSP430F6735A , MSP430F6735A , MSP430F6736 , MSP430F6736 , MSP430F6736A , MSP430F6736A

 

  1.   Trademarks
  2. 1Introduction
  3. 2System Diagrams
  4. 3Hardware Implementation
    1. 3.1 Power Supply
      1. 3.1.1 Resistor Capacitor (RC) Power Supply
    2. 3.2 Analog Inputs
      1. 3.2.1 Voltage Inputs
      2. 3.2.2 Current Inputs
  5. 4Software Implementation
    1. 4.1 Peripherals Setup
      1. 4.1.1 SD24 Setup
    2. 4.2 Foreground Process
      1. 4.2.1 Formulas
        1. 4.2.1.1 Voltage and Current
        2. 4.2.1.2 Power and Energy
    3. 4.3 Background Process
      1. 4.3.1 Voltage and Current Signals
      2. 4.3.2 Phase Compensation
      3. 4.3.3 Frequency Measurement and Cycle Tracking
      4. 4.3.4 LED Pulse Generation
  6. 5Energy Meter Demo
    1. 5.1 EVM Overview
      1. 5.1.1 Connections to the Test Setup for AC Voltages
      2. 5.1.2 Power Supply Options and Jumper Settings
    2. 5.2 Loading the Example Code
      1. 5.2.1 Opening the Project
  7. 6Results and Calibration
    1. 6.1 Viewing Results
    2. 6.2 Calibrating the Meter
      1. 6.2.1 Gain Correction
      2. 6.2.2 Phase Correction
      3. 6.2.3 Metrology Results
  8. 7References
  9. 8Schematics
  10. 9Revision History

System Diagrams

Figure 2-1 shows typical connections of electronic electricity meters (also called energy meters or e-meters) in real-life applications. The supported ac voltages and associated currents are 230 V or 120 V at 50 Hz or 60 Hz. The labels LINE and NEUTRAL indicate low-voltage ac coming from the utilities.

GUID-17BA686E-E380-47EA-A9AF-F819B08F467C-low.gif Figure 2-1 Typical Connections Inside Electronic Meters

More information on the current and voltage sensors, ADCs, and other hardware is provided in the following sections.

Figure 2-2 shows a block diagram of the high-level interface that is used for a single-phase energy meter application using the MSP430F6736(A). A single-phase two-wire star connection to the mains is shown with tamper detection. Current sensors are connected to each of the current channels, and a simple voltage divider is used to measure the corresponding voltages. The CT has an associated burden resistor that must be connected at all times to protect the measuring device. The choice of the CT and the burden resistor is done based on the manufacturer and current range required for energy measurements. The choice of the shunt resistor value is determined by the current range, gain settings of the SD24, and the power dissipation at the sensors. The voltage divider resistors for the voltage channel are selected to make sure that the mains voltage is divided down to the normal input ranges that are valid for the MSP430™ SD24. For these values, see the MSP430F5xx and MSP430F6xx Family User's Guide and the device-specific data sheet (MSP430F673x, MSP430F672x Mixed-Signal Microcontrollers and MSP430F673xA, MSP430F672xA Mixed-Signal Microcontrollers).

GUID-0EDA88E2-D72B-497F-A78E-E4FC820C5AEF-low.gif Figure 2-2 1-Phase 2-Wire Star Connection Using MSP430F6736(A)

L and N refer to the line and neutral voltages, respectively, and are interchangeable as long as the device is subject to only one voltage and not both simultaneously at its pins. The other signals of interest are the PULSE1 and PULSE2. They are used to transmit active and reactive energy pulses used for accuracy measurement and calibration.