1、基于 MCS-51 单片机的步进电机系统 1 基于 MCS-51 单片机 的 步进电机系统 摘 要 本文通过 MCS-C51 单片机对步进电机进行控制,主要介绍了步进电机控制系统,驱动电路和 LED 显示电路的设计,包括硬件系统设计和系统软件设计,来实现步进电机的控制,系统为一自动控制系统,通过按键向单片机输送控制信号,控制步进电机的转速和正反转,在 步进电机控制系统的设计中,重点阐述了脉冲产生电路以及对速度的控制,该系统具有成本低,控制方便的特点。采用 MCS-C51单片机指令系统进行编程来实现软件部分测试,系统能实现上述功能。 关键词: MCS-C51 步进电机 控制系统 Abstract
2、 In this paper, MCS-51 microcontroller to control the stepper motor, stepper motor control are introduced system, drive circuit and LED display circuit design, including hardware, system design and system software design, to achieve the stepper motor control system an automatic control system, key t
3、o the microcontroller through the delivery control signal to control the stepper motor speed and reversing, the stepper motor control system design, focuses on the pulse generator circuit and the speed control, the system is low cost and convenient control features. With MCS-C51 microcontroller inst
4、ruction to implement software programming some of the test, the system can achieve these functions. Keywords: MCS-51 Stepping Motor Control system 基于 MCS-51 单片机的步进电机系统 2 目 录 摘要 -1 Abstract-1 目录 -2 前言 -4 1 单片机发展 概述 1.1 单片机 的基本概念 -4 1.2MS-51 单片机内部结构 -4 1.3MS-51 单片机引脚及功能 -5 2 步进电机发展概述 2.1 步进电机 简介 -6 2.2 步进电机分类 -6 2.2 反应式 步进电机原理及结构 2.2.1 步进电机基本原理 -7 2.2.2 步进电机转速控制原理 -8 2.3 步进电机 驱动控制系统 -8 3 硬件电路设计 3.1 单片机 外围电路 -9 3.2 步进电机及驱 动电路 -9 3.3 数码管及驱动电路 -10 3.4 按键电路设计 -10 4 软件电路设计 4.1 数码管显示设计 4.1.1 数码管流程图 -11 4.1.2 数码管程序 -11 4.2 步进电机流程图 -12 总结 -13 致谢 -14 参考 文献 -15