【正文】
tons inside the elevator and the elevator the various floors of the external button to simulate the elevator to run after the key signal is received.The hardware portion of the elevator control system mainly by the smallest singlechip system module, LED display module, key interrupt request module. The system uses a microcontroller (89C52) as the control, to control the elevator and the appropriate action in accordance with the key test results of each floor. Some use of C language software programming , part of the program by the main program to determine the elevator running direction of the subroutine, elevator operation subroutine and reach the destination operation subroutine parts. The design of the hardware circuit is simple and reliable, bined with software, the basic realization of the threefloor elevator running simulation.Key words: 89C52 elevator control system C language目 錄1 緒論 ........................................................................................................................................12 方案論證以及系統(tǒng)功能介紹 ................................................................................................2 方案選擇 .............................................................................................................................2 設(shè)計(jì)要求 .............................................................................................................................3 系統(tǒng)的結(jié)構(gòu)框圖 .................................................................................................................3 STC89C52 單片機(jī) ..............................................................................................................33 硬件電路系統(tǒng)的設(shè)計(jì) ............................................................................................................4 硬件電路設(shè)計(jì)的主要思路 .................................................................................................4 復(fù)位電路 .............................................................................................................................5 晶振電路 .............................................................................................................................6 LED 指示燈電路 .................................................................................................................6 按鍵中斷電路 .....................................................................................................................74 軟件系統(tǒng)的設(shè)計(jì) ....................................................................................................................8 程序的設(shè)計(jì)思路 .................................................................................................................8 主程序流程圖 .....................................................................................................................9 判斷方向流程圖 ...............................................................................................................10 電梯運(yùn)行流程圖 ...............................................................................................................10 梯到達(dá)目的地操作流程圖 ...............................................................................................11 中斷處理程序框圖 ...........................................................................................................125 結(jié)論心得 ..............................................................................................................................14參考文獻(xiàn) ............................................................................................................................