1、 基于单片机的基于单片机的电子密码锁设计电子密码锁设计 DESGIN OF ELECTRONIC PASSWORD LOCK BASED ON MCU I 摘 要 随着现在科技的飞速发展,人们对于简单可靠加密防盗技术的要求也越来越高, 原有的大型高成本防盗装置已经不能明显不能适应人们的需求。单片机电子密码锁的 设计具有高集成度,良好的可靠性和安装方便优点。单片机以其高可靠性、高性价比、 低电压、低功耗等一系列优点,这些年得到迅猛发展和大范围推广,广泛应用于工业 控制系统,数据采集系统、智能化仪器仪表,及通讯设备、日常消费类产品等。本篇 论文内容是基于 AT89S51 内核单片机的电子密码锁设计
2、,以 51 单片机为核心,扩展了 1602 液晶,红外传输控制,24C02 存储设备构成了电子密码锁的系统设计。本论文主 要阐述了本设计的系统分析,软件和硬件分析,并详细介绍了红外传输模块,液晶显 示模块,存储模块等模块的设计,还对硬件调试过程进行了详细的记载。 关键词关键词 单片机 ;红外; 密码锁 AbstractAbstract With the rapid development of science and technology, people demand for the simple and reliable encryption security technology are
3、getting higher and higher, the original large high cost anti-theft device obviously can not meet the demands of people. The single chip electronic code II lock design has the character of high integration, good reliability and convenient installation. Single chip for its high reliability, high cost,
4、 low voltage, low power consumption and a series of advantages, it has been developed rapidly and been used widely in industrial control systems, data acquisition system, intelligent instrumentation, and communications equipment, daily consumer products, and so on. This paper discuss that the design
5、 of electronic locks which is based on the AT89S51 single chip, the design use 51 single chip as the core, extends 1602LCD, and infrared transmission controls,24C02 storage device constituting the electronic cipher lock system. This paper mainly discusses the design of systems analysis, software and
6、 hardware design, and detailed introduces the infrared transmitting module, LCD display module, storage module and other modules of the design. the hardware debugging process was documented in detail. Keywords Singlechip Infrared trick lock III 目目 录录 1 绪论 . 1 1.1 选题背景 . 1 1.2 电子密码锁的现状及发展趋势 1 1.3 课题研究目的和意义 . 1 2 系统总体方案设计 . 2 2.1 方案论证 2 2.2 系统总体设计 3 2.2.1 总体设计思想 . 3 2.2.2 系统结构框图 . 3 2.2.3 各模块功能 . 4 3 硬件设计 . 5 3.1 主要控制模块 . 5 3.1.1 芯片简介 5 3.1.2 引脚说明 6 3.1.3 中断说明 7 3.2 时钟控制模块 . 8 3.3 显示模块 8 3.3