摘要:随着科学技术的发展,接触式和非接触式的IC卡大量的出现在我们的生活中。它们使用方便,携带也方便,信息的安全性上来说也是传统的磁卡无法比拟的。本次我选用的IC卡是SLE4442卡,它是一种接触式IC存储卡,如今应用非常广泛。本课题主要是设计实现一种基于STC51单片机的接触式4442卡读写系统。该系统是由STC51单片机、4442卡读写模块、串口接收和发送模块、MFC读写界面模块组成。本文首先对SLE4442卡做一个综合的介绍,介绍了其特点、原理结构、工作模式等。系统的硬件设计包括51单片机的连接、读卡模块电路、LED状态显示电路和RS232通信电路。软件部分主要是用keil作为51单片机的开发工具,用C语言实现功能。在PC机上用VS2015作为开发工具,C++编程语言设计实现MFC界面,MFC界面与单片机的串口通信。最终可以通过PC机上的MFC程序对4442卡进行读写操作。
关键词:SLE4442卡、STC51单片机、串口通信、MFC
Abstract:With the development of science and technology, contact and non-contact IC card in a large number of appear in our lives. They are easy to use, easy to carry, the security of information is also the traditional magnetic card can not match. This time I study the object is SLE4442 card, it is a contact logic encryption memory card, and now a very wide range of applications. This topic is mainly to design and implementation of a STC51
single-chip contact 4442 card reader system. The system is composed of STC51
single-chip, 4442 card reader module, serial port receiving and sending module, MFC read and write interface module. This article first on the SLE4442 card to do a comprehensive introduction, introduced its characteristics, the principle of structure, mode of operation and so on. The hardware design of the system includes 51 single-chip connection, reader module circuit, LED status display circuit and RS232 communication circuit. The
software part is mainly used keil as 51 single-chip development tools, using C language to achieve the function. In the PC with VS2015 as a development tool, C ++ programming language design to achieve MFC interface, MFC interface and single-chip serial communication. The final through the PC on the MFC interface to 4442 card data to read and write.
Keywords: SLE4442 card, STC51 single-chip, Serial communication, MFC
目录
第一章绪论 1
1.1课题研究背景 1
1.2IC卡发展现状 2
1.3MFC技术发展现状 3
1.4单片机技术发展现状 3
1.5本文主要内容 4
第二章系统方案设计 5
2.1系统组成结构 5
2.2系统需求分析 5
2.3系统硬件组成 6
2.3.1STC51概述 6
2.3.2SLE4442概述 8
2.3.3RS232概述 11
2.4系统开发环境概述 13
第三章硬件设计 14
3.1总体设计思路 14
3.2电源模块