TIDUF98 October 2024
The MSPM0L2228 MCU is configured to communicate to the PC GUI through the RS-485 connection J15 on this reference design using a UART module configured for 8N1 at 9600 baud. The PC GUI polls data from the MSPM0L2228 using a UART protocol for formatting the data, named DLT-645, and uses two DMA Channels: Channel 2 for data receive and Channel 3 for data transmit. See also the MSP430AFE253 Test Report for China State Grid Specification and Single Phase and DC Embedded Metering (Power Monitor) Using MSP430I2040 application notes.
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).