文档介绍:2012 年4月
摘要
随着电子产品向智能化和微型化的不断发展,单片机已成为电子产品研制和开发中首选的控制器。随着人们生活水平的提高,如何实现家庭防盗这一问题也变的尤其的突出,传统的机械锁由于其构造的简单,安全性能低,无法满足人们的需要。
本文从经济实用的角度出发,采用美国Atmel公司的单片机AT89S51与低功耗CMOS型E2PROM AT24C02作为主控芯片与数据存储器单元,结合外围的键盘输入、显示、报警、开锁等电路,用汇编语言编写主控芯片的控制程序,设计了一款可以多次更改密码具有报警功能的电子密码锁。
该密码锁具有设计方法合理,简单易行,成本低,安全实用等特点,符合住宅、办公室用锁要求,具有推广价值。
关键词: AT89C51,电子密码锁,单片机,防盗,报警
Abstract
With intelligent electronics and miniaturization to the constant development of electronic products has e a single-chip development and the development of the controller of choice. With the improvement of living standards, how to achieve security of the family also e prominent in particular, the traditional mechanical lock because of its simple structure, low security, unable to meet the needs of the people.
This article from the economical and practical point of view, the use of the United States Atmel Corporation AT89C51 with low-power single-chip CMOS-based chip E2PROM AT24C02 as control units and data memory, combined with the external keyboard input, display, alarm, unlock, such as circuits, with preparation of master chip assembly language of the control procedures, design can be repeated a warning to change your password with key lock function.
The locks have a reasonable design, simple, low cost, practical features such as security, in line with the residential, office lock request with the promotion of the value.
Keywords: AT89C51,Electronic locks,Single-chip,Anti-theft,Alarm
目录
摘要 I
Abstract II
引言 1
第一章总体设计方案 2
系统结构 2
系统组成 2
设计方案选择 3
第二章硬件系统设计 4
单片机AT89C51简介 4
设计原理 5
电路总体构成 5
7
7
7
键盘输入 8
10
AT24C02 10
10
11
复位电路的介绍 11
复位电路 12
13
13
13
14
LCD1602显示器 14
15
16
开锁部分 17
第三章软件系统设计 18
18
键盘扫描模块 19
密码修改模块 19
密码比较判断模块 21
22
第四章总结与体会 23
参考文献 24
附录电子密码锁程序清单 25
引言
随着