1、 毕业论文毕业论文( (设计设计) ) 题目题目 电子密码锁的设计 学生姓名学生姓名 学号学号 指导教师指导教师 系部系部名称名称 信息科学与工程系 专业班级专业班级 电子科学与技术 完成时间完成时间 I 摘 要 随着人们生活水平的提高,如何实现防盗这一问题日趋严重,在这几不断发展 的今天,电子密码锁的作用日趋明显。电子密码锁是一种通过密码输入来控制芯 片工作的,从而控制机械开关的闭合,完成开锁,闭锁的电子产品。现在应用比较 广泛的电子密码锁是以芯片为核心,通过编程来实现的。 本设计以 AT89C51 单片机为核心器件,结合按键电路,LCD1602 显示电路,报 警指示电路和开锁机构,利用单片
2、机丰富的 I/O 端口,通过软件程序来控制整个系 统实现电子密码锁的基本功能,其主要功能有: 1, 密码通过键盘输入,若密码正确,则将锁打开。 2, 若密码输入错误,蜂鸣器将报警提示。 3, 可以自由设定密码。 关键词:AT89C51;电子密码锁;LCD1602 II The Design of Electronic Cipher Lock ABSTRACT As peoples living standards improve, the question how to achieve home security has become particularly prominent. In sc
3、ience and technology is developing continuously, electronic cipher lock as a security guard s role is increasing important. The electronic cipher lock is a electronic products, which control the mechanical switch by chip when you input a password. Now the widely used electronic locks are based on th
4、e chip and achieve the function by programming. Based on the AT89C51 single-chip microcomputer as the core device, combining with the key circuit, LCD display circuit, an alarm circuit and unlocking mechanism, design the whole system to achieve the basic function of electronic cipher lock by its ric
5、h I/O port, and accuracy basing on the software program. With the following functions: 1 Input password through the keyboard, if the password is correct, lock will open 2 If the password is error, the buzzer will alarm 3 Users can freely set the password Key words: AT89C51; Cipher lock; LCD1602 III
6、目目 录录 摘 要 I AbstractAbstract .II 第一章 绪 论 5 1.1 引言 . 5 第二章 系统整体方案总体设计 6 2.1 设计目标 . 6 2.2 设计方案 . 7 第三章 硬件设计 7 3.1 主要元器件介绍 7 3.1.1 AT89C51 介绍 8 3.1.2 存储芯片 24C02C . 10 3.1.3 LCD1602 显示器介绍 11 3.2 硬件电路设计 . 12 3.2.1 复位电路.12 3.2.2 晶振电路.13 3.2.3 存储电路.14 3.2.4 键盘输入电路.14 3.2.5 显示电路.15 3.2.6 报警电路16 第四章 软件程序设计 17 4.1 主流程图 . 17 4.2 按键子程序 . 18 4.3 密码设置子程序19 4.4 报警子程序20 4.5 定时中断服务20 4