【正文】
ule 12864LCD. This thesis also simulates that under the system of singlechip stepping motor speed control has the disadvantages of changing speed、 time arbitrary、 Positive and negative transfer、 installation of accelerated and deceleration、 lowpower system and online debugging. Singlechip as core of control and the circuit made up by active crystal as clock signal, 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 mand of stepper transfer control from singlechip control system by keyboard. As run steady, this project has already passed the simulation 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 part, Design of connection of singlechip、software prepared is the mainly prepared of Subroutine and Main program including initialization code 、 liquid drive code 、 the timing of recording code form data code[8]. Key words: MCU; stepper motor; 12864LCD; Instruction Set. III 目 錄 摘 要 ..................................................................................................................................... I Abstract ............................................................................................................................... II 第 1 章 緒論 .......................................................................................................................1 課題的來源 .........................................................................................................1 課題研究的意義 ...............................................................................................1 課題國內(nèi)研究現(xiàn)狀 ...........................................................................................1 課題研究的目的和主要內(nèi)容 ........................................................................2 第 2 章 步進電機方案設(shè)計與分析 .............................................................................3 方案提出 .............................................................................................................3 可行性分析 .........................................................................................................4 主要器件選擇 ....................................................................................................4 第 3 章 系統(tǒng)硬件設(shè)計 ....................................................................................................6 AMPIRE128*64 液晶屏介紹 ...........................................................................6 HD61202 及其指令集介紹 ..............................................................................7 晶振、復(fù)位、驅(qū)動電路 .................................................................................9 液晶顯示屏與單片機接口電路 ................................................................. 10 控鍵與單 片機接口電路 ............................................................................... 11 第 4 章 系統(tǒng)軟件設(shè)計 .................................................................................................. 13 電機流程圖 ....................................................................................................... 13 液晶屏驅(qū)動代碼設(shè)計 .................................................................................... 14 固定字符 顯示代碼 ......................................................................................... 18 中斷子程序 ....................................................................................................... 19 漢字表 ................................................................................................................ 19 字符表 ................................................................................................................ 22 延時子程序 ....................................................................................................... 22 主函數(shù)程序 ....................................................................................................... 23 第 5 章 系統(tǒng)仿真 ........................................................................................................... 25 Keil2 編譯環(huán)境介紹 ..................................................................................... 25 Proteus 仿真平臺 ......................................................................................... 26 IV 建立工程項目 .................................................................................................. 28 Proteus 中原理圖的繪制及文件的加載 ................................................ 32 開機界面顯示 .................................................................................................. 32 控制界面顯示 .................................................................................................. 33 仿真結(jié)果分析及解決方法 ........................................................................... 34 第 6 章 PCB 板設(shè)計 ...................................................................................................... 35 加載網(wǎng)絡(luò)表及元件封裝 ................................................................................ 35 PCB 板參數(shù) 設(shè)置 .............................................................................................. 36 元件布局及布線設(shè)計 ..................................................................................... 38 結(jié)束語 ................................................................................................................................ 40 參考文獻 ............................................................................................................................ 41 致 謝 ................................................................................................................................ 42 附錄Ⅰ 總體電路圖 .......................