【正文】
目 錄 摘要 : ............................................................................................................................................ I Abstract: ..................................................................................................................................... II 第 1 章 緒論 .............................................................................................................................. 1 課題背景 ......................................................................................................................... 1 課題設計目標 ................................................................................................................. 2 第 2 章 系統(tǒng)方案論證 .............................................................................................................. 4 主控部分的選擇 ............................................................................................................. 4 密碼輸入方式的選擇 ..................................................................................................... 5 第 3 章 系統(tǒng)總體設計和主要芯片介紹 .................................................................................. 6 系統(tǒng)總體設計 ................................................................................................................. 6 主要芯片介紹 ................................................................................................................. 6 AT89C51.................................................................................................................... 6 存儲芯片 AT24C02 ............................................................................................... 10 顯示電路( LCD1602) ........................................................................................ 11 第 4 章 系統(tǒng)硬件構成 ............................................................................................................ 13 系統(tǒng)整體電路圖 ........................................................................................................... 13 單片機最小系統(tǒng)原理圖 ............................................................................................... 13 復位電路 ....................................................................................................................... 14 時鐘電路 ....................................................................................................................... 15 鍵盤輸入部分 ............................................................................................................... 16 密碼存儲部分 ............................................................................................................... 17 顯示部分 ....................................................................................................................... 18 報警部分 ....................................................................................................................... 19 第 5 章 軟件的設計與實現(xiàn) .................................................................................................... 20 軟件系統(tǒng)的總體設計 ................................................................................................... 20 主程序流程圖 ............................................................................................................... 20 鍵功能程序流程圖 ....................................................................................................... 22 第 6 章 結論 ............................................................................................................................ 23 附 錄 ........................................................................................................................................ 26 附件 1:英文原文及中文翻譯 ........................................................................................... 26 附件 2:任務書 ................................................................................................................... 40 附件 3:開題報告 ............................................................................................................... 41 附件 4:原理圖 ................................................................................................................... 46 附件 5:實物圖 ................................................................................................................... 47 附件 6:程序 ....................................................................................................................... 48 附件 7:元件清單 ............................................................................................................... 66 I 基于單片機的智能密碼鎖的設計 摘要 : 隨著科學技術的不斷發(fā)展,人們在 日常生活與工作中 對保險器件的要求越來越高。同時,電子設備也正在向智能化與微型化不斷發(fā)展, 電子密碼控制系統(tǒng)已經越來越符合人們的要求。而單片機已經成為電子產品研制和開發(fā)中首選的控制器。為了滿足人們對鎖的使用要求,增加其安全性,同時克服傳統(tǒng)鎖具帶來的不方便性,用數(shù)據(jù)密碼代替鑰匙的智能密碼鎖便應運而生。智能密碼鎖 具有安全 性高、操作簡易、成本低、 功耗低等優(yōu)點。 本次設計由單片機系統(tǒng)、矩陣鍵盤、 LCD 顯示和報警系統(tǒng)組 成。系統(tǒng)能完成開鎖、超次鎖定、報警、修改用戶密碼等基本的密碼鎖 功能。除上述基本的密碼鎖功能外,還具有掉電存儲、聲光提示等功能,依據(jù)實際的情況還可以添加遙控功能。所采用的編程語言是 C 語言。本系統(tǒng)電路穩(wěn)定性高、成本低廉、 功能實用 , 符合辦公室、住宅等場所的用鎖要求,具有推廣價值。 關鍵詞: AT89C51; AT24C02; 電子密碼鎖 ; 矩陣鍵盤 II Design of Intelligent Password Lock Based on MCU Abstract: with the continuous development of science and technology, insurance devices have bee increasingly demanding in people’s daily life and work. Meanwhile, the electronic intelligence devices are also being miniaturized to the intelligent and evolving. Electronic code control system has been increasingly in line with people39。s requirements. The microcontroller has bee the preferred controller in the research and development of electronic product. In order to meet people39。s requirements for the use of locks to increase their security and overing the inconvenience of traditional locks, smart locks which use the data encryption instead of key e into being. Smart locks have many advantages such as high security, ease of oper