液晶与显示, 2012, 27 (4): 515, 网络出版: 2012-08-17
具有人机交互界面的步进电机控制器设计
Design of Stepping Motor Controller with Human-Computer Interaction
人机交互 步进电机控制器 液晶显示器 非易失性存储器 human-computer interaction stepping motor controller LCD nonvolatile memory
摘要
为便于工业应用,设计了具有人机交互界面的步进电机控制器。该控制器具有独立的编程指令。用户可通过PC机运行的程序编译软件完成应用程序的编写、自定义图像的选取及寄存器参数的设置。程序编译软件将上述信息通过串行总线传送给步进电机控制器,并保存在非易失性存储器中。步进电机控制器读取、解译并执行应用程序。该系统中配置有液晶显示器,实时显示操作信息;同时配有键盘,便于用户在工业现场修改应用程序或寄存器参数。整个系统以片上外设丰富的Cortex-M3核ARM芯片为核心,对系统指令、人机交互键盘、非易失性存储及LCD显示模块的设计进行了详细分析,并给出了系统设计显示结果。结果显示:LCD显示信息与用户按键命令同步,非易失性模块数据存储可靠,系统运行结果良好。
Abstract
In order to be convenient for industrial application, the stepping motor controller with human-computer interaction was designed. The controller has its special instruction set. User could accomplish the design of application program, selection of self-defined images and the setting of registers by using the program compiling software running on PC. With the serial bus, aforesaid information was sent to stepping motor controller by program compiling software and stored in nonvolatile memory. The application program was read, interpreted and executed by stepping motor controller. The LCD of the system displayed operating information in real time. Also, keyboard was included in the system, so the user could modify the program or register parameter in the field. The Cortex-M3 based ARM controller,which had rich on-chip peripherals, was the core of the system. The design of system instruction set, human-computer interaction keyboard,nonvolatile memory and the LCD were analyzed in detail. At last, the system displaying result was given. The test result shows that LCD displaying information is synchronous to user command, and data storing of the nonvolatile memory is reliable. This system runs well in the application.
徐正平, 徐永森, 匡海鹏. 具有人机交互界面的步进电机控制器设计[J]. 液晶与显示, 2012, 27(4): 515. XU Zheng-ping, XU Yong-sen, KUANG Hai-peng. Design of Stepping Motor Controller with Human-Computer Interaction[J]. Chinese Journal of Liquid Crystals and Displays, 2012, 27(4): 515.