【正文】
序為關(guān)鍵與核心。致謝語在即將結(jié)束本論文,完成畢業(yè)設(shè)計的時刻,我要向所有在我畢業(yè)設(shè)計階段乃至我大學(xué)四年幫助過我的老師和同學(xué)致以深深的謝意,感謝他們在學(xué)習(xí)和生活上給我的幫助。另外,這次設(shè)計對我進一步學(xué)習(xí)計算機方面的知識更是有極大的幫助。 Altium Designer 。unsigned char code tab[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}。void delay(uint n){ uchar y。y0。 temp=tempamp。 temp=tempamp。 switch(temp) { case 0xee:num=1。 case 0xbe:num=3。 } while(temp!=0xf0) { temp=P1。 temp=P1。 temp=P1。 temp=P1。 break。 break。 } } } return num。 while(flag!=1) { floor2=keyscan()。 P2=tab[j]。floor1++) { for(i=0。j++) { P0=digittab[floor11][j]。x2。j8。 } } for(i=0。j++) { P0=tab2[1][j]。 Beep=1。 for(j=0。 delay(5)。i150。 P2=tab[j]。x++) { for(i=0。j++) { P0=tab1[0][j]。i35。 P2=tab[j]。 delay(3000)。j8。 } } } } }}附錄二 實物圖。 P2=tab[j]。 while(flag!=1) { floor2=keyscan()。 } } } } flag=0。j8。 delay(5)。i++) { for(j=0。 } } for(x=0。j8。floor1floor2。j++) { P0=digittab[floor11][j]。 Beep=0。 delay(5)。i++) { for(j=0。 P2=tab[j]。i35。 delay(5)。i++) { for(j=0。 } } while(1) { if(flag==1) { if(floor2floor1) { for(。j8。 num=1。 temp=tempamp。 break。 break。0xf0。0xf0。0xf0。 case 0x7e:num=4。 case 0xde:num=2。 while(temp!=0xf0) { flag=1。 while(temp!=0xf0) { delay(5)。}uchar keyscan(){ P1=0xfe。n0。uchar code tab1[2][8]={{0x00,0x03,0x06,0x0f,0x0f,0x06,0x03,0x00}, //向下小箭頭{0x00,0x30,0x60,0xff,0xff,0x60,0x30,0x00}, //向下大箭頭}。 Keil C51附錄附錄一 程序清單include define uchar unsigned chardefine uint unsigned intsbit Beep=P3^4。同時,衛(wèi)老師是一位有多年工作經(jīng)驗、在專業(yè)領(lǐng)域有很大的成就前輩,在他的身上我學(xué)到很多實用的知識,在此我表示感謝!最后,對給過我?guī)椭乃型瑢W(xué)和各位指導(dǎo)老師再次表示忠心的感謝!參考文獻[1] 徐愛鈞. ,[2] 史久貴. 基于Altium ,2009[3] 劉松. 單片機技術(shù)與應(yīng)用. 機械工業(yè)出版社 ,[4] 高偉. ,[5] 李文華. 單片機應(yīng)用技術(shù)(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。我對當(dāng)前電子領(lǐng)域的研究狀況和發(fā)展方向有了一定的了解,單片機領(lǐng)域是我今后從業(yè)的方向。當(dāng)然,如果更高層的電梯,就會受到單片機管腳資源的限制了。運行結(jié)果正確無誤,可以作為真實電梯的控制系統(tǒng)使用。下載程序的軟件是Easy 51Pro 。所有程序最后需要一起運行,在給定的各種命令下,程序運行結(jié)果都必須正確才行。 系統(tǒng)軟件運作主流程圖 開始 初始化 輸入樓層Nextfloor?floornextfloor?NY下降一層floor上升一層floor++ 數(shù)碼顯示 顯示當(dāng)前層及升降狀態(tài)顯示當(dāng)前層及升降狀態(tài)NN到達指定樓?到達指定樓?YY BEEP ON BEEP ON 停止運行flag=0程序運作主流程圖開始 鍵盤掃描流程圖 初始化 鍵盤掃描 取值 延遲點陣顯示返回鍵盤掃描流程圖3 系統(tǒng)調(diào)試焊接過程中每個部件的焊接要按照一定的順序,首先焊電源,然后是單片機及下載口,其次是點陣、按鍵、蜂鳴器等。