基于单片机的电子密码锁设计摘 要随着人们生活水平的提高,如何实现家庭防盗这一问题也变得尤为突出.在科学技术不断进展的今日,电子密码防盗锁作为防盗卫士的作用显得日趋重要. 本文从经济有用的角度出发,系统由 STC89C52 与低功耗 CMOS 型 E PROM AT24C02²作为主控芯片与数据存储器单元,结合外围的键盘输入、LCD 显示、报警、开锁等电路模块。它能完成以下功能:正确输入密码前提下,开锁;错误输入密码情况下,报警;密码可以根据用户需要更改。用 C 语言编写的主控芯片控制程序与 EEPROM AT24C02 读写程序相结合,并用 Keil 软件进行编译,设计了一款可以多次更改密码,具有报警功能的电子密码控制系统。本密码锁具有设计方法合理,简单易行,成本低,安全有用,保密性强,灵活性高等特点,具有一定的推广价值。关键词:电子密码锁;报警;液晶显示Design of Electric Password Lock Based on MCUAbstractAs people’s living standards improve, the question how to achieve home security has become particularly prominent 。 In science and technology is developing continuously, electronic code lock as a security guard’s role is increasingly important。 This article from the economical point of view, the system by the STC89C52 with low power CMOS based E PROM AT24C02 as the master chip and the data memory² unit, combined with the external keyboard, LCD display, alarm, unlock and other circuit modules 。 It performs the following functions : enter the password correctly under the premise of unlocking; wrong password case the alarm; password can be changed according to user needs。 Master in C language control program and EEPROM AT24C02 chip to read and write process are combined and compiled with the Keil software, designed a number you can change the password, the password with an electronic alarm control system。 The lock has a reasonable design , simple, low cost, safe and practical, confidentiality, flexibility, and high, with some promo...