毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

STC89C52单片机密码锁设计+程序

时间:2021-12-23 16:28来源:毕业论文
由STC89C52单片机、4*4矩阵键盘,蜂鸣器,复位电路和晶振电路、继电器等组成,4*4键盘主要用于密码的输入和修改,蜂鸣器报警,复位电路和晶振电路与STC89C52单片机组成单片机最小系统

摘 要:电子密码锁因其保密性强,使用灵活性好,安全系数高,受到了广大用户的欢迎。本文主要设计了以单片机为主要器件,其编码器与解码器的生成为软件方式,详细的介绍了该电子密码锁完整的设计过程以及外围的开锁电路和报警电路的设计。75993

系统由STC89C52单片机、4*4矩阵键盘,蜂鸣器,复位电路和晶振电路、继电器等组成,4*4键盘主要用于密码的输入和修改,蜂鸣器报警,复位电路和晶振电路与STC89C52单片机组成单片机最小系统。它具有设置、修改6位用户密码、输错报警、密码错误报警等功能。本系统成本低廉,功能实用。

毕业论文关键词: 密码锁;报警 ;蜂鸣器;STC89C52

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Abstract: Electronic combination lock because of its strong confidentiality, use good flexibility, high safety coefficient, was welcomed by the masses of users。 In this paper, we design the single-chip microcomputer as the main device, the encoder and decoder for software, detailed introduces the complete design process as well as the peripheral electronic combination lock unlock the design of the circuit and alarm circuit。

This system by the STC89C52 single-chip microcomputer, the 4 * 4 matrix keyboard, buzzer, reset circuit and vibration circuit, relay and so on, 4 * 4 keyboard is mainly used for input and modify the password, the buzzer alarm, and resonance circuit and reset circuit STC89C52 singlechip microcontroller minimum system。 It has six Settings, modify user password, mistyped alarm, password error alarm, etc。 This system is low cost, function and practical。

 

 

Key words: Combination lock; Call the police; Buzzer。 STC89C52

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

目   录

 

1。1  电子密码锁的背景 7

1。2  电子锁设计的意义的本设计特点 7

2  系统整体方案设计 8

2。1  设计目标 8

2。2  主控部分的选择 9

3  硬件系统设计 9

3。1  系统芯片介绍 9

3。2  硬件电路设计 11

4  软件程序设计 14

4。1  主程序流程图 14

4。2  按键软件设计 15

4。3  开锁软件设计 16

4。4  密码设置软件设计 17

5  系统仿真、调试 18

5。1  程序调试用到的软件及工具 18

5。2  调试过程 18

5。3  进入 Proteus ISIS STC89C52单片机密码锁设计+程序:http://www.youerw.com/zidonghua/lunwen_87076.html

------分隔线----------------------------
推荐内容