单片机的步进电机控制设计方案.pdf
《单片机的步进电机控制设计方案.pdf》由会员分享,可在线阅读,更多相关《单片机的步进电机控制设计方案.pdf(48页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、毕业设计(论文课题名称基于单片机的步进电机控制设计学生姓名学号系、年级专业信息工程系电子信息工程专业指导教师职称讲 师 2009年5月22 日I/48 摘 要本论文主要介绍了基于单片机的步进电机控制的规则、硬件结构、软件代码的编写及工作原理、以及液晶模块12864LCD的详细介绍以及指令集。模拟出单片机系统下的步进电机转速控制,具有任意转速选择、转动时间、正反转、加速和减速设置、系统低功耗、可实现在线调试等特点。本系统是以单片机为其控制核心,以有源晶振构成的电路作为时钟信号,通过键盘输入选择向单片机控制系统发出步进转动控制命令,控制系统接收命令后做出一系列必要的判断后,控电机的转速、转向等。本
2、设计已通过了实验仿真,运行稳定,达到了基本的设计要求。本设计要分为两大块:一块为硬件电路组成部分,一块为软件程序设计部分。在硬件电路里主要包括有源晶振部分、键盘输入控制部分、电机驱动电路及液晶显示部分等与单片机的接线设计;软件编程方面主要是子程序和主程序的编写,包括:初始化代码、液晶驱动代码、时间记录代码、表格数据代码等。关键词:单片机;步进电机;12864LCD;指令集Abstract This thesis is mainly introduce the Prepared and working principles about 文档编码:CG4M2X1S9S9 HY5G8W1W2T9 Z
3、V7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2
4、X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 Z
5、V7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2
6、X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 Z
7、V7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2
8、X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 Z
9、V7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7II/48 regulation、structure of hardware、software code of stepping motor control based on MCU as well as detail information and instruction set on LCD Module 12864LCD.This thesis also simulates that under the sys
10、tem of single-chip stepping motor speed control has the disadvantages of changing speed、time arbitrary、Positive and negative transfer、installation of accelerated and deceleration、low-power system and online debugging.Single-chip as core of control and the circuit made up by active crystal as clock s
11、ignal,the stepper motor speed control system starts to making a series of necessary judgment and then control rotate speed and change direction when it receive the command of stepper transfer control from single-chip control system by keyboard.As run steady,this project has already passed the simula
12、tion and has achieved the basic purpose.This project consists of two parties.One is hardware circuit and the other is software programming.In the part of hardware circuit is include active crystal、control system of keyboard input、system of motor drive circuit and liquid crystal system.In the second
13、part,Design of connection of single-chip、software prepared is the mainly prepared of Subroutine and Main program including initialization code、liquid drive code、the timing of recording code form data code8.Key words:MCU;stepper motor;12864LCD;Instruction Set.目录摘 要I AbstractI 第 1章 绪论1 1.1 课题的来源1 1.2
14、课题研究的意义1 文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X
15、1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV
16、7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X
17、1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV
18、7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X
19、1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV
20、7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7III/48 1.3 课题国内研究现状1 1.4 课题研究的目的和主要内容2 第 2章 步进电机方案设计与分析3 2.1 方案提出3 2.2 可行性分析4 2.3 主要器件选择4 第 3章 系统硬件设计5 3.1 AMPIRE128*64 液晶屏介绍6 3.2 HD61202 及其指令集介绍7 3.3 晶振、复位、驱动电路8 3.4 液晶显
21、示屏与单片机接口电路10 3.5 控键与单片机接口电路11 第 4章 系统软件设计13 4.1 电机流程图13 4.2 液晶屏驱动代码设计14 4.3 固定字符显示代码18 4.4 中断子程序19 4.5 汉字表19 4.6 字符表22 4.7 延时子程序22 4.8 主函数程序23 第 5章 系统仿真24 5.1 Keil2编译环境介绍25 5.2 Proteus 仿真平台26 5.3 建立工程工程27 5.4 Proteus中原理图的绘制及文件的加载32 5.5 开机界面显示32 5.6 控制界面显示33 5.7 仿真结果分析及解决方法34 第 6章 PCB板设计35 6.1 加载网络表及
22、元件封装35 文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S
23、9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M
24、7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S
25、9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M7O8K2C7文档编码:CG4M2X1S9S9 HY5G8W1W2T9 ZV7M
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 步进 电机 控制 设计方案
限制150内