1、 基于单片机的电子密码锁设计 摘 要 在日常的生活和工作中 , 住宅与部门的安全防范、单位的文件档案、财务报表以及一些个人资料的保存多以加锁的办法来解决。若使用传统的机械式钥匙开锁,人们常需携带多把钥匙 , 使用极不方便 , 且钥匙丢失后安全性即大打折扣。在安全技术防范领域,具有防盗报警功能的电子密码锁逐渐代替 了 传统的机械式密码锁,电子密码锁具有安全性高、成本低、功耗低、易操作等优点。 本文从经济实用的角度出发,采用美国 Atmel 公司的单片机 AT89S51 作为主控芯片与数据存储器单元,结合外围的矩阵键盘输入 、 LCD 液晶显示、报警、开锁等,用 C 语言编写 的 主控芯片控制程序
2、与 EEPROM AT24C02 读写程序相结合,并用 Keil 软件进行编译 , 设计了一款可以多次更改密码,具有报警功能的电子密码控制系统。 这种 密码锁的 电路设计具有防试探按键输入、智能控制上锁、开锁、报警、修改密码等多种功能。密码 长度可变、 保密性强、灵活性高 、 应用日益广泛。 关键词 密码锁 单片机 报警 LCD 显示 Design of Electric Password Lock Based on MCU ABSTRACT In the daily life and the work, the way to the houses and departments safe g
3、uard, units document file, the financial reporting as well as some individual material preservation almost need many locks. If we use tradition mechanical key to open, the people often must carry many keys, but it is not extremely convenient. If the key lost, the security will decline greatly. In th
4、e safety work guard domain, the lock with security warning function electronic combination have replaced the traditional mechanical combination lock gradually, the electronic combination lock have the highly security, the lowly cost , the lowly power wastage, easy to operate and so on merits. This a
5、rticle is based on the economical and practical point of view, uses the United States Atmel Corporation AT89S51 microcontroller as a master chip and the data memory unit, it combines with the external matrix keyboard input, LCD digital display, alarm, unlock and so on circuits, dominates by the C pr
6、ogramming language chip EEPROM of the control procedures and carries on the translation with Keil software, the password can be changed many times, the electronic the password control also has the alarming function. This password lock circuit design has anti-test button input, intelligent control lock, unlock, alarm and change the password multiple functions. Password length can be changed, great security and high flexible than others, it is widely used . Key Words: Password lock; MCU; Alarm; LCD Display