【正文】
學(xué)士學(xué)位論文 I 摘 要 本文介紹了一種用于門(mén)禁管理系統(tǒng)的射頻讀卡器的設(shè)計(jì)過(guò)程, 實(shí)現(xiàn)卡上信息的識(shí)別和讀取。我 主要完成了硬件的設(shè)計(jì)調(diào)試和部分軟件的設(shè)計(jì)和調(diào)試工作。 對(duì)于硬件部分,完成讀卡器電路的設(shè)計(jì)和調(diào)試工作。 此設(shè)計(jì)主要運(yùn)用 AT89C52 單片機(jī)和 MCM200 模塊實(shí)現(xiàn) Mifare 1 射頻卡的識(shí)別和卡上信息的獲取。讀卡器主要由射頻天線、讀卡模塊、 RS485 通信接口及單片機(jī)控制系統(tǒng)組成,能讀寫(xiě) PHILIPS 公司的 Mifare非接觸式智能射頻卡讀卡距離約 25mm,當(dāng)有卡進(jìn)入射頻天線范圍內(nèi)時(shí)則讀卡內(nèi)數(shù)據(jù)并顯示在上位 PC 機(jī)上,通過(guò) RS485 接口與 PC機(jī)組成通信網(wǎng)絡(luò)系統(tǒng),讀卡器平時(shí)可獨(dú)立工作。 MCM200 讀卡模塊,采用內(nèi)部集成有 8K字節(jié) Flash程序存儲(chǔ)器的 AT89C52 單片機(jī)作控制器。 對(duì)于軟件部分,要求實(shí)現(xiàn) IC 卡內(nèi)部信息的讀寫(xiě)以及與上位管理計(jì)算機(jī)的通信。即主要通過(guò)串口通信程序的設(shè)計(jì)和調(diào)試,最終實(shí)現(xiàn)當(dāng)沒(méi)有卡進(jìn)入時(shí)顯示時(shí)鐘,有卡進(jìn)入時(shí)則讀卡內(nèi)數(shù)據(jù)并將數(shù)據(jù)顯示在電腦屏幕上,通過(guò)讀卡程序和對(duì) DS1302 編程實(shí)現(xiàn)。 此設(shè)計(jì)最終完成了硬件調(diào)試并實(shí)現(xiàn)了部分軟件基本程序的調(diào)試工作,可以在上位 PC機(jī)上讀取卡上的信息。 關(guān)鍵詞 :門(mén)禁管理系統(tǒng);讀卡器; Mifare 1 射頻卡;單片機(jī) 學(xué)士學(xué)位論文 II ABSTRACT This thesis introduced the design process of a kind of radio frequency (RF) read card device which used for controlling at entrance guard is used for identifying and reading mainly pleted the design and the adjustment of the circuit, the design of parts of software and debugging. For the hardware ,I main pleted the design of the reader device circuit and adjustment. This design have implemented identifying Mifare 1 RF card and acquiring the informations in cards using of AT89C52 microputer and MCM200 reader is consisted of RF antenna,reader module , RS485 munication interface and microputer control system , which can read/write the Mifare conthctless smart card of PHILIPS pany,the distance of reading card is 25mm roughly . when the card entered into the scope of radio frequency antenna , the reader device will read the card data and display the data on the RS485 interface and PC,constituting the munication work,as reader working independently. MCM 200 uses AT89C52 MCU with 8K byte Flash program memory as controller of reader. For the software , the design requests carrying out the read/write of the information in Mifare card and the correspondence with calculator as managing .Then end realization that the system will display the clock when there is on card entered into the scope of RF antenna 。when the card entered into that ,the reading card data will be displayed on the screen of puter. The realization of this process is by designing of string correspondence procedure, reading card procedure and DS1302 procedure. This design pleted the work of adjusting hardware ,carring out parts procedure of softwares and debugging endly,can be the information of card on the PC. Keywords: entrance guard system 。 reader device 。 Mifare 1 RF card 。microputer 學(xué)士學(xué)位論文 III 目 錄 1 緒 論 .................................................................................................................................... 1 門(mén)禁系統(tǒng)概述 ............................................................................................................ 1 門(mén)禁系統(tǒng)的發(fā)展 ........................................................................................................ 2 發(fā)展背景 .......................................................................................................... 2 發(fā)展現(xiàn)狀和方向 .............................................................................................. 2 2 門(mén)禁系統(tǒng)結(jié)構(gòu)與配置 .......................................................................................................... 4 功能管理結(jié)構(gòu)模式 .................................................................................................... 4 系統(tǒng)的功能和特點(diǎn) .................................................................................................... 4 3 硬件電路說(shuō)明 ...................................................................................................................... 6 電路組成 .................................................................................................................... 6 電路元件說(shuō)明 ............................................................................................................ 6 AT89C52 簡(jiǎn)介 ................................................................................................. 6 MCM200 模塊說(shuō)明 ....................................................................................... 10 AT24C256 簡(jiǎn)介 ............................................................................................. 18 DS1302 簡(jiǎn)介 .................................................................................................. 22 X5045P 簡(jiǎn)介 .................................................................................................. 25 Mifare 1 卡簡(jiǎn)介 ....................................................................................................... 28 電路模塊說(shuō)明 .......................................................................................................... 29 開(kāi)鎖模塊 ........................................................................................................ 29 報(bào)警模塊 ........................................................................................................ 29 數(shù)據(jù)存儲(chǔ)模塊 ................................................................................................ 30 讀卡模塊 ........................................................................................................ 31 時(shí)鐘模塊 ........................................................................................................ 32 外 圍電路的連接 ...................................................................................................... 32 4 軟件介紹 ............................................................................................................................ 34 KEIL簡(jiǎn)介 ................................................................................................................... 34 8051 開(kāi)發(fā)工具 ............................................................................................... 34 uVision2 集成開(kāi)發(fā)環(huán)境 ................................................................................. 34 學(xué)士學(xué)位論文 IV 編輯器及調(diào)節(jié)器 ....................................