電子密碼鎖的畢業(yè)設(shè)計說明書.doc
電子密碼鎖的畢業(yè)設(shè)計說明書,摘 要隨著電子技術(shù)的發(fā)展,具有防盜報警等功能的電子密碼鎖代替密碼量少、安全性差的機械式密碼鎖已是必然趨勢。電子密碼鎖與普通機械鎖相比,具有許多獨特的優(yōu)點:保密性好,防盜性強,可以不用鑰匙,記住密碼即可開鎖等。目前使用的電子密碼鎖大部分是基于單片機技術(shù),以單片機為主要器件,其編碼器與解碼器的生成為軟件方式。本文結(jié)合經(jīng)濟實...


內(nèi)容介紹
此文檔由會員 孫中耀 發(fā)布摘 要
隨著電子技術(shù)的發(fā)展,具有防盜報警等功能的電子密碼鎖代替密碼量少、安全性差的機械式密碼鎖已是必然趨勢。電子密碼鎖與普通機械鎖相比,具有許多獨特的優(yōu)點:保密性好,防盜性強,可以不用鑰匙,記住密碼即可開鎖等。目前使用的電子密碼鎖大部分是基于單片機技術(shù),以單片機為主要器件,其編碼器與解碼器的生成為軟件方式。
本文結(jié)合經(jīng)濟實用的實際情況而設(shè)計,闡述的是一個基于51單片機的液晶顯示密碼鎖的設(shè)計和實現(xiàn)。該密碼鎖的設(shè)計是以單片機為系統(tǒng)的核心,與作為主控芯片的數(shù)據(jù)存儲器單元, 結(jié)合外圍的按鍵輸入、顯示、報警、開鎖等硬件電路,用匯編語言編寫主控芯片的控制程序,設(shè)計了一款可以多次更改密碼具有報警功能的電子密碼鎖。使用便捷簡單,符合住宅、辦公用鎖需求,具有一定的使用價值。
關(guān)鍵詞: 單片機 密碼鎖 4×4矩陣鍵盤 液晶顯示器
Abstract
With the development of electronic technology, mechanical electronic ciphercode anti-theft alarming lock has instead of a password less, poor security lock is an inevitable trend. Electronic password lock compared with ordinary mechanical locks, it has many advantages: good secrecy, strong anti-theft performance, can not remember the password to unlock the keys, etc..Electronic code lock used at present are mostly based on microprocessor,microcontroller as the main device, the encoder and decoder into software.
In this paper, combined with the actual situation of economic and practicaldesign, describes a design and implementation of the password lock based on MCU 51 LCD display. The design of the cipher lock is based on microcontroller as the core of the system, and as the main control chip and the data memory unit, combined withthe periphery of the key input, display, alarm, lock hardware circuit, using assembly language to write the main control chip control procedures, the design can be a multiple change the password electronic password lock withalarm function. Simple and easy to use, with residential, office lock needs, has certain use value.
Keywords: AT89C51 microcontroller password lock 4*4 matrix keyboard liquid crystal display
目 錄
1 緒 論 1
1.1課題的現(xiàn)狀與發(fā)展趨勢 1
1.2本課題的研究背景及意義 1
1.3本課題研究的內(nèi)容及結(jié)構(gòu)安排 2
2 系統(tǒng)總體方案設(shè)計 3
2.1 設(shè)計任務(wù)及要求 3
2.1.1 任務(wù) 3
2.1.2 要求 3
2.2 密碼鎖原理及設(shè)計思路 3
2.2.1 系統(tǒng)工作原理 3
2.2.2 系統(tǒng)設(shè)計基本思路 3
2.3系統(tǒng)總體設(shè)計方案 3
2.4單片機的選型 5
2.5 顯示模塊選型 5
2.6報警模塊選型 6
2.7 鍵盤模塊選型 6
2.8 密碼鎖總體系統(tǒng)方案設(shè)計 7
3 硬件電路的設(shè)計 7
3.1 主控模塊 8
3.1.1 單片機芯片簡介 8
3.1.2 芯片管腳簡介 8
3.1.3 單片機最小系統(tǒng) 10
3.2 外圍功能模塊電路設(shè)計 12
3.2.1 繼電器模塊 12
3.2.2 存儲芯片(AT24C02)模塊 13
3.2.3 LCD1602顯示器模塊 14
3.2.4 矩陣鍵盤模塊 16
3.2.5 報警模塊 16
3.2.6 開鎖模塊 17
3.2.7電源電路 17
3.3系統(tǒng)印制電路板設(shè)計 18
3.3.1 PCB布局 18
3.3.2 PCB布線 19
3.3.3 PCB覆銅 20
4 軟件設(shè)計 21
4.1 編程語言介紹 21
4.2編程用的KEIL軟件 21
4.3 主程序流程 22
4.3.1按鍵功能程序流程圖 22
4.3.2密碼修改功能程序流程圖 23
4.3.3 開鎖程序流程圖 24
5 綜合調(diào)試 25
5.1 Proteus軟件介紹 25
5.2系統(tǒng)軟件調(diào)試 27
5.3仿真結(jié)果 27
總結(jié) 29
致謝 30
參考文獻 31
附錄1 32
附錄2 33
附錄3 34