【正文】
課程設計 (論文 )說明書 題 目: 基于單片機的電子密碼鎖設計 院 (系): 專 業(yè): 學生姓名: 學 號: 指導教師: 職 稱: 2020 年 12 月 10 日 桂林電子科技大學課程設計(論文)報告用紙 第 1 頁 共 3 頁 摘 要 本文詳細介紹了一種基于單片機電子密碼鎖的設計方案。 描述了電子密碼鎖的總體結構、主要功能及工作原理等內容 。 傳統(tǒng)的機械鎖由于安全性能太差,被撬的事件屢見不鮮,相比之下,電子密碼鎖因其保密性強,靈活性好,安全系數(shù)高,受到了廣大用戶的歡迎。電子密碼鎖作為一種新型的鎖,省去了傳統(tǒng)機械鎖的鑰匙,使用者只要記得其密碼,便可以開啟,從而提高了防盜功能,本文主要設計了一種以單片機 89S52 為核心的電子密碼鎖,詳細的介紹了該電子密碼鎖完整的設計過程以及外圍的開鎖電路。電子密碼鎖主要由三部分組成:鍵盤接口電路、電子密碼鎖的控制電路、輸出八段顯示電路。鍵盤接口電路包括時序產(chǎn)生電路、鍵盤掃描電路、彈抖消除電路、鍵盤譯碼電路。電子密碼鎖控制電路設計包括數(shù)字按鍵的數(shù)字輸入、清除、功能按鍵的功能設計、輸出八段顯示電路包括數(shù)據(jù)選擇電路、八段顯示器掃描電路。 關鍵詞: 電子密碼鎖 ; 89S52; 鍵盤接口 ; 輸出八段顯示 。 Abstract This article particularly introduces the design 89S51 microcontroller core with an electronic lock, describe the overall structure of electronic lock, main function and working principles. Because traditional mechanical locks poor safety performance, it’s easy for someone to pick a lock. Electronic locks for its confidentiality use good flexibility, high safety factor, the majority of users. Electronic code lock as a new type of lock, eliminates the traditional mechanical key to the lock, the user just remember their password, they can open, thus greatly improving antitheft feature. Electronic code lock consists of three parts: the keyboard interface circuit, electronic lock control circuit, the output of erection digital tube circuit. Keyboard interface circuit includes the timing generating circuit, keyboard scanning circuit, bounce elimination circuit, the keyboard decoder circuit. Electronic code lock control circuit design, including digital key digital input, functional design of function keys, shift register design and control, password remove, change, to step down, storage, alarm signal generating circuit password check, the lifting power locks circuit. Key words: electronic code lock; 89S52; keyboard interface; output of eight digital tube 桂林電子科技大學課程設計(論文)報告用紙 第 2 頁 共 3 頁 目 錄 引言 .............................................................................................................. 1 1. 關于課題 ........................................................................................................................1 幾種常見的密碼鎖 ...................................................................................................... 1 普通密碼鎖 ........................................................................................................... 1 機械密碼鎖 ........................................................................................................... 1 電磁/卡片式密碼鎖 ........................................................................................... 1 指紋密碼鎖 ........................................................................................................... 1 研究背景及意義 .......................................................................................................... 2 本設計主要內容及功能描述 ...................................................................................... 2 2. 系統(tǒng)總體方案設計 ......................................................................................................2 3. 硬件電路設計 ...............................................................................................................3 AT89S52 介紹 ............................................................................................................... 3 芯片介紹 ............................................................................................................... 3 引腳排列及其功能 ............................................................................................... 4 按鍵電路設計 .............................................................................................................. 5 LED 顯示電路 ............................................................................................................... 6 開鎖電路 ...................................................................................................................... 7 復位電路 ...................................................................................................................... 7 4. 軟件設計 ........................................................................................................................8 軟件設計思路 .............................................................................................................. 8 軟件主程序流程圖 ...................................................................................................... 9 中斷服務子程序流程圖 ............................................................................................ 10 5. 系統(tǒng)調試 ......................................................................