1、 I 摘 要 电子密码锁己广泛的应用于日常生活中,随着电子产品向智能化和微型化的 不断发展,单片机已成为电子产品研制和开发中首选的控制器。由于单片机具有 体积小,耗电少,控制精度高,运行可靠等的特点,所以广泛应用于生产实际中。电 子密码锁是每个行业和生活中的重要参数之一。为了更好地推广电子锁在各领域 中的应用,在此根据任务要求设计了一种基于 AT89S52 单片机控制的电子密 码锁。并介绍了单片机控制的矩阵式开关与数码管控制装置及其工作原理、设计 思想、以及硬件电路和软件程序等。装置应用 AT89S52 单片机,通过单片机编写 密码程序,并用 74LS47 和 3-8 译码器 74LS138
2、驱动的数码管来显示密码。数码管 可以时时显示当前输入的六位数字。当输入密码正确时,对应的指示灯亮;当密 码不正确时,另一个对应的指示灯亮且并且发出声音报警。 关键词:矩阵式键盘,单片机,数码管显示,电子密码锁,译码器 河南城建学院本科毕业设计论文 Abstract Abstract Electronic locks have been widely used in daily life, as electronic products to intelligent and miniaturization, SCM has become electronic product research an
3、d development in the preferred controller。Since the microcontroller with small, low power consumption, high precision control, reliable, and more features,it is widely used in production。Electronic code lock is the life of each industry and one of the important parameters。 In order to better promote
4、 electronic locks in all areas of application, we designed an application MCU AT89S52 microcontroller-based control design of a matrix switch with digital control devices and their working principle, design, and hardware and software of electronic lock。AT89S52 microcontroller device applications, th
5、e password program written by SCM, and 3-8 with 74LS47 Decoder 74LS138-driven digital control to display the password。Digital tube can always display the current input of six digits。 When you enter the password correctly, the corresponding indicator light; When the password is incorrect, the other,
6、and the corresponding indicator light and sound alarm。 Key word:Matrix keyboard,SCM,Digital display ,Electronic locks 河南城建学院本科毕业设计论文 目录 目录 摘 要 . Abstract 引 言 . 1 第 1 章系统方案选择和论证 2 1.1 设计要求 . 2 1.2 系统基本方案 . 2 121 系统框图 . 2 1.2.2 各模块方案选择和论证 . 3 1.2.3 系统各模块的最终方案 . 4 第 2 章 系统的硬件设计与实现 . 6 2.1 系统硬件概述 . 6 2.2 主要单元电路的设计 . 6 221 键盘扫描模块电路的设计 . 6 222 单片机控制模块电路的设计 . 7 223 声光报警模块电路的设计 . 8 224 数码显示模块电路的设计 . 9 第 3 章 系统的软件设计 11 3.1 系