1、 目 录 摘 要 1 关键词 . 1 Abstract . 1 Key words 1 1 绪 论 2 1.1 概述 . 2 1.1.1 设计目的 2 1.1.2 设计思想 2 1.1.3 设计功能 2 1.3 电子密码锁的发展趋势 3 2 电子密码锁的两种设计方案简介 . 3 2.1 由数字电路及芯片构建 3 2.2 采用以单片机为核心的控制方案 3 3 主要元器件介绍 . 4 3.1 主控芯片 AT89S51 . 4 3.1.1 AT89S51 性能简介 4 3.1.2 AT89S51 引脚功能说明 5 3.1.3 AT89S51 芯片内部结构 . 6 3.2 共阳七段数码管 LED 8
2、3.3 晶体振荡器 10 4 系统硬件设计及其原理 . 10 4.1 单片机串行通信原理 10 4.2 遥控发射电路设计及红外遥控原理 12 4.3 本机键开锁设计及工作原理 13 4.4 遥控开锁的工作原理 15 4.5 按键的设计原理 15 5 系统软件设计 15 5.1 软件设计概述 15 5.2 程序流程图 15 6 结论 17 参考文献 17 附录: 18 附录 1 电路原理图 18 附录 2 源程序代码 19 1 基于单片机的红外遥控电子密码锁设计 摘摘 要:要:随着电子产品向智能化和微型化的不断发展,单片机已成为电子产品研制和开 发中首选的控制器。 随着人们生活水平的提高, 如何
3、实现家庭防盗这一问题也变的尤其的突 出,传统的机械锁由于其构造的简单,安全性能低,无法满足人们的需要。 单片机原理及应用是一门实践性很强的课程;其课程设计目的在于综合运用所学知识, 全面掌握单片微型计算机及其接口的工作原理、编程和使用方法;在设计中,提出并论证设 计方案, 进行软、 硬件调试, 最后获得正确的结果, 可以加深和巩固对理论知识的更好掌握, 进一步建立计算机应用系统体概念,初步掌握单片机软、硬件开发方法,为以后进行实际的 单片机软、 硬件应用开发奠定良好的基础。 本设计采用 AT89S51 单片机来作为主控芯片与数 据存储器单元,结合外围的键盘输入、LED 显示、报警、开锁等电路,
4、用汇编语言编写主控 芯片的控制程序,设计了一款可以通过红外遥控开锁且具有报警功能的电子密码锁。 关键词:关键词:密码锁;单片机;红外遥控;报警 The Design of Electronic Cipher Lock by Infrared Remote Control Based on SCM Abstract:As electronic products are developing towards intelligence and minimization, singlechip computers (SCM ) have become the first choice for cont
5、rollers in the development of electronic products. With the improvement of peoples living standards, it has become particularly prominent about how to achieve Anti-theft family. The traditional mechanical lock has such shortcoming as simple structure , Low security, it cant meet peoples demands. Mic
6、rocontroller Theory and Applications is a very practical course; its curriculum is designed to make comprehensive use of what they have learned, have complete control of single-chip micro-computer and its interface works, programming and use; in the design, propose and demonstrate design, to software and hardware debugging, finally get the correct results, you can deepen and consolidate a better grasp of the theoretical knowledge to further establish the concept of computer application sy