【正文】
h 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 第四章 系統(tǒng)調(diào)試 ........................................................................................................... 17 系統(tǒng)調(diào)試的組成 ................................................................................................. 17 protues 和 keil 軟件仿真 ................................................................................. 17 第五章 總結(jié)與展望 ....................................................................................................... 19 致 謝 ............................................................................................................................ 20 參考文獻(xiàn) ...............................