【正文】
} } } } }}附錄二 實物圖。 P2=tab[j]。j8。 while(flag!=1) { floor2=keyscan()。 delay(3000)。 } } } } flag=0。 P2=tab[j]。j8。i35。 delay(5)。j++) { P0=tab1[0][j]。i++) { for(j=0。x++) { for(i=0。 } } for(x=0。 P2=tab[j]。j8。i150。floor1floor2。 delay(5)。j++) { P0=digittab[floor11][j]。 for(j=0。 Beep=0。 Beep=1。 delay(5)。j++) { P0=tab2[1][j]。i++) { for(j=0。 } } for(i=0。 P2=tab[j]。j8。i35。x2。 delay(5)。j++) { P0=digittab[floor11][j]。i++) { for(j=0。floor1++) { for(i=0。 } } while(1) { if(flag==1) { if(floor2floor1) { for(。 P2=tab[j]。j8。 while(flag!=1) { floor2=keyscan()。 num=1。 } } } return num。 temp=tempamp。 break。 break。 break。 break。 temp=P1。0xf0。 temp=P1。0xf0。 temp=P1。0xf0。 } while(temp!=0xf0) { temp=P1。 case 0x7e:num=4。 case 0xbe:num=3。 case 0xde:num=2。 switch(temp) { case 0xee:num=1。 while(temp!=0xf0) { flag=1。 temp=tempamp。 while(temp!=0xf0) { delay(5)。 temp=tempamp。}uchar keyscan(){ P1=0xfe。y0。n0。void delay(uint n){ uchar y。uchar code tab1[2][8]={{0x00,0x03,0x06,0x0f,0x0f,0x06,0x03,0x00}, //向下小箭頭{0x00,0x30,0x60,0xff,0xff,0x60,0x30,0x00}, //向下大箭頭}。unsigned char code tab[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}。 Keil C51附錄附錄一 程序清單include define uchar unsigned chardefine uint unsigned intsbit Beep=P3^4。 Altium Designer 。同時,衛(wèi)老師是一位有多年工作經(jīng)驗、在專業(yè)領域有很大的成就前輩,在他的身上我學到很多實用的知識,在此我表示感謝!最后,對給過我?guī)椭乃型瑢W和各位指導老師再次表示忠心的感謝!參考文獻[1] 徐愛鈞. ,[2] 史久貴. 基于Altium ,2009[3] 劉松. 單片機技術與應用. 機械工業(yè)出版社 ,[4] 高偉. ,[5] 李文華. 單片機應用技術(C語言版).人民郵電出版社,2011英文翻譯Eight layer elevator automatic control systemHUANG bo(Electronic and Information Engineering Dept. Chongqing Three Gorges University, Wanzhou 404000)ABSTRACT The elevator automatic control system is the modern all elevator cerebrum and the nerve center. In order to protect the oldstyle elevator besides these which the history remains down, regardless of in any situation installment elevator all is the automation, they basic all are by the monolithic integrated circuit control, the highquality elevator has also utilized the embedded system. The elevator automatic control system core is the monolithic integrated circuit and the hypothesis procedure, the input and the output unit have posed a plete automatic control system. The input part accepts the signal and processes, then transmits for the monolithic integrated circuit. Outputs after the procedure analysis the instruction,thus will control the elevator the movement and finally demonstrates. The modern elevator automatic control system form bees simpler, but it can control more plex situations actually, this all relies on in the monolithic integrated circuit unceasing promotion and the control circuit designs even more rationalization.KEY WORDS lift。另外,這次設計對我進一步學習計算機方面的知識更是有極大的幫助。我對當前電子領域的研究狀況和發(fā)展方向有了一定的了解,單片機領域是我今后從業(yè)的方向。致謝語在即將結束本論文,完成畢業(yè)設計的時刻,我要向所有在我畢業(yè)設計階段乃至我大學四年幫助過我的老師和同學致以深深的謝意,感謝他們在學習和生活上給我的幫助。當然,如果更高層的電梯,就會受到單片機管腳資源的限制了。其中,單片機是基礎,電梯運行程序為主導,電梯目標樓層判決程序為關鍵與核心。運行結果正確無誤,可以作為真實電梯的控制系統(tǒng)使用。 4 結論本文對電梯自動控制系統(tǒng)這一畢業(yè)設計做了詳細的報告與總結,其中包括硬件部分與軟件部分兩大模塊,而且對其中各個重要的子模塊加以了重點詳細地說明。下載程序的軟件是Easy 51Pro 。因為如果程序調(diào)試不到位會導致整個系統(tǒng)的調(diào)試不正確,不斷地刪除和燒寫程序會使芯片壽命縮短,甚至壞掉。所有程序最后需要一起運行,在給定的各種命令下,程序運行結果都必須正確才行。這些都是硬件,其調(diào)試主要是用到萬能表、示波器等模擬電路調(diào)試工具。 系統(tǒng)軟件運作主流程圖 開始 初始化 輸入樓層Nextfloor?floornextfloor?NY下降一層floor上升一層floor++ 數(shù)碼顯示 顯示當前層及升降狀態(tài)顯示當前層及升降狀態(tài)NN到達指定樓?到達指定樓?YY BEEP ON BEEP ON 停止運行flag=0