基于单片机的IC卡门禁系统设计

非接触式IC卡门禁系统在实际的运用过程中呈现出了较大的优越性,在安全性以及便捷性上都有着良好的表现。这也使得其成为了市场中的主力,能够在各种不同的场合下发挥出作用。


摘  要:随着科技的进步,IC卡门禁系统逐渐替代了传统的钥匙开关门,相较于传统的钥匙,IC卡门禁系统具有更高的安全性,而且更为方便使用。本设计主要是基于STC89C52RC单片机制成。IC卡门禁系统运用范围广,不仅可以运用小区内门禁系统还可以运用于安保部门。

以STC89C52RC为主设计主控制系统,通过读写器实现IC卡刷卡进门。在刷卡前,后台操作员首先录入用户信息,当使用者要进入大门时,需要刷卡验证,若用户的身份通过检查,则绿灯亮起,大门打开,若用户的身份没有通过检查,则红灯亮起,大门不能够打开。这种新型IC卡门禁系统大大优化了传统门禁系统的不足之处,是现在国内外小区的门禁系统首要选择。

主程序是系统的监控程序,在实际的运用过程中,其能够实现程序的流向的及时调控以及初始化等方面的作用,在实际的操作进程中的,如要想要实现单片机对智能卡的控制,那么就必须要运用到MF RC500。在这样的条件下,单片机就会发出相应的指令,之后MF RC500在根据指令的具体内容来进行后续的操作。

该论文有图5幅,表1个,参考文献16篇。

关键词:非接触式IC卡  门禁系统  射频技术  读写器

IC Card Access Control System Based On Single Chip Microcomputer

Abstract:With the development of science and technology,IC card access control system gradually replaced the traditional key opening and closing,compared to the traditional key,the IC card access control system is not only safe but also very convenient.The design is mainly based on STC89C52RC.The IC card access control system is widely used,it can provide safe,practical and convenient management for personal,security and other management departments.

The main control system is based on STC89C52RC,enter the door by IC card with reader,the system administrator first writes user information and permissions to the user IC card chip by reader before enter the door,when the user needs to enter and leave the door,the user moves the IC card close to the reader,and then the reader will send the user information and permission to the single chip to authenticate.If the identify is passed and the authority is satisfied,the green light shine and the door open otherwise the red light is bright and the door is closed.

The main program is the monitoring program of the system.In the practical application process,it can achieve timely control and initialization of the flow of the program,in the actual operating process,if you want to realize the control of a smart card by a single chip microcomputer,the MF RC500 must be used.Under such conditions,the MCU will send out the corresponding instructions,then the MF RC500 do the following operation according to the instructions.

This article includes five pictures,one chart and sixteen references.

Key Words:Non-contact IC card  Entrance guard system  Radio frequency

technology  Reader and writer

目  录

摘  要 I

Abstract II

目  录 III

图清单 IV

表清单 IV

1 绪论 1

1.1 选题的目的及研究意义 1

1.2 选题的发展现状和趋势 1

1.3 设计目的和任务 1

2 设计思路及框图 3

2.1 设计思路 3

2.2 总体框图 3

2.3 卡式门禁选择方案 4

2.4读写芯片选择方案 4

3 硬件设计 5

3.1 门禁系统框图 5

3.2 门禁系统构成 5

3.3 射频接口电路 7

3.4 数字电路部分 7

4 软件设计 9

4.1 编程语言的选择 9

4.2 主程序设计 9

4.3 MF RC522应用子程序设计 10

5 结论 11

参考文献 12

致谢 13

图清单

图序号 图名称 页码

图2-1 门禁系统硬件框图 3

图3-1 门禁系统框图 5

图3-2 读写器框图 6

图3-3 非接触式IC卡功能组成图 7