[M032] Porting Modbus Master

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

08 Dec 2021, 18:37

  • Application: This example code demonstrates how to porting Modbus master in the M031/M032 series microcontroller. The Modbus RTU is an open serial protocol derived from the Master/Slave architecture.
  • BSP Version: M031 Series CMSIS BSP V3.01.001
  • Hardware: NuMaker-M032SE Ver1.3
The sample code demonstrates using the UART interface and implementing Modbus master in RTU mode. The Modbus RTU is an open serial protocol derived from the Master/Slave architecture. Modbus RTU messages are the simple 16-bit structure with CRC (Cyclic-Redundant- Checksum).

Due to the simplicity of these messages that can ensure reliability, the basic 16-bit Modbus RTU register structure can be used to pack in floating point, tables, ASCII text, queues, and other unrelated data. The protocol primarily uses an RS-232 or RS-485 serial interface for communication.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1202091644
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests