SLAA494B May   2011  – September 2023 MSP430AFE221 , MSP430AFE222 , MSP430AFE223 , MSP430AFE231 , MSP430AFE232 , MSP430AFE233 , MSP430AFE251 , MSP430AFE252 , MSP430AFE253

 

  1.   1
  2.   Implementation of a Single-Phase Electronic Watt-Hour Meter Using the MSP430AFE2xx
  3. Trademarks
  4. Introduction
  5. Block Diagram
  6. Hardware Implementation
    1. 4.1 Power Supply
      1. 4.1.1 Resistor Capacitor (RC) Power Supply
      2. 4.1.2 Switching-Based Power Supply
    2. 4.2 Analog Inputs
      1. 4.2.1 Voltage Inputs
      2. 4.2.2 Current Inputs
  7. Software Implementation
    1. 5.1 Peripherals Setup
      1. 5.1.1 SD24 Setup
    2. 5.2 Foreground Process
      1. 5.2.1 Formulas
        1. 5.2.1.1 Voltage and Current
        2. 5.2.1.2 Power and Energy
    3. 5.3 The Background Process
      1. 5.3.1 Voltage and Current Signals
      2. 5.3.2 Phase Compensation
      3. 5.3.3 Frequency Measurement and Cycle Tracking
      4. 5.3.4 LED Pulse Generation
    4. 5.4 Energy Meter Configuration
  8. Energy Meter Demo
    1. 6.1 EVM Overview
      1. 6.1.1 Connections to the Test Setup or AC Voltages
      2. 6.1.2 Power Supply Options
    2. 6.2 Loading the Example Code
      1. 6.2.1 Opening the Project
  9. Results
    1. 7.1 Viewing Results on PC
    2. 7.2 Viewing Results During Debug
  10. Important Notes
  11. Schematics
  12. 10References
  13. 11Revision History

Block Diagram

Figure 3-1 shows the system block diagram of the EVM. The EVM is divided into the metrology portion that has the MSP430AFE and the application portion that has the MSP430F6638. The MSP430AFE is a slave metrology processor and the MSP430F6638 is the host/application processor. The two MSP430 devices communicate through digital isolators via serial peripheral interface (SPI) or universal asynchronous receiver/transmitter (UART).

GUID-FD2C9398-4BE9-4136-B102-41C3F0E1AD86-low.gif Figure 3-1 Energy Meter EVM System Block Diagram

Figure 3-2 shows the high-level interface for a single-phase energy-meter application. 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 voltage divider is used for corresponding voltages. The current transformer (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 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 on the AFE, and the tolerance of the power dissipation. 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 that are valid for the MSP430 SD24. For these details, see the MSP430x2xx Family User's Guide and the device-specific data sheet.

GUID-6B75F731-9E7D-44FC-AAF4-5216A4711D91-low.gif Figure 3-2 One-Phase Two-Wire Star Connection Using MSP430AFE2x3