【正文】
................................................................ 1 硬件方案的選擇 ............................................................................................. 1 主控制芯片的選擇 ................................................................................. 1 顯示模塊的選擇 ..................................................................................... 2 電源電路的比較與選擇 ......................................................................... 2 鍵盤輸入電路的選澤 ............................................................................. 3 電子鎖門禁驅(qū)動電路的選擇 ................................................................. 3 數(shù)據(jù)存儲芯片的選澤 ............................................................................. 4 2 系統(tǒng)的硬件設(shè)計 ..................................................................................................... 5 單片機最小系統(tǒng)設(shè)計 ..................................................................................... 5 STC89C52 單片機介紹 .......................................................................... 5 IC 卡原理及驅(qū)動電路設(shè)計 ............................................................................ 7 Mifare 射頻卡技術(shù)參數(shù) ......................................................................... 7 IC 卡內(nèi)部結(jié)構(gòu)介紹 ................................................................................ 7 IC 卡 讀寫過程 ........................................................................................ 9 單片機與 IC 卡讀卡模塊接口電路設(shè)計 ............................................. 10 鍵盤電路設(shè)計 ............................................................................................... 10 鍵盤識別原理 ....................................................................................... 10 鍵盤電路及鍵盤按鍵定義 ....................................................................11 電子鎖門禁繼電器驅(qū)動電路設(shè)計 ................................................................11 繼電器介紹 ............................................................................................11 繼 電器 驅(qū)動電路設(shè)計 ........................................................................... 12 LCD1602 液晶顯示電路設(shè)計 ...................................................................... 12 LCD1602 液晶介紹 .............................................................................. 12 單片機與 LCD1602 液晶接口介紹 ..................................................... 12 3 系統(tǒng)的 軟件設(shè)計 ................................................................................................... 14 系統(tǒng)總程序設(shè)計 ........................................................................................... 14 IC 卡讀寫子程序設(shè)計 .................................................................................. 14 鍵盤掃描程序的設(shè)計 ................................................................................... 15 LCD1602 液晶顯示子程序 .......................................................................... 17 電子鎖門禁開關(guān)子程序設(shè)計 ....................................................................... 18 報警子程序設(shè)計 ........................................................................................... 18 4 系統(tǒng)的焊接與調(diào)試 ............................................................................................... 19 系統(tǒng)硬件焊接與調(diào)試 ................................................................................... 19 系統(tǒng)軟件調(diào)試 ............................................................................................... 19 結(jié)語 ............................................................................................................................. 21 參考文獻(xiàn) ..................................................................................................................... 22 附錄一 電路圖 ........................................................................................................... 23 附錄二、程序源代碼 ................................................................................................. 24 1 1 系統(tǒng)總體方案設(shè)計 系統(tǒng)設(shè)計原理 本系統(tǒng)是基于 STC89C52 單片機設(shè)計的 IC 卡門禁系統(tǒng)。IC card。s hands, ratio of IC are checking data recognition after successful and storage system, if there is evidence that the IC card IC card IC card database legal, chip by controlling the relay control electronic lock opening and closing. At the same time the system uses the 4X4 matrix keyboard as input, LCD1602 liquid crystal display as humanputer interaction, can plete the IC card information through the keyboard to add, delete and other tasks, to make the system more practical value. Key words: STC89C52。同時系統(tǒng)采用 4X4 矩陣鍵盤作為輸入, LCD1602 液晶作為人機交互顯示,讓系統(tǒng)具備更大的實用價值。出入口門禁控制系統(tǒng)是通過對出入口的準(zhǔn)入情況進(jìn)行控制、管理和記錄的設(shè)備,對何人何時在何地進(jìn)行詳細(xì)跟蹤,以實現(xiàn)中心對出入口的 24 小時控制、監(jiān)視及管理 等 。使用者用一張卡可以打開多把門鎖 , 對門鎖的開啟也可以有一定的時間限制。 2021 屆本科生畢業(yè)設(shè)計 題 目: 基于單片機 IC 卡門禁系統(tǒng)的設(shè)計與實現(xiàn) 院 ( 系 ): 機械與電子信息工程學(xué)院 專業(yè)年級 : 2021 級電信專升本 姓 名 : 陳 誠 學(xué) 號 : 2021080102 指導(dǎo)教師 : 唐永剛 教授 2021 年 03月 20 日 Title: microcontrollerbased temperature control system fountains Department: College of the system of energy saving and safety Major: Electronic and Information Engineering Author: Chen cheng Student ID: 2021080102 Instructor: Tang Yonggang Professor March 20th,2021 摘要 隨著科學(xué)技術(shù)的進(jìn)步, IC 卡門禁系統(tǒng)在日常生活中的應(yīng)用越來越普及。比如公司、寫字樓 出入口 門禁 制系統(tǒng)采取以感應(yīng)卡來取代用鑰匙開門的方式。如果卡丟失了,不必更換門鎖,只需將其從控制主機中注銷。 本系統(tǒng)以 89C51系列單片機 STC89C52為控制核心,利用非接觸式高頻 Mifare IC卡模塊讀取用戶手中的 IC 卡信息,識別成功后與系統(tǒng)存儲的 IC 卡庫數(shù)據(jù)進(jìn)行比對校驗,如果 IC 卡數(shù)據(jù)庫中有 IC 卡則證明 IC 卡合法,單片機通過控制繼電器控制電子 鎖門禁開啟和關(guān)閉。 關(guān)鍵詞: STC89C52; 4X4鍵盤 ; IC卡 ; LCD1602; Mifare Abstract With the progress of science and technology, access control systems used in daily life is more and more popular. The gate