›› 2015, Vol. 28 ›› Issue (10): 27-.

• Articles • Previous Articles     Next Articles

Communication Between STM32 and Host Computer Based on Modbus Protocol

LIU Yuchen,ZHANG Renjie,LIU Hu,LIU Zhen   

  1. (School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
  • Online:2015-10-15 Published:2015-10-29

Abstract: This article designs a method for communication between PC and the STM32 based on the Modbus protocol for stepper motor control systems.The STM32 peripherals and the implementation of the Modbus protocol are introduced.The RS-485 communication circuit and the software design of the STM32 and the host computer are presented.Experiments show that the stepper motor controller and PC can exchange data by this method successfully.

Key words: Modbus protocol;STM32;host computer;communication

CLC Number: 

  • TN915.04