防盗门密码锁的设计
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
本设计选用单片机芯片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. [资料来源:www.THINK58.com]
Keywords : SCM ,keyboard ,password ,diode
[资料来源:http://think58.com]
目 录
摘 要……………………………………………………………………………………I
Abstract…………………………………………………………………………….II
第1章 绪 论................................................1
1.1发展历史..................................................1
1.2发展前景..................................................2
1.3设计的实现.................................................2
第2章 模块电路设计............................................4
2.1系统框图.................................................4 [资料来源:THINK58.com]
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 [资料来源:http://THINK58.com]
2.4.1数码管显示………………………………………………………15
2.4.2数码管显示原理图……………………………………………17
2.5电源模块……………………………………………………………………… 19
2.6密码锁和指示灯设计…………………………………………………………. 19
第3章 总电路设计………………………………………………………………21
[资料来源:http://www.THINK58.com]
第4章 软件设计………………………………………………………………22
4.1 软件流程…………………………………………………………………22
4.2 程序的编译和调试………………………………………………………30
4.2.1 对程序进行编译……………………………………………………30
4.2.2 对程序进行调试……………………………………………………31 [资料来源:http://think58.com]
总结……………………………………………………………………………………32
参考文献………………………………………………………………………33
致谢……………………………………………………………………………………34
附录1………………………………………………………………………………35 [来源:http://www.think58.com]
附录2………………………………………………………………………………4
[资料来源:www.THINK58.com]
摘 要本设计选用单片机芯片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. [来源:http://think58.com]
Keywords : SCM ,keyboard ,password ,diode
[来源:http://think58.com]
目 录
摘 要……………………………………………………………………………………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
[资料来源:THINK58.com]
第4章 软件设计………………………………………………………………22
4.1 软件流程…………………………………………………………………22
4.2 程序的编译和调试………………………………………………………30
4.2.1 对程序进行编译……………………………………………………30
4.2.2 对程序进行调试……………………………………………………31 [资料来源:http://THINK58.com]
总结……………………………………………………………………………………32
参考文献………………………………………………………………………33
致谢……………………………………………………………………………………34
附录1………………………………………………………………………………35 [资料来源:http://THINK58.com]
附录2………………………………………………………………………………4 [来源:http://www.think58.com]
[来源:http://www.think58.com]
[来源:http://think58.com]