TIDUF27A February 2025 – March 2025 AMC131M03 , MSPM0G1507
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.
| 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 |