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

Power Supply Options and Jumper Settings

The MSPM0+ MCU and ADS131M08 portion of this design is powered from a single voltage rail (DVCC), which is by connecting a 3.3-V external power supply at the DVCC header J13.P1 and J13.P13 or J13.P14 (GND).

Various jumper headers and jumper settings are present to add to the flexibility to the board. Some of these headers require that jumpers be placed appropriately for the board to correctly function. Table 4-1 indicates the functionality of each jumper on the board.

Note: The headers with (WARNING) text in the MAIN FUNCTIONALITY column are not isolated, so do not use measuring equipment there when running off the Mains. This applies, unless either isolators external to the board of this design are used to connect at the headers, if the equipment is battery powered and does not connect to Mains, or if AC mains is isolated.
Table 4-1 Header Names and Jumper Settings
HEADER OR HEADER OPTION NAMETYPEMAIN FUNCTIONALITYVALID USE-CASECOMMENTS
J1, J2, J3

2-pin terminal blocks

Phases A, B, and C voltages
(WARNING)
Voltage inputs for line A, B, and CEach of these terminal blocks connect with one terminal to the Neutral voltage, while the second terminal is wired to either phase A, B, and C respectively.
J4,

J5, J6

3-pin terminal blocksConnect CT (Current Transformers) for line A, B, and C
(WARNING)
Current inputs after the CT sensors for line A, B, and CThis terminal block is a three-position terminal block but only the leftmost and rightmost positions are used. The center position, which is connected to GND, is not connected to the CT. Before performing any test, verify that this terminal block is securely connected to both output leads of the CT.
J72-pin headerActive energy pulses
(WARNING)
Probe here for cumulative active energy pulses. This header has two pins: GND and ACT, which is where the active energy pulses are actually output.This header is not isolated from AC mains, so do not connect measuring equipment here. See the "ISO_ACT" pin of J14 instead, which is isolated. If testing the active power pulses is desired, use the "ISO_ACT" pin of J14 instead since is isolated.
J84-pin headerReactive energy pulses
(WARNING)
Probe here for cumulative reactive energy pulses. This header has two pins: GND and REACT, which is where the reactive energy pulses are actually output.This header is not isolated from AC mains, so do not connect measuring equipment here. If testing the reactive power pulses is desired, use the "ISO_REACT" pin of J14 instead since it is isolated.
J910-pin, 2-row connector Neutral Connection
(WARNING)
Connect the XDS110 Debug Probe to this connector to power the MSPM0G3507 MCU.The XDS110 Debug Probe is used to program the MSPM0G3507 device. Note that the MSPM0 MCU has to be powered externally to program it. Since this header and the XDS110 are not isolated, do not connect to this header when running off Mains and Mains is not isolated.
J106-pin headerFTDI UART to USB header
(WARNING)
Use FTDI cable and UART link while debugging with no Mains connected.Provides UART link through a PC USB port. Since this header is not isolated, do not connect to this header when running off Mains and Mains is not isolated.

J11

8-pin headerADS131M08 MSPM0G3507 communication header
(WARNING)
Probe here for connections to the 4-wire SPI signals, RST signal, CLKIN signal, and DRDY signal of the ADS131M08 device.The RST pin resets the ADS131M08. When initializing the ADS131M08, the MSPM0G3507 drives this pin to reset the ADS131M08. The DRDY pin of the ADS131M08 device is used to alert the MSPM0+ MCU that new current samples are available. The CLKIN pin is fed from the CLK_OUT clock output of the MSPM0+ MCU to the ADS131M08 device, which divides the clock down to produce the used modulator clock. (WARNING)This header is NOT isolated from AC mains, so do NOT connect measuring equipment when running from Mains unless isolators external to the reference design are available. The pin mappings on this header are as follows:
● Pin 1: ADS131M08 CLKIN pin
● Pin 2: SPI DIN, ADS131M08 DOUT/ pin POCI
● Pin 3: SPI DOUT, ADS131M08 DIN pin/PICO ● Pin 4: SPI CLK (ADS131M08 SCLK pin)
● Pin 5: ADS131M08 DRDY pin
● Pin 6: ADS131M08 CS pin
● Pin 7: ADS131M08 SYNC/ RESET pin). Pin 8: NC

J12

4-pin terminal blockIsolated RS-485 connectionTo view the GUI using RS-485, connect the USB to RS-485 adapter here. 5 V must be provided externally on pin 3 of this header. Pin 4 is the RS-485 ground, pin 2 is the B bus I/O line, and pin 1 is the A bus I/O line.

J13

14-pin 2-row headerApplication connector
(WARNING)
Probe here for various non-isolated signals.Provides access to another UART link and ACT and REACT lines. Since this header is not isolated, do not connect to this header when running off Mains and Mains is not isolated.
J144-pin headerIsolated pulses headerProbe here for the isolated cumulative active energy pulses and the isolated cumulative three-phase reactive energy pulses.This header has four pins: GND_ISO, REACT_ISO, ACT_ISO, and DVDD_ISO. GND_ISO is the isolated ground for the energy pulses. DVDD_ISO is the VDD connection for the isolated active and reactive energy pulses. ACT_ISO is where the isolated active energy pulses are output. REACT_ISO is where the isolated reactive energy pulses are output.
This header is isolated from AC mains so it is safe to connect to a scope or other measuring equipment because isolators are already present. However, either 3.3 V or 5 V must be applied between GND_ISO and DVDD_ISO to produce both the active and the reactive energy pulses at this header. The produced pulses have a logical high voltage that is equal to the voltage applied between GND_ISO and DVDD_ISO.

J15

3-pin terminal blockNeutral Connection
(WARNING)
Current input after the CT for Neutral line (if Neutral current monitoring is desired).This terminal block is a three-position terminal block but only the leftmost and rightmost positions are used. The center position, which is connected to GND, is not connected to the CT. Before performing any test, verify that this terminal block is securely connected to both output leads of the CT.

J17

6-pin header

GPIO lines from MSPM0G3507

Access to 6 unused GPIOsConnect to 6 GPIOs for experimenting and debugging

S2

12-pin dual switchRS-232 or RS-485 serial Interface selection switchSet S2 to either the left or right position to select if serial interface RS-232 or RS-485 is used. Both Interfaces are isolated through the U5 (ISO6731).The PCB silkscreen marking indicates the position for RS-232 and RS-485.
JP13-pin jumper headerReset selectionPlace a jumper at either 1-2 or 2-3 positions depending on which RESET line is active. TVS3840 and Push Button S1 are used in Position 1-2, otherwise in 2-3 the nRST_debug line from J9 (ARM debug connector) is active.Useful during board debugging and code development
JP23-pin jumper headerPullup or Pulldown for BSL_invoke line on MSPM0G3507Place a jumper at either 1-2 or 2-3 positions depending on if BSL_INVOKE is VDD_3V3 or GND respectively.Was used on 1st silicon revision, not needed anymore.