TIDUF25 june   2023 ADS131M08 , MSPM0G1507

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 End Equipment
    2. 1.2 Electricity Meter
    3. 1.3 Power Quality Meter, Power Quality Analyzer
    4. 1.4 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 External Supply Voltage Supervisor (SVS) With TPS3840
      2. 2.2.2 Magnetic Tamper Detection With TMAG5273 Linear 3D Hall-Effect Sensor
      3. 2.2.3 Analog Inputs
        1. 2.2.3.1 Voltage Measurement Analog Front End
        2. 2.2.3.2 Current Measurement Analog Front End
    3. 2.3 Highlighted Products
      1. 2.3.1  ADS131M08
      2. 2.3.2  MSPM0G3507
      3. 2.3.3  MSP430FR4131 for Driving Segmented LCD Displays
      4. 2.3.4  TPS3840
      5. 2.3.5  THVD1400
      6. 2.3.6  ISO6731
      7. 2.3.7  ISO6720
      8. 2.3.8  TRS3232E
      9. 2.3.9  TPS709
      10. 2.3.10 TMAG5273
  9. 3System Design Theory
    1. 3.1  How to Implement Software for Metrology Testing
    2. 3.2  Clocking System
    3. 3.3  UART Setup for GUI Communication
    4. 3.4  Real-Time Clock (RTC)
    5. 3.5  LCD Controller in MSP430FR4131
    6. 3.6  Direct Memory Access (DMA)
    7. 3.7  ADC Setup
    8. 3.8  Foreground Process
      1. 3.8.1 Formulas
    9. 3.9  Background Process
    10. 3.10 Software Function per_sample_dsp()
      1. 3.10.1 Voltage and Current Signals
      2. 3.10.2 Frequency Measurement and Cycle Tracking
    11. 3.11 LED Pulse Generation
    12. 3.12 Phase Compensation
  10. 4Hardware, Software, Testing Requirements, and Test Results
    1. 4.1 Required Hardware and Software
      1. 4.1.1 Hardware
      2. 4.1.2 Cautions and Warnings
    2. 4.2 Test Setup
      1. 4.2.1  Connecting the TIDA-010243 to the Metering Test Equipment
      2. 4.2.2  Power Supply Options and Jumper Settings
      3. 4.2.3  Electricity Meter Metrology Accuracy Testing
      4. 4.2.4  Viewing Metrology Readings and Calibration
        1. 4.2.4.1 Viewing Results From LCD
        2. 4.2.4.2 Calibrating and Viewing Results From PC
      5. 4.2.5  Calibration and FLASH Settings for MSPM0+ MCU
      6. 4.2.6  Gain Calibration
      7. 4.2.7  Voltage and Current Gain Calibration
      8. 4.2.8  Active Power Gain Calibration
      9. 4.2.9  Offset Calibration
      10. 4.2.10 Phase Calibration
      11. 4.2.11 Software Code Example
    3. 4.3 Test Results
      1. 4.3.1 SVS Functionality Testing
      2. 4.3.2 Electricity Meter Metrology Accuracy Results
  11. 5Design and Documentation Support
    1. 5.1 Design Files
      1. 5.1.1 Schematics
      2. 5.1.2 BOM
      3. 5.1.3 PCB Layout Recommendations
      4. 5.1.4 Layout Prints
      5. 5.1.5 Gerber Files
    2. 5.2 Tools and Software
    3. 5.3 Documentation Support
    4. 5.4 Support Resources
    5. 5.5 Trademarks
  12. 6About the Author

Calibrating and Viewing Results From PC

To view the metrology parameter values from the GUI, perform the following steps:

  1. Select whether to use the RS-485 or RS-232 connection for communication to the PC GUI. This selection is done by moving right or to the PCB edge for the RS-485 communication option, and moving the S2 switch left for the RS-232 communication option.
  2. Connect the reference design to a PC:
    • RS-232 option: Connect the reference design to a PC using an RS-232 cable. If the PC does not have an RS-232 adapter, use a serial RS-232 adapter. The RS-232 adapter creates a COM port on the PC when the adapter is plugged in.
    • RS-485 option: A USB to RS-485 adapter can be used to communicate between the PC GUI and the RS-485 port on this design. The USB to RS-485 adapter creates a COM port on the PC when the adapter is plugged in. The other end of the adapter has wires for the RS-485 Data A and Data B connections as well as a GND connection and a 5-V power connection, which are all connected to the J12 screw terminal block of the design according to the connection labels next to the terminal block pins. For testing this circuit, the following USB to RS-485 adapter is specifically used: http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_USB_RS485_CABLES.pdf. For this specific adapter, the Data A connection is orange, the Data B connection wire is yellow, the GND connection is black, and the 5-V power connection is red.
  3. Open the GUI folder and open calibration-config.xml in a text editor.
  4. Change the port name field within the meter tag to the COM port connected to the system. As Figure 4-4 shows, this field is changed to COM7.
    GUID-4BD8E210-C8EE-4BAE-9992-7E03167DA50D-low.png Figure 4-4 GUI Configuration File Changed to Communicate With Energy Measurement System
  5. Run the calibrator.exe file, which is located in the GUI folder. If the COM port in the calibration-config.xml was changed in the previous step to the COM port connected to the reference design, the GUI opens (see Figure 4-5). If the GUI connects to the design properly, the top-left button is green. If there are problems with connections or if the code is not configured correctly, the button is red. Click the green button to view the results.
    GUID-FB87F440-EDF3-4822-9BDC-C2943888655B-low.gif Figure 4-5 GUI Start-Up Window

Upon clicking on the green button, the results window opens (see Figure 4-6). In the figure, there is a trailing "L" or "C" on the Power factor values to indicate an inductive or capacitive load, respectively.

GUID-6B952327-83B4-45B8-8314-0E2323CAF59D-low.png Figure 4-6 GUI Results Window

From the results window, view the total-energy consumption readings by clicking the Meter Consumption button. After the user clicks this button, the Meter events and consumption window pops up, as Figure 4-7 shows.

GUID-B92CF546-B044-4C42-81AC-BD5A8C67592D-low.png Figure 4-7 Meter Events and Consumption Window

From the results window, the user can also view the meter settings by clicking the Meter features button, view the system calibration factors by clicking the Meter calibration factors button, or open the window used for calibrating the system by clicking the Manual cal. button.