- Application: This example code demonstrates how to port the FreeMODBUS slave RTU mode to the M032 series microcontrollers.
- BSP Version: M031_Series_BSP_CMSIS_V3.06.000
- Hardware: NuMaker-M032SE V1.3
This example code demonstrates how to use the UART interface and implement a MODBUS slave in RTU mode. MODBUS RTU is an open serial communication protocol with a master/slave structure. MODBUS RTU message encoding is hexadecimal and includes CRC checksum packets.
This code ports FreeMODBUS to implement the MODBUS slave. FreeMODBUS is a free, universal MODBUS protocol library designed for embedded applications. FreeMODBUS supports RTU, ASCII transmission modes, and TCP protocols. FreeMODBUS follows the BSD license, which means users can apply FreeMODBUS in commercial environments.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 0106284951
|