【正文】
集和輸出管腳相兼容。 本系統(tǒng)共有兩部分構(gòu)成,即硬件部分與軟件部分。由于數(shù)字、字符、圖形圖像、人體生物特征和時間等要素均可成為鑰匙的電子信息,組合使用這些信息能夠使電子防盜鎖獲得高度的保密性,如防范森嚴(yán)的金庫,需要使用復(fù)合信息密碼的電子防盜鎖,這樣對盜賊而言是“道高一尺、魔高一丈”。由于電子器件所限,以前開發(fā)的電子密碼鎖,其種類不多,保密性差,最基本的就是只依靠最簡單的模擬電子開關(guān)來實現(xiàn)的,制作簡單但很不安全,在后為多是基于 EDA 來實現(xiàn)的,其電路結(jié)構(gòu)復(fù)雜,電子元件繁多,也有使用早先的 20 引角的 2051 系列單片機(jī)來實現(xiàn)的,但密碼簡單,易破解。隨著大規(guī)模集成電路技術(shù)的發(fā)展,特別是單片機(jī)的問世,出現(xiàn)了帶微處理器的智能密碼鎖,它除具有電子密碼鎖的功能外,還引入了智能化管理、專家分析系統(tǒng)等功能,從而使密碼鎖具有很高的安全性、可靠性,應(yīng)用日益廣泛。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 設(shè)計原理 .............................................................................................................. 2 第二章 電子密碼鎖硬件電路設(shè)計 .................................................................................... 3 AT89C51 單片機(jī) .................................................................................................. 3 矩陣鍵盤 ...................................................................................................... 3 開鎖電路 ............................................................................................................. 4 報警電路 ............................................................................................................. 5 數(shù)碼管顯示電路 .................................................................................................. 6 復(fù)位電路 .............................................................................................................. 8 密碼存儲電路設(shè)計 ................................................................................................ 8 第三章 軟件設(shè)計 ............................................................................................................11 軟件設(shè)計思路 ......................................................................................................11 LED 顯示子程序 ...........................................................................................11 鍵盤掃描子程序 .......................................................................................... 12 密碼比較和報警程序 ................................................................................... 14 第四章