【正文】
1 廣州大學(xué)松田學(xué)院 畢業(yè)論文(設(shè)計(jì)) 題 目 基于 AT89C52單片機(jī)的自動(dòng)告警密碼鎖的設(shè)計(jì) _ 2 基于 AT89C52 單片機(jī)的自動(dòng)告警密碼鎖的設(shè)計(jì) 摘要: 隨著電子工業(yè)的發(fā)展, 當(dāng)今智能電子密碼鎖技術(shù)也在不斷更新,特別是單片機(jī)在該領(lǐng)域的應(yīng)用正 不斷地向著高、精、尖技術(shù)發(fā)展 ,無(wú)論功能性,穩(wěn)定性都比較全面。 將無(wú)線電遙控技術(shù)與密碼技術(shù)相結(jié)合,在保證原有密碼鎖系統(tǒng)性能的基礎(chǔ)上研發(fā)新型的遙控密碼鎖系統(tǒng)。使用戶在一定范圍內(nèi)的任何位置都能對(duì)保險(xiǎn)箱進(jìn)行開啟,可以提高密碼的安全性,克 服了固定鍵盤式密碼鎖的不足。 本系統(tǒng)就是基于單片機(jī)實(shí)現(xiàn)對(duì)密碼鎖遠(yuǎn)程控制的研發(fā),其硬件設(shè)計(jì)由遙控發(fā)射和遙控接收兩個(gè)子系統(tǒng)組成,接收部分主要以 AT89C52單片機(jī)為核心。使用 PT2262, PT2272芯片來(lái)實(shí)現(xiàn)信號(hào)的編碼和解碼。另外,結(jié)合 移植性及可讀性強(qiáng)的 C語(yǔ)言 程序來(lái)實(shí)現(xiàn)開鎖、報(bào)警和顯示等功能,同時(shí),采用 EEPROM存儲(chǔ)器 AT24C02使得系統(tǒng)在掉電狀態(tài)下,仍能夠保存密碼信息。該系統(tǒng)具有體積小,成本低,性能可靠,使用方便等特點(diǎn)。 關(guān)鍵詞: 遙控技術(shù) 密碼鎖 編碼 解碼 單片機(jī) 3 Design of automatic alarm password lock based on MCU Abstract: With the development of the electronics industry, today39。s intelligent electronic lock technology is constantly updated, in particular the application of SCM in the field are constantly toward high precision and advanced technology development, whether functional and stability are more prehensive. Radio remote control technology will be bined with cryptographic techniques, to ensure that the existing locks in the system performance based on the development of new remote lock system. Enables users to any location within a certain range can be on the safe open, password security can be improved to overe the fixed keyboard lock deficiencies. The system is based on the single chip on the development of remote control locks, the hardware design from the remote transmitter and remote control receiver of two subsystems, in order to receive some of the major AT89C52 microcontroller as the core. Use PT2262, PT2272 chip encoding and decoding the signals. In addition, the bination of portability and readability of the C language program to achieve lock, alarm and display. At the same time, the use of EEPROM memory AT24C02 powerdown mode makes the system still be able to save the password information. The system is small, low cost, reliable, easy to use and so on. Keywords: remote control technology passwordlock code decode single chip microputer 4 目 錄 1 緒論 ......................................................................................................................................5 選題的依據(jù)及意義 .......................................................................................................5 國(guó)內(nèi)外發(fā)展現(xiàn)狀 ...........................................................................................................5 2 總體方案 ...............................................................................................................................7 技術(shù)要求及主 要特色 ....................................................................................................7 系統(tǒng)組成框圖及工作原理 .............................................................................................7 3 硬件電路的設(shè)計(jì) ....................................................................................................................9 單片機(jī)的選擇 ..............................................................................................................9 時(shí)鐘電路 .......................................................................................................... 10 復(fù)位電路 .......................................................................................................... 11 遙控發(fā)射模塊 ............................................................................................................ 13 遙控接收模塊 ............................................................................................................. 17 密碼存儲(chǔ)模塊 ............................................................................................................ 21 鍵盤及顯示模塊 ......................................................................................................... 23 報(bào)警電路 ................................................................................................................... 27 開鎖電路 ................................................................................................................... 28 4 軟件設(shè)計(jì) ............................................................................................................................. 31 主程序設(shè)計(jì) ................................................................................................................ 31 各模塊的程序設(shè)計(jì) ...................................................................................................... 32 無(wú)線遙控模塊程序設(shè)計(jì) ..................................................................................... 32 鍵盤輸入模塊程序設(shè)計(jì) .................................................................................... 33 密碼比對(duì)模塊程序設(shè)計(jì) .................................................................................... 34 AT24C02芯片的讀寫 ......................................................................................... 35 5 調(diào)試 .................................................................................................................................... 36 硬件的調(diào)試 ................................................................................................................ 36 PCB 板的設(shè)計(jì)制作 ........................................................................................... 36 遙控發(fā)射模塊的調(diào)試 ........................................................................................ 37 遙控接收模塊的調(diào)試 ........................................................................................ 37 密碼存儲(chǔ)模塊的調(diào)試 ........................................................................................ 38 鍵盤及顯示模塊的調(diào)試 .................................................................................... 38 報(bào)警電路的調(diào)試 .................................