TIDUF27A February   2025  – March 2025 AMC131M03 , MSPM0G1507

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Key System Specifications
    2. 1.2 End Equipment
    3. 1.3 Electricity Meter
    4. 1.4 Power Quality Meter, Power Quality Analyzer
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Voltage Measurement Analog Front End
      2. 2.2.2 Analog Front End for Current Measurement
      3. 2.2.3 XDS110 Emulator
      4. 2.2.4 Bluetooth® Data Transmission
      5. 2.2.5 Bluetooth® Connection Between Two Modules
      6. 2.2.6 Bluetooth® to UART Connection
      7. 2.2.7 Magnetic Tamper Detection With TMAG5273 Linear 3D Hall-Effect Sensor
    3. 2.3 Highlighted Products
      1. 2.3.1  MSPM0G3507
      2. 2.3.2  AMC131M03
      3. 2.3.3  CDC6C
      4. 2.3.4  RES60A-Q1
      5. 2.3.5  TPS3702
      6. 2.3.6  TPD4E05U06
      7. 2.3.7  ISOUSB111
      8. 2.3.8  LMK1C1104
      9. 2.3.9  MSP432E401Y
      10. 2.3.10 TPS709
      11. 2.3.11 TMAG5273
  9. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
      1. 3.1.1 Clocking System
        1. 3.1.1.1 BAW Oscillator
        2. 3.1.1.2 Crystal Oscillator
        3. 3.1.1.3 PWM
        4. 3.1.1.4 Clock Buffers
      2. 3.1.2 SPI Bus Configuration
      3. 3.1.3 Jumper Settings for LED and UART
    2. 3.2 Software Requirements
      1. 3.2.1 UART for PC GUI Communication
      2. 3.2.2 Direct Memory Access (DMA)
      3. 3.2.3 ADC Setup
      4. 3.2.4 Calibration
    3. 3.3 Test Setup
      1. 3.3.1 Connections to the Test Setup
      2. 3.3.2 Power Supply Options and Jumper Settings
        1.       51
      3. 3.3.3 Cautions and Warnings
    4. 3.4 Test Results
      1. 3.4.1 Electricity Meter Metrology Accuracy Results
      2. 3.4.2 Radiated Emissions Performance
  10. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 BOM
      3. 4.1.3 PCB Layout Recommendations
        1. 4.1.3.1 Layout Prints
    2. 4.2 Tools and Software
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks
  11. 5About the Author
  12. 6Revision History

UART for PC GUI Communication

The MSPM0+ MCU is configured to communicate to the PC GUI through a UART interface through the USB Type-C interface over J9. Alternatively, a FTDI interface for the UART communication can be used instead of the FTDI pin header J7 (this requires a SysCfg file change as another UART port is utilized).

The PC GUI polls data from the MSPM0G3507 using a UART module configured for 115200 baud with 8N1. The UART protocol for formatting the UART data is named DLT-645 and the UART module utilizes two DMA Channels: Channel 2 for data receive and Channel 3 for data transmit. More details on the DLT-645 protocol is found in the MSP430AFE253 Test Report for China State Grid Specification and Single Phase and DC Embedded Metering (Power Monitor) Using MSP430I2040 application notes.

The UART driver supports bidirectional DMA transfer (two channels, one for transmit and one for receive) with a minimum interrupt load. UART data is processed in the HAL_startUARTDMAReceive() function, by setting a trigger at 14 bytes, as this is the byte which codes the packet length (which can change dynamically from packet to packet). After decoding byte 14, the UART DMA transfer length value gets updated to a new length, which is covering the rest of the DLT-645 protocol packet, transmitted by the PC GUI.

Table 3-1 shows the multiple UART ports in MSPM0G3507.

Table 3-1 UART Interface Assignments
OPTION MSPM0G3507 UART PORT PINS HEADER
USB Type-C (default) UART1 RX: PA8
TX: PA9
J9
FTDI device UART3 RX: PB13
TX: PB12
J7
Bluetooth low energy chip UART2 RX: PB18
TX: PB17
JP9