【正文】
編號(hào) 淮安信息職業(yè)技術(shù)學(xué)院 畢業(yè)論文 題 目 基于單片機(jī)電子密碼鎖設(shè)計(jì) 學(xué)生姓名 學(xué) 號(hào) 系 部 電子工程學(xué)院 專 業(yè) 光電子(光伏發(fā)電) 班 級(jí) 指導(dǎo)教師 顧問(wèn)教師 二 〇一四 年六月摘 要 I 摘 要 隨著科技和人們的生活水平的提高,如何實(shí)現(xiàn)家庭防盜這一問(wèn)題也變的尤為突出,傳統(tǒng)的機(jī)械鎖由于構(gòu)造簡(jiǎn)單,被撬事件屢見(jiàn)不鮮。電子密碼鎖保密性好,使用靈活性高 ,收到廣大用戶的青睞。 本設(shè)計(jì)是以單片機(jī) AT89C51 作為密碼鎖的主控芯片與數(shù)據(jù)存儲(chǔ)單元,結(jié)合外圍的矩陣鍵盤(pán)輸入、數(shù)碼管顯示、開(kāi)鎖、報(bào)警等,用匯編語(yǔ)言編寫(xiě)程序,并用 keil軟件進(jìn)行編譯設(shè)計(jì)了一款可以更改密碼,具有報(bào)警功能的電子密碼控制系統(tǒng)。 本設(shè)計(jì)采用矩陣鍵盤(pán)對(duì)密碼進(jìn)行輸入,具有較高的優(yōu)勢(shì),減少了 I/O 口的占用數(shù)目。密碼的顯示采用 6 位數(shù)碼管實(shí)現(xiàn),為確保安全性統(tǒng)一使用“ — ”顯示密碼。,當(dāng)重新設(shè)置密碼時(shí)數(shù)碼管顯示數(shù)字。采用采用蜂鳴器模擬報(bào)警系統(tǒng),增加了密碼鎖的安全能力。軟件使用匯編語(yǔ)言編程,運(yùn)用自上而下的模塊化 設(shè)計(jì)思想,使系統(tǒng)朝著分布式、小型化方向發(fā)展,增強(qiáng)系統(tǒng)的可擴(kuò)展性和運(yùn)行的穩(wěn)定性。測(cè)試結(jié)果表明,設(shè)計(jì)達(dá)到電子密碼鎖的功能。 關(guān)鍵詞 : 密碼鎖 MCU 報(bào)警 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ā)展趨勢(shì) .................................................................................. 1 設(shè)計(jì)原理 .............................................................................................................. 2 第二章 電子密碼鎖硬件電路設(shè)計(jì) .................................................................................... 3 AT89C51 單片機(jī) .................................................................................................. 3 矩陣鍵盤(pán) ...................................................................................................... 3 開(kāi)鎖電路 ............................................................................................................. 4 報(bào)警電路 ............................................................................................................. 5 數(shù)碼管顯示電路 .................................................................................................. 6 復(fù)位電路 .............................................................................................................. 8 密碼存儲(chǔ)電路設(shè)計(jì) ................................................................................................ 8 第三章 軟件設(shè)計(jì) ............................................................................................................11 軟件設(shè)計(jì)思路 ...................................