网学网电子数电单片机编辑为广大网友搜集整理了:基于89C2051 IC卡读/写器的设计绩等信息,祝愿广大网友取得需要的信息,参考学习。
论文编号:JD673 论文字数:20419,页数:43
摘 要
基于89C2051 IC卡读/写器的设计是以电路基础、数字电子技术、模拟电子技术等理论知识为基础,以单片机接口技术和I2C总线通信技术为核心,以VB程序开发为辅助进行的对于IC卡读/写器的研究与制作。利用单片机的快速,便捷,稳定,高效以及廉价等特点,开发出一套适合于我校电子系的EDA网络实验室的IC卡上机管理系统。
本设计的内容有,利用89C2051型号单片机的优秀外围电路扩展功能,构成了系统硬件的基本框架;根据I2C总线的通信原理,用单片机模拟I2C总线主器件对IC卡封装形式的AT24C16芯片进行读/写数据操作;根据串口工作原理,使单片机可以通过串行口与PC机异步通信,实现了用PC机控制IC卡读/写器的目的;在PC机方面,使用Visual Basic 6.0编写了串口测试程序和简单的可视化读/写器操作程序,将来可根据此程序进行数据库等方面的扩展。
经过软硬件的设计,以期能够实现IC卡读/写器的基本功能。
关键词:IC卡读/写器;单片机;I2C总线;串行通信
Design of IC-Card Read-Write Device Based on
89C2051 Single-Chip Microcomputer
Abstract
Design of IC-card read-write device based on 89c2051 single-chip microcomputer is according to electric circuit foundation, imitating electronics technique, arithmetic figure electronics technique, the core is technique of connect port of machine of single-chip microcomputer and Inter-Integrated Circuit bus communication, and this paper is about IC-card read-write device research and manufacturing, asking for help of VB procedure design. This system’s exploit is making use of single-chip microcomputer’s characteristics: quick, conveniently, stabilizing, efficiently and cheap, also it’s a set of computer management system, suitable for EDA network laboratory of electronics department of our school .
The contents of this design are: the basic frame of system’s hardware makes use of 89C2051 model single-chip microcomputer’s expanding function of outstanding outer circle electric circuit; according to the Inter- Integrated Circuit bus communication principle, we use single-chip microcomputer imitate Inter-Integrated Circuit bus main device in order to do reading and writing operation to IC-card parked AT24C16 core slice ; based on sting-export work principle, single-chip microcomputer can realize asynchronous data communication though sting-export and PC(personal computer) ,moreover, PC(personal computer) can control IC-card read-write device; in PC(personal computer) aspect, the sting export test procedure and the simple visible write and read operation procedure are both use Visual Basic 6.0 computer language, in the future ,we can expand database on base of this procedure.
Through the hardware’s design, we hope to realize basic foundation of IC-card read-write device.
Key Words: IC-card read-write device;single-chip microcomputer; Inter-Integrated Circuit bus; sting-export
目 录
摘要…………………………………………………………………………………………Ⅰ
Abstract……………………………………………………………………………………Ⅱ
前言…………………………………………………………………………………………1
第1章 设计方案和工作原理………………………………………………………………2
1.1 设计方案……………………………………………………………………………2
1.2 工作原理…………………………………………………………………………10
第2章 IC卡读/写器的硬件设计…………………………………………………………20
2.1 硬件设计原则……………………………………………………………………20
2.2 IC卡读/写器的电路原理图………………………………………………………20
2.3 IC卡读/写器的电路分析…………………………………………………………20
2.4 IC卡读/写器的印刷电路板的设计………………………………………………23
2.5 IC卡读/写器实物的制成…………………………………………………………24
第3章 IC卡读/写器的软件设计…………………………………………………………26
3.1 软件设计的基本原理……………………………………………………………26
3.2 IC卡数据读/写模块和串行通信模块的软件设计………………………………28
3.3 PC机的IC卡读/写器操作软件…………………………………………………32
第4章 系统的测试效果……………………………………………………………………36
4.1 串口通信的测试…………………………………………………………………36
4.2 IC卡读/写的测试…………………………………………………………………36
结论…………………………………………………………………………………………38
参考文献 ……………………………………………………………………………………39
致谢 …………………………………………………………………………………………40