【正文】
發(fā)中除必要的硬件外,同樣離不開軟件,我們寫的匯編語言源程序要變?yōu)?CPU可以執(zhí)行的機器碼有兩種方法,一種是手工匯編,另一種是機器匯編,目前已 極少使用手工匯編的方法了。雖然目前國內(nèi)推廣剛起步,但已受到單片機愛好者、從事單片機教學的教師、致力于單片機開發(fā)應用的科技工作者的青睞。 其 主要功能特性: (1)與 MCS51 指令和引腳完全兼容; (2)8K 字節(jié)可重復檫寫 Flash 閃爍存儲器; (3)壽命: 1000 次檫寫周期; (4)三級加密程序存儲器; (5)全靜態(tài)工作: 0Hz24MHz; (6)2568 字節(jié)內(nèi)部 RAM; (7)32 個可編程 I/O 口線; (8)三個 16 位定時器 /計數(shù)器; (9)8 個中斷源; (10)可編程串行 UART 通道; (11)低功耗空閑和掉電模式。 直流電機在斷電的時候很難控制其速度,容易出現(xiàn)電機不能快速停止的情況。但是電阻網(wǎng)絡(luò)只能實 現(xiàn)有級調(diào)速,而數(shù)字電阻的元器件價格比較昂貴。 (3)電梯無人時,應默認停在第一層 。而單片機的價格相當便宜,也不像 PLC 那么有針對性,可以隨著設(shè)備的更新而不斷修改完善,采用單片機來實現(xiàn)老式電梯控制系統(tǒng)的改造無疑是最佳方案。 本設(shè)計注重 基本理論知識與實際情況 的 緊密結(jié)合 ,同時對 自己 獨立創(chuàng)新和分析問題的能力進行培養(yǎng),加深對知識的理解,為以后的 工作 和 學習 打下堅實的基礎(chǔ)。電梯的應用將會不斷拓展,款式將各種各樣,目的就是為了滿足人們的多種多樣的需求。 1977 年日本三菱電機開發(fā)出 10m/s 的超高速電梯。 1962 年在美國已出現(xiàn) 電梯。 1915 年已設(shè)計成功電梯自動平層控制系統(tǒng)。十一屆三中全會后,沐浴著改革開放的春風,我國電梯業(yè)進入了高速發(fā)展的時期。調(diào)頻門 控、智能遠程監(jiān)控、主機節(jié)能、控制柜低噪音耐用、復合鋼帶環(huán)保 — 一 款集納了人類在機械、電子、光學等領(lǐng)域最新科研成果的新型電梯競相問世,冷冰冰的建筑因此散射出人性的光輝,人們的生活因此變得更加美好。一個半世紀的風風雨雨,翻天覆地的 是歷史的變遷,永恒不變的是電梯提升人類生活質(zhì)量的承諾。 軟件部分使用 C 語言,利 用中斷方式來檢測樓層的檢測信息,并送到數(shù)碼管進行顯示。 畢業(yè)設(shè)計(論文) 題 目 : 基于單片機的 6 層電梯模擬系統(tǒng)設(shè)計 學 院: 電子信息學院 專業(yè)班級: 電氣工程及其自動化 2021 級 2 班 指導教師: 盧嫚 職稱: 助理工程師 學生姓名: 王力剛 學 號: 41003040223 西安工程大學 本科 畢業(yè)設(shè)計(論文) I 西安工程大學 本科 畢業(yè)設(shè)計(論文) II 摘 要 本文介紹了 以 AT89C52 單片機為核心控制器件的電 梯自動控制系統(tǒng) , 包括課題概述、方案論證、硬件設(shè)計、軟件設(shè)計、系統(tǒng)調(diào)試等幾個部分。軟件部分介紹了系統(tǒng)程序設(shè) 計思路、程序功能分析,著重介紹了主程序的邏輯結(jié)構(gòu),還分別介紹了 演示功能、按鍵掃描、層位讀取、顯示、電梯控制邏輯等子程序的結(jié)構(gòu)和功能。 關(guān)鍵詞 : AT89C52 單片機 ; 仿真調(diào)試 ; 電梯 西安工程大學 本科 畢業(yè)設(shè)計(論文) III ABSTRACT This paper introduces the AT89C52 microcontroller as the core control device of the elevator control system, including the issues outlined, program feasibility studies, hardware design, software design, system debugging, and several other system uses a microcontroller as the control centre, Firstly, it is by scanning the internal and external level change caused by keyboard to be a user requests information to the microcontroller, The next is that the single chip controls the motor based on test results floors stopped in the target floor. Hardware part mainly are made of the microcontroller, floor detection module, level digital display, electric motor drive module, key scan module, alarm module, circuit directions up and down the line calls and other detection uses optical sensors. When elevator goes to the appropriate floor, Photoelectric sensors produce level changes sent to the microcontroller to determine the floor,.The part of motor control uses H Bridge type circuit to control the DC motor .Software ponents intorduce System programming design ideas, procedures, functional analysis . It is not only focusing on the logical design of the main structure but also separately introduced the warning function, the demonstration function, the pressed key scanning, the position read, the demonstration, the lift control logic small steelyard procedure structure and the function. Software ponents use C language. This realization way is the use of Interrupt mode to detect the information of the floor sent to the Digital tube . The hardware design of the system bined with the software is simple and reliable. So It is basically to achieve simulation of elevator running five addition to this, there are advantages of low cost,strong monality,flexibility and easily to realize plex control and so on to the singlechip microputer control of elevator. Key words:AT89C52 Microcontroller,Digital tube,elevator 西安工程大學 本科 畢業(yè)設(shè)計(論文) IV 目 錄 第 1 章 緒論 ................................................................. 1 設(shè)計背景 .............................................................. 1 設(shè)計目的 .............................................................. 2 設(shè)計意義 .............................................................. 2 第 2 章 方案論證 ............................................................. 3 設(shè)計要求 .............................................................. 3 系統(tǒng)的結(jié)構(gòu)框圖 ........................................................ 3 電動機的選擇 .......................................................... 4 AT89C52 單片機 ........................................................ 4 電路圖制作軟件 PROTUES ................................................. 5 C51 的程序開發(fā)軟件 KEIL ................................................. 5 第 3 章 硬件系統(tǒng)的設(shè)計 ....................................................... 7 硬件設(shè)計思路 .......................................................... 7 時鐘電路 .............................................................. 8 復位電路 ..........