"基于C51单片机的步进电机控制系统设计与实现"

1 下载量 79 浏览量 更新于2024-01-26 1 收藏 744KB DOC 举报
本设计基于C51单片机,实现了一个步进电机控制系统。首先介绍了步进电机的工作原理、控制特点和运行状态。然后给出了步进电机的单片机控制系统的总体设计方案。在此控制系统中,选择AT89C51作为控制核心,负责生成脉冲、发送和接收控制命令等任务。脉冲分配采用硬件方法,由8713接收单片机的控制信号后产生相应的控制脉冲,这样可以避免软件法不停地产生脉冲所占用的时间。电机驱动采用单电压驱动方式,通过驱动电机带动负载运行。为了实现微型机与键盘和LED显示器的接口,采用了键盘和显示专用芯片8279,该芯片具备较简单的硬件电路和较少的软件开销。最后,详细介绍了硬件部分和软件部分的实现方法。 关键词:单片机;步进电机;速度控制;ZLG7290;显示器。 Abstract: This design is based on the C51 microcontroller, and it implements a stepper motor control system. Firstly, it introduces the working principle, control features and operating states of stepper motors. Then, it presents the overall design scheme of the microcontroller-based stepper motor control system. In this control system, the AT89C51 microcontroller is chosen as the control core, responsible for tasks such as generating pulses, sending and receiving control commands. Pulse distribution is achieved using hardware methods, with the 8713 receiving the control signals from the microcontroller to generate corresponding control pulses. This avoids the time consumption involved in continuously generating pulses using software methods. The motor is driven using a single voltage driving method to drive the load. To realize the interface between the microcontroller and the keyboard and LED display, a keyboard and a dedicated display chip 8279 are used, which have relatively simple hardware circuits and minimal software overhead. Finally, the implementation methods for the hardware and software parts are detailed. Keywords: microcontroller; stepper motor; speed control; ZLG7290; display.