基于单片机的IC卡读写器设计.doc
文本预览下载声明
石家庄铁道大学四方学院毕业设计
摘 要
IC卡是一个正蓬勃发展的边缘产业,一个与我们的生活正越来越密切的产业。在普及因特网和计算机的大潮涌来时,IC卡扮演着越来越重要的角色。
IC卡读写设备大致可分为两大类:一类为专用读写设备或称脱机读写器。其特点是:充分利用IC卡存储量大,可以独立存储和工作, 不需要和主机相连就可完成数据读写的优点,可与应用设备结合或单独工作。例如:IC卡电表,水表,ATM机, 商场收款机。另一类为通用读写设备,或称联机读写器,是带有单片机和存储器的设备,通过并行或串行口与PC机或应用系统网络相连接。 在运行不同软件时可以读写不同种类的IC卡,组成不同的应用系统。如果配备开发系统软件,可对IC卡做初始规划,数据加密和初始写入,从而构成IC卡应用开发制作环境。在本设计中, 我们讨论通用开发系统——基于ATM89C51单片机的IC卡读/写器的设计。
通过89C51单片机来实现IC卡的读和写,在系统中设计一个复位电路,接在89C51的复位管脚上。复位电路是微机应用中重要的一环,一个好的复位电路对微机抗干扰有重要作用。另外还在单片机上接了一个时钟电路,用来设置单片机内部震荡的时间。
RS232串行接口在本设计中用于单片机与PC机之间的连接, IC卡座用于插卡,实现IC卡与读写器的连接。本设计中所涉及的主要是接触式逻辑加密卡SLE4442卡。
另外一些外围电路的设计使整个IC卡读写器显得完美。
Abstract
IC card is the edge of a booming industry, a closely our lives are more and more industries. Popularity of the Internet and computers in the coming tide of time, IC card playing an increasingly important role.
IC card read-write device can be divided into two categories: one for the special read-write device, or offline reader. Its characteristics are: full use of IC card storage capacity, storage and work independently, without the data can be completed and the host connected to the advantages of literacy can be combined with the application of equipment or work alone. For example: IC card meter, water meter, ATM machines, shopping malls cash register. And those for the general read-write device, or on-line reader, is of a microcontroller and memory devices, through parallel or serial port and PC machines connected to the network or application system. Running different software can read and write different types of IC cards, composed of different applications. If equipped with the software development system, IC card can do the initial planning, data encryption and the initial write, so as to constitute production of IC card application development environment. In this design, we discuss the general development system - based on ATM89C51 Microcontroller IC card read / write device design.
Achieved through the 89C51 microcontr
显示全部