《基于FPGA的门禁系统设计》由会员分享,可在线阅读,更多相关《基于FPGA的门禁系统设计(36页珍藏版)》请在金锄头文库上搜索。
1、摘 要门禁系统是集计算机技术、电子技术、数字密码技术为一体的机电一体化高科技产品,具有安全性高,使用方便等优点。本论文从门禁系统系统整体功能,硬件电路设计、软件设计等方面阐述密码门禁系统设计过程。密码门禁系统系统包括电子锁,电子钥匙,用户卡及用户卡生成器四部分。电子锁里保存着当前开门密码,以及用户第一次使用用户卡时的用户卡号和加密位。用户凭用户卡在门上随时更改开门密码,更新或配制钥匙里的开门密码。本系统考虑到门禁系统成本及体积因素,在设计门禁系统部分时,以FPGA 为核心;由多个数码管,按键和发光二极管组成外围电路。本文采用VHDL语言使用自顶而下的方法对系统进行了描述。采用FPGA开发设计,
2、所有算法完全由硬件电路来实现,使得系统的工作可靠性大为提高,同时由于FPGA具有在系统可编程功能,当设计需要更改对,只需更改FPGA中的控制和接口电路,利用EDA工具将更新后的设计下载到FPGA中即可,无需更改外部电路的设计,大大提高了设计的效率。因此,采用FPGA开发的数字系统,不仅具有很高的工作可靠性,其升级与改进也极其方便。关键词: 门禁系统 FPGA VHDL AbstractThe technology of access control system combines computer, electronics and digital coding technology toget
3、her, and seems to be a high-tech electromechanical integration product, can be used safely and easily. This paper discussed the whole system architecture of the access control system; hardware design and software design were presented separately. The whole password access control system consists of
4、four parts: electronic lock, electronic key, user card and user card generator. The electronic lock is used to preserve the current unlock password, the user card numbers and encrypted spaces. Users can use the card to unlock the lock, update or preparation the unlock password at any time. The cost
5、and size are put most emphasis in the design of access control system. Design based on FPGA is presented. The system then is designed and verified through some external circuit components, such as keyboard and LEDs.The paper is described with VHDL using the top-down approach.FPGA-based development a
6、nd design which is achieved all entirely by the hardware circuit algorithm,makes the system work much more reliability,as well as because FPGA in the system can be made available for the in-system programmable function,when the design needs to be changed,the control and the interface circuit can be
7、restructured in the FPGA conveniently,using EDA tools,to download the updated design to the FPGA without changing the external circuit designSo the efficiency of the design Can be provedThus,the digital system implemented by FPGA is of high reliability,and the upgrade and improvement is extremely co
8、nvenientKey words: access control system FPGA VHDL 目 录摘 要.IAbstract.II目 录.III绪 论.11 门禁系统的分类及特点.21.1 门禁系统的分类及特点.21.1.1 按进出识别方式分类.21.1.2 按设计原理分类.31.1.3 按与微机通汛方式分类.32 开发工具简介.42.1 MAX+PLUS开发系统的特点.42.2 FPGA 简介.52.21 FPGA 基本工作原理.52.22 FPGA 的基本特点.52.23 FPGA 设计流程.52.3 芯片选择.63 门禁系统总体方案.73.1 系统概述.74 门禁系统实现.94.1 门禁系统输入电路的设计.94.1.1 矩阵式键盘的工作原理.94.1.2 门禁系统输入电路各主要功能模块的设计.114.2 门禁系统控制电路的设计.154.2.1 数字按键输入的响应控制.154.2.2 功能按键输入的响应控制.