【正文】
ng rapidly in the petition of the technology market and application. IC cards have bee one of the hot products in the international electronic information industry. Apart the application in the areas out of finance, like business, medicine, transportation, energy, munication, security management and identification. Its application in the area of finance is also being extensive and its influence is meaningful. Single chip integrates much peripheral equipment into a chip, making the puter system smaller, easier to integrate plicated in the limited volume control equipment. It depends on the programs and can be rewrite. It can realise different functions through different programs. Combining the single chip technology and RF card technology, must bring huge benefit. Compared with the magcards system, single chip system has higher security and safety, can be operated conveniently and fast. Cards can expand other functions, and a card can be used in several different trades. This design develops a simple and practical RFcard payment system based on MCU. The main designing ideas: Through the card reader, the data of the RF card will be read, and convey to single chip to be dealt with .The message will deliver to the LCD to display, meanwhile ,the singlechip exchanges the message and data management with the puter through serial munication module. The expansion and configuration of the system design should obey the following principal: Choosing typical circuits, lay a good foundation for the modulation and standardization of hardware。 本設(shè)計(jì)將分成緒論, 系統(tǒng)介紹 ,系統(tǒng)硬件設(shè)計(jì),系統(tǒng)軟件設(shè)計(jì),系統(tǒng)仿真測(cè)試,共 五個(gè)部分。 系統(tǒng) 設(shè)計(jì) 的擴(kuò)展和配置應(yīng)遵循以下原則 , 選擇典型電路,為硬件系統(tǒng)的標(biāo)準(zhǔn)化、模塊化打下良好的基礎(chǔ) ; 系統(tǒng)擴(kuò)展與外圍設(shè)備的配置水平應(yīng)充分滿足應(yīng)用系統(tǒng)的功能要求,并留有適當(dāng)余地,以便進(jìn)行二次開(kāi)發(fā) ; 硬件結(jié)構(gòu)應(yīng)結(jié)合應(yīng)用軟件方案一并考慮。 本設(shè)計(jì)開(kāi)發(fā)了一個(gè)簡(jiǎn)易實(shí)用的 基于單片機(jī)的射頻卡繳費(fèi) 系統(tǒng)。對(duì)比磁卡系統(tǒng),單片機(jī)系統(tǒng)的安全性和保密性更高, 操作方便, 快速。它 靠程序運(yùn)行的,并且 程序是 可以修改 , 通過(guò)不同的程序?qū)崿F(xiàn)不同的功能 。 射頻 卡已是當(dāng)今國(guó)際電子信息產(chǎn)業(yè)的熱點(diǎn)產(chǎn)品之一,除了在商業(yè)、醫(yī)療、保險(xiǎn)、交通、能源、通訊、安全管理、身份識(shí)別等非金融領(lǐng)域得到廣泛應(yīng)用外,在金融領(lǐng)域的應(yīng)用也日益廣泛,影響十分深遠(yuǎn)。 IC卡的開(kāi)發(fā)、研制與應(yīng)用是一項(xiàng)系統(tǒng)工程,涉及到計(jì)算機(jī)、通訊、網(wǎng)絡(luò)、軟件、卡的讀寫(xiě)設(shè)備、應(yīng)用機(jī)具等多種產(chǎn)品領(lǐng)域的多種技術(shù)學(xué)科。 本科生畢業(yè)設(shè)計(jì) 基于單片機(jī)的射頻卡繳費(fèi)系統(tǒng) RFCard Payment System Based on MCU 學(xué)生姓名 林少聰 所在專業(yè) 電氣工程及其自動(dòng)化 所在班級(jí) 2020級(jí)( 2)班 申請(qǐng)學(xué)位 工學(xué)學(xué)士 指導(dǎo)教師 孔秀艷 職稱 講師 副指導(dǎo)教師 職稱 答辯時(shí)間 2020年 6 月 12 日 目 錄 目 錄 設(shè)計(jì)總說(shuō)明 ............................................................................................................................ I INTRODUCTION ............................................................................................................... II 第 1 章 緒論 ....................................................................................................................... 1 研究的 背景 ............................................................................................................... 1 研究的意義和目的 ................................................................................................... 1 研究的內(nèi)容 ............................................................................................................... 2 第 2 章 系統(tǒng)概況 ............................................................................................................... 3 系統(tǒng)結(jié)構(gòu) ..................................................................................................................... 3 系統(tǒng) 具體工作過(guò)程 ................................................................................................... 3 可靠性和可行性分析 ............................................................................................... 3 主要器件的選用 ....................................................................................................... 4 第 3 章 系統(tǒng)硬件設(shè)計(jì) ....................................................................................................... 5 MCU 單片機(jī) AT89S52 的介紹 .................................................................................... 5 AT89S52 功能特性描述 .................................................................................... 6 引腳說(shuō)明 ........................................................................................................... 6 中斷系統(tǒng) ........................................................................................................... 8 串行端口的控制寄存器 ................................................................................... 9 射頻卡讀卡模塊與 MCU接口電路設(shè)計(jì) ..................................................................... 11 射頻卡讀卡模塊 ZLG500A 的介紹 ..................................................................... 11 ZLG500A 的主要特點(diǎn) .................................................................................. 11 ZLG500A 的管腳說(shuō)明 .................................................................................. 11 ZLG500A 三線串行讀卡模塊接口規(guī)范 ...................................................... 13 單片機(jī) AT89S52 與 ZLG500 的接口電路圖 ...................................................... 14 LCD 液晶顯示模塊與 MCU 的接口電路設(shè)計(jì) ............................................................ 15 LCD12864 的介紹 ................................................................................................ 15 LCD12864 的介紹 ....................................................................................... 15 LCD12864 內(nèi)部功能器件及相關(guān)功能 ........................................................ 16 LCD12864 的指令系統(tǒng)及時(shí)序 .................................................................... 17 單片機(jī) AT89S52 與 12864 液晶顯示的接口電 路 ....................................... 18 串行通信模塊與 MCU 的接口電路設(shè)計(jì) ..................................................................... 20 串行通信模塊 MAX3232 的介紹 ......................................................................... 20 MAX3232引腳介紹 ...................................................................................... 20 MAX3232 的主要參數(shù) .................................................................................. 21 目 錄 MAX3232 功能描述 ......................................................