基于51系列单片机的智能IC卡门禁控制系统设计

上传人:mg****2 文档编号:122627818 上传时间:2020-03-06 格式:DOC 页数:53 大小:1.06MB
返回 下载 相关 举报
基于51系列单片机的智能IC卡门禁控制系统设计_第1页
第1页 / 共53页
基于51系列单片机的智能IC卡门禁控制系统设计_第2页
第2页 / 共53页
基于51系列单片机的智能IC卡门禁控制系统设计_第3页
第3页 / 共53页
基于51系列单片机的智能IC卡门禁控制系统设计_第4页
第4页 / 共53页
基于51系列单片机的智能IC卡门禁控制系统设计_第5页
第5页 / 共53页
点击查看更多>>
资源描述

《基于51系列单片机的智能IC卡门禁控制系统设计》由会员分享,可在线阅读,更多相关《基于51系列单片机的智能IC卡门禁控制系统设计(53页珍藏版)》请在金锄头文库上搜索。

1、 编 号: 审定成绩: 重庆邮电大学毕业设计(论文)设计(论文)题目:智能门禁系统学 院 名 称 :学 生 姓 名 :专 业 :班 级 :学 号 :指 导 教 师 :答辩组 负责人 : 填表时间: 年 月重庆邮电大学教务处制摘 要 本文介绍了智能IC卡网络门禁系统的设计与开发,详细分析了系统的硬件设计和软件设计,给出了制作非接触式智能卡读卡器的电路原理图和印刷电路板制作PCB图,以及主要程序设计的流程图和程序。读卡器主要由射频天线、读卡模块、RS485通信接口及单片机控制系统组成,能读写荷兰Philips公司的Mifare非接触式智能射频卡,读卡距离约10cm。当没有卡进入读卡能量范围时,系统

2、显示时钟,当有卡进入时则读卡内数据并将卡号显示在数码显示器上。通过RS485接口与PC机组成通信网络系统,读卡器平时可独立工作,PC机会每隔一定时间访问读卡器,用PC机上的时钟统一校准读卡器上的时钟,并读取存储器内的读卡数据,以便读卡器中的数据得到及时处理。经过反复测试,系统运行正常,稳定可靠。 读卡器采用内部集成有8K字节Flash程序存储器的AT89C52单片机作控制器,扩展有带备用锂电池的实时时钟、数据存储器、8个LED显示器及显示驱动。除此以外还扩展有状态指示灯和蜂鸣器用于读卡状态指示、校时成功指示和数据传送成功指示。系统全部采用串行接口芯片,其接口管脚少、连线简单,有利于缩小读卡器的

3、体积,降低功耗。本读卡器除了用做管理门禁用外,还可扩展其它别的用途,实现一卡多用。【关键词】门禁系统读卡器单片机串行接口Abstract This paper introduces the design and development of network access control system of intelligent IC card, a detailed analysis of the hardware design and software design of the system, the flow chart and program are making contactle

4、ss smart card reading device of the circuit schematic and printed circuit board PCB drawings, as well as the main program design. Card reader mainly by the radio frequency antenna, card reader module, RS485 communication interface and MCU control system, can read and write Philips Mifare companys co

5、ntactless smart RF card, card reader distance of about 10cm. When there is no card into the card reader in the energy range, the system will display the clock, when the card entered read data in the card and the card number to display on the digital display. Through RS485 interface and PC, constitut

6、ing the communication network, card reader usually can work independently, PC every opportunity to a certain time access card reader, with unified clock calibration for PC card device on the clock, and read the memory card data, in order to read the data card to be timely processing. After repeated

7、testing, the system runs normally, and is stable and reliable. Card reader using internal integration with 8K bytes of Flash program memory AT89C52 microcontroller as the controller, with the expansion of the standby battery with a real-time clock, data memory, 8 LED display and display driver. In a

8、ddition, the state indicating lamp and the buzzer are extended to be used for indicating the status of the card, the success indication of the school and the successful indication of the data transfer. Serial interface chip is adopted in the system, which has few pins and simple connection, which is

9、 advantageous to reduce the volume of the card reader and reduce the power consumption. In addition to use the card reader to do the management of access control, but also can be extended to other uses, to achieve a multi-purpose card.【Key words】Access control system Card reader Microcontroller Seri

10、al interface目 录前言 2第一章 门禁系统方案设计与选择 2第一节 方案的选择 2第二节 IC卡的选择 3第三节 设计原理 3第四节 设计功能 3第五节 本章小结 第二章 门禁系统硬件电路的设计 4第一节 门禁系统电路基本原理 4 第二节 门禁系统结构图 4第三节 门禁系统各部分电路图5 一、 主控芯片 AT89C51 5 二、 门锁电路 8 三、 报警电路 9 四、 工作指示灯电路 9 五、 读卡模块 10 4 门禁系统软件设计与调试154.1 系统软件设计基本思路154.2 系统软件主流程图16 4.3 软件调试17 4.3.1 程序调试用到的软件及工具17 4.3.2 KEI

11、L C51简介18 4.3.3 调试过程185 门禁系统的仿真19 5.1 整体电路的功能仿真19 5.1.1 系统通电后无刷卡时的仿真19 5.1.2 合法卡刷卡时的仿真205.1.3 非法卡刷卡时的仿真215.2 调试分析21 结论 22 参考文献23 致谢24 附录A 程序清单25前 言在当今社会,随着人们对门禁系统各方面要求的不断提高,门禁控制系统的应用范围越来越广泛,因此门禁控制系统的研发已成为现代科技领域的一个热门课题。目前,门禁控制系统已成为安防系统中极为重要的组成部分,在发达国家中,门禁控制系统正在以远高于其它安防类产品的速度迅猛发展。门禁控制系统之所以能够在无数多的安防类产品

12、中异军突起,其根本原因在于门禁系统改变了以往的安防类产品,如:防盗报警,闭路监控等被动的安全防范方式,以主动的控制替代了被动的监视,通过对主要的通道控制,大大地防范了犯罪分子从正常的通道侵入,并且还可以在罪案发生的同时通过对通道门的控制限制犯罪分子的活动范围,制止犯罪或减少损失。此外,人们对门禁控制系统的应用已经不再局限于单一出入口的控制,而且还将它应用于智能大厦和高档社区的门禁控制、安防报警、考勤管理、电梯控制、停车场控制、楼宇控制等。本文介绍了基于AT89C51单片机IC卡门禁控制系统研究与实施,以单片机为核心采用编程的方法来实现门禁控制系统的功能。 根据设计的要求,对卡号的比较和开关门的指令进行程序的编写,并将所写程序装入单片机的程序存储器中。在程序运行中,通过读卡器读取卡号,再将卡号传送到单片机内进行比对,从而实现门禁功能。第一章 门禁系统的方案设计与选择 第一节 方案的选择门禁系统有许多种方案:主要有联网和不联网型。 联网型的结构图如图2-1所示。计算机管理机刷

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 教学/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号