摘要随着电子产品日益向智能化和微型化的发展,单片机已成为电子产品研制和开发中首选的控制器。随着人们生活水平的提高,如何实现家庭防盗这一问题也变的尤其的突出,传统的机械锁构造的简单,安全性能低,无法满足人们的需要。63002
本文从经济实用角度出发,采用美国Atmel公司的单片机AT89S51与低功耗CMOS型E2PROM AT24C02作为主控芯片与数据存储器单元,结合外围的键盘输入、LCD液晶显示、报警、开锁等电路,用C语言编写主控芯片的控制程序,设计了一款可以多次更改密码、具有报警功能的电子密码锁。
经实验证明,该密码锁具有设计方法合理、简单易行、成本低、安全实用等特点,符合住宅、办公室用锁要求,具有推广价值。
毕业论文关键词 密码锁 单片机 报警 LCD液晶显示
毕业设计说明书(论文)外文摘要
Title Design of Electric Password Lock Based on MCU
Abstract As electronic products are developing towards intelligence and minimization, single-chip computers (SCM) have become the first choice for controllers in the development of electronic products. With the improvement of people's 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 can't meet people's demands.
For practicality, this paper designs a new electronic cipher lock, which has the function of alarm and whose cipher can be changed many times. This cipher lock uses AT89S51 SCM and E2PROM AT24C02 as main chip and data memory cell. The author made this cipher lock by use of making controlled program of master CMOS with periphery electronic circuit of keyboard input, display, alarm and unlock.
Experiments show that the designed cipher lock is characterized by its reasonable designing methods, simple operation, low cost and property of safety and practicality.Besides,it works well as a residence lock and has great potential for commercial development.
Keywords Password lock MCU Alarm LCD Display
1 绪论3
1.1 引言3
1.2 电子密码锁简介3
1.3 电子锁设计意义及设计特点3
2 主要元件介绍4
2.1 主控芯片AT89C51单片机介绍4
2.2 存储芯片AT24C02介绍7
2.3 1602 液晶显示器介绍 8
3 系统硬件设计9
3.1 系统设计原理及结构9
3.2 电路总体构成 10
3.3 键盘输入模块 11
3.4 晶振电路 12
3.5 复位电路 12
3.6 显示模块 13
3.7 报警模块 14
4 软件设计 14
4.1 系统软件设计流程图 15
4.2 系统主要程序设计 16
5 程序调试与仿真 19
5.1 软件介绍 19
5.2 程序调试与仿真 20
结论25
致谢26
参考文献27
附录 A 28
附录 B 29
1 绪论
1.1 引言
在日常的生活和工作中,各类重要文件、财产的安全性通常通过加锁来保证。如果使用传统的机械锁,人们需携带多把钥匙, 使用非常不方便,且钥匙一旦丢失,安全性便大大降低。电子锁的高保密性、灵活性使它在众多锁具中脱颖而出,受到了广大用户的喜爱。源[自[751^`论`文]网·www.751com.cn/
近代被普遍使用的传统锁具,都不具备真正的防盗功能。由于技术原理过于简单,传统锁具易于被破解打开。面对这一现状,新时代提出了锁具必须革命的迫切要求。