电子密码锁的毕业设计说明书.doc

约55页DOC格式手机打开展开

电子密码锁的毕业设计说明书,摘 要随着电子技术的发展,具有防盗报警等功能的电子密码锁代替密码量少、安全性差的机械式密码锁已是必然趋势。电子密码锁与普通机械锁相比,具有许多独特的优点:保密性好,防盗性强,可以不用钥匙,记住密码即可开锁等。目前使用的电子密码锁大部分是基于单片机技术,以单片机为主要器件,其编码器与解码器的生成为软件方式。本文结合经济实...
编号:35-333489大小:1.57M
分类: 论文>通信/电子论文

内容介绍

此文档由会员 孙中耀 发布

摘 要
随着电子技术的发展,具有防盗报警等功能的电子密码锁代替密码量少、安全性差的机械式密码锁已是必然趋势。电子密码锁与普通机械锁相比,具有许多独特的优点:保密性好,防盗性强,可以不用钥匙,记住密码即可开锁等。目前使用的电子密码锁大部分是基于单片机技术,以单片机为主要器件,其编码器与解码器的生成为软件方式。
本文结合经济实用的实际情况而设计,阐述的是一个基于51单片机的液晶显示密码锁的设计和实现。该密码锁的设计是以单片机为系统的核心,与作为主控芯片的数据存储器单元, 结合外围的按键输入、显示、报警、开锁等硬件电路,用汇编语言编写主控芯片的控制程序,设计了一款可以多次更改密码具有报警功能的电子密码锁。使用便捷简单,符合住宅、办公用锁需求,具有一定的使用价值。

关键词: 单片机   密码锁  4×4矩阵键盘   液晶显示器 

 

Abstract
With the development of electronic technology, mechanical electronic ciphercode anti-theft alarming lock has instead of a password less, poor security lock is an inevitable trend. Electronic password lock compared with ordinary mechanical locks, it has many advantages: good secrecy, strong anti-theft performance, can not remember the password to unlock the keys, etc..Electronic code lock used at present are mostly based on microprocessor,microcontroller as the main device, the encoder and decoder into software.
In this paper, combined with the actual situation of economic and practicaldesign, describes a design and implementation of the password lock based on MCU 51 LCD display. The design of the cipher lock is based on  microcontroller as the core of the system, and as the main control chip and the data memory unit, combined withthe periphery of the key input, display, alarm, lock hardware circuit, using assembly language to write the main control chip control procedures, the design can be a multiple change the password electronic password lock withalarm function. Simple and easy to use, with residential, office lock needs, has certain use value.

Keywords: AT89C51 microcontroller   password lock   4*4 matrix keyboard   liquid crystal display

 


目  录
1 绪 论 1
1.1课题的现状与发展趋势 1
1.2本课题的研究背景及意义 1
1.3本课题研究的内容及结构安排 2
2 系统总体方案设计 3
2.1 设计任务及要求 3
2.1.1 任务 3
2.1.2 要求 3
2.2 密码锁原理及设计思路 3
2.2.1 系统工作原理 3
2.2.2 系统设计基本思路 3
2.3系统总体设计方案 3
2.4单片机的选型 5
2.5 显示模块选型 5
2.6报警模块选型 6
2.7 键盘模块选型 6
2.8 密码锁总体系统方案设计 7
3 硬件电路的设计 7
3.1 主控模块 8
3.1.1 单片机芯片简介 8
3.1.2 芯片管脚简介 8
3.1.3 单片机最小系统 10
3.2 外围功能模块电路设计 12
3.2.1 继电器模块 12
3.2.2 存储芯片(AT24C02)模块 13
3.2.3 LCD1602显示器模块 14
3.2.4 矩阵键盘模块 16
3.2.5 报警模块 16
3.2.6 开锁模块 17
3.2.7电源电路 17
3.3系统印制电路板设计 18
3.3.1 PCB布局 18
3.3.2 PCB布线 19
3.3.3 PCB覆铜 20
4 软件设计 21
4.1 编程语言介绍 21
4.2编程用的KEIL软件 21
4.3 主程序流程 22
4.3.1按键功能程序流程图 22
4.3.2密码修改功能程序流程图 23
4.3.3 开锁程序流程图 24
5 综合调试 25
5.1 Proteus软件介绍 25
5.2系统软件调试 27
5.3仿真结果 27
总结 29
致谢 30
参考文献 31
附录1 32
附录2 33
附录3 34