【正文】
編號 淮安信息職業(yè)技術學院 畢業(yè)論文 題 目 基于單片機電子密碼鎖設計 學生姓名 學 號 系 部 電子工程學院 專 業(yè) 光電子(光伏發(fā)電) 班 級 指導教師 顧問教師 二 〇一四 年六月摘 要 I 摘 要 隨著科技和人們的生活水平的提高,如何實現(xiàn)家庭防盜這一問題也變的尤為突出,傳統(tǒng)的機械鎖由于構造簡單,被撬事件屢見不鮮。電子密碼鎖保密性好,使用靈活性高 ,收到廣大用戶的青睞。 本設計是以單片機 AT89C51 作為密碼鎖的主控芯片與數(shù)據(jù)存儲單元,結合外圍的矩陣鍵盤輸入、數(shù)碼管顯示、開鎖、報警等,用匯編語言編寫程序,并用 keil軟件進行編譯設計了一款可以更改密碼,具有報警功能的電子密碼控制系統(tǒng)。 本設計采用矩陣鍵盤對密碼進行輸入,具有較高的優(yōu)勢,減少了 I/O 口的占用數(shù)目。密碼的顯示采用 6 位數(shù)碼管實現(xiàn),為確保安全性統(tǒng)一使用“ — ”顯示密碼。,當重新設置密碼時數(shù)碼管顯示數(shù)字。采用采用蜂鳴器模擬報警系統(tǒng),增加了密碼鎖的安全能力。軟件使用匯編語言編程,運用自上而下的模塊化 設計思想,使系統(tǒng)朝著分布式、小型化方向發(fā)展,增強系統(tǒng)的可擴展性和運行的穩(wěn)定性。測試結果表明,設計達到電子密碼鎖的功能。 關鍵詞 : 密碼鎖 MCU 報警 Abstract II Abstract As technology and people39。s living standards improve, the question how to achieve home burglar also bee particularly prominent, the traditional mechanical locks because of simple structure, prizing a mon occurrence. Electronic locks confidentiality, use of high flexibility, received the majority of users of all ages. The design is based on AT89C51 microcontroller as the master chip lock data storage unit, bined with the external matrix keyboard input, digital display, lock, alarm, etc., written in assembly language program and piled using keil software can be designed a change the password, the password with alarm function electronic control system. This design uses the password input keypad matrix with high advantage, reducing the I / O port number of the occupation. Password is displayed using six digital tube, to ensure security uniform use Show password. When the password is reset digital display numbers. Using simulated using the buzzer alarm system, increasing the safety lock capabilities. Software uses assembly language programming, the use of topdown, modular design, the system toward a distributed, miniaturization direction, enhance system scalability and operational stability. Test results show that the design meets electronic locks function. Keywords: Lock MCU Alarm 目錄 III 目 錄 摘 要 ...............................................................................................................................I Abstract ............................................................................................................................ II 第一章 緒論 ...................................................................................................................... 1 概述 ............................................................................................................. 1 電子密碼鎖的發(fā)展趨勢 .................................................................................. 1 設計原理 .............................................................................................................. 2 第二章 電子密碼鎖硬件電路設計 .................................................................................... 3 AT89C51 單片機 .................................................................................................. 3 矩陣鍵盤 ...................................................................................................... 3 開鎖電路 ............................................................................................................. 4 報警電路 ............................................................................................................. 5 數(shù)碼管顯示電路 .................................................................................................. 6 復位電路 .............................................................................................................. 8 密碼存儲電路設計 ................................................................................................ 8 第三章 軟件設計 ............................................................................................................11 軟件設計思路 ...................................