防盗门密码锁的设计

论文编号:JD920   论文字数:15160,页数:47

 摘 
 本设计选用单片机芯片AT89C52为主控芯片,作键盘处理和数码管显示,以及控制指示灯和开锁。采用4×4键盘,其中设定10个数字键(0—9)和两个功能键(确认和取消),只有当确认功能键先按下的情况下才能执行相应的功能部分;若没有按下,则单片机继续进行键盘扫描。当输入六个密码并按下确认键后,单片机将输入的密码与设定的密码进行比较,若密码正确,则控制绿色发光二极管亮一秒钟,同时单片机控制驱动电路开锁;若密码不正确,则控制红色发光二极管亮一秒钟,并且驱动开锁电路不动作。.
关键词:单片机;键盘; 密码; 二极管
 
Abstract

    This design chooses to use a single slice the machine chip AT89 C52 to control chip for the lord, making keyboard processing and figuring to take care of a manifestation, and controling an indicator and opening a lock. It adopts 4×4 keyboards, sets 10 piece character key(0-9)s among them with two function keys(ENTER and CANCEL), only having to be under the circumstance that the ENTER function key presses first then can carry out homologous function part; If do not press, the single slice machine then continued to carry on a keyboard to scan. After inputing six passwords and pressing ENTER function key, then the single slice machine carries on the password of password and enactment for inputing to comparison, if the password is right, then controling the green give out light diode for bright second, at the same time ,the single slice machine control drives electric circuit to open a lock;If the password is incorrect, then controling red to give out light diode for bright second, driving to open lock electric circuit not to act. This completes burglarproof function.
Keywords :  SCM ,keyboard ,password ,diode
                          

目  
摘   要……………………………………………………………………………………I
Abstract…………………………………………………………………………….II
第1章  绪  论................................................1
 1.1发展历史..................................................1
 1.2发展前景..................................................2
 1.3设计的实现.................................................2
第2章  模块电路设计............................................4
 2.1系统框图.................................................4
 2.2控制电路设计..............................................4
 2.2.1单片机AT89C52的总体介绍................................. 5
 2.2.2单片机AT89C52的引脚功能说明...........................6
 2.2.3控制电路...............................................9
 2.3   键盘电路设计..........................................10
 2.3.1键盘输入原理..........................................10
 2.3.2键盘扫描中遇见的问题.................................12
 2.3.3键盘的键值编码…………………………………………………13
 2.3.4键盘面板逻辑图…………………………………………………14
 2.4显示电路设计………………………………………………………………… 15
 2.4.1数码管显示………………………………………………………15
 2.4.2数码管显示原理图……………………………………………17
 2.5电源模块……………………………………………………………………… 19
 2.6密码锁和指示灯设计…………………………………………………………. 19
第3章   总电路设计………………………………………………………………21
第4章   软件设计………………………………………………………………22
 4.1 软件流程…………………………………………………………………22
 4.2  程序的编译和调试………………………………………………………30
     4.2.1 对程序进行编译……………………………………………………30
     4.2.2 对程序进行调试……………………………………………………31
总结……………………………………………………………………………………32
参考文献………………………………………………………………………33
致谢……………………………………………………………………………………34
附录1………………………………………………………………………………35
附录2………………………………………………………………………………4

以上为本篇论文部分内容,有需要完整论文的网友可参阅也可直接通过QQ:136775125联系.更多相关论文请点击进入查看.

已投稿到:
郑重声明:资讯 【防盗门密码锁的设计】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——