1、 摘要摘要 在日常的生活和工作中, 住宅与部门的安全防范、单位的文件档案、财务报表以 及一些个人资料的保存多以加锁的办法来解决。若使用传统的机械式钥匙开锁,人们 常需携带多把钥匙, 使用极不方便, 且钥匙丢失后安全性即大打折扣。在安全技术防 范领域,具有防盗报警功能的电子密码锁逐渐代替了传统的机械式密码锁,电子密码 锁具有安全性高、成本低、功耗低、易操作等优点。 本文从经济实用的角度出发,采用美国 Atmel 公司的单片机 AT89S51 作为主控芯 片与数据存储器单元,结合外围的矩阵键盘输入、12864 液晶显示、报警、开锁等, 用 C 语言编写的主控芯片控制程序与 EEPROM AT24C
2、02 读写程序相结合,并用 Keil 软 件进行编译,设计了一款可以多次更改密码,具有报警功能的电子密码控制系统。 这种密码锁的电路设计具有防试探按键输入、智能控制上锁、开锁、报警、修改 密码等多种功能。密码长度可变、保密性强、灵活性高、应用日益广泛。 关键字关键字:AT89S52;24C02;12864;继电器 Abstract In the daily life and the work, the way to the houses and departments safe guard, units document file, the financial reporting as wel
3、l 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 the safety work guard domain, the lock with security warnin
4、g 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 article is based on the economical and practical point of
5、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 programming language chip EEPROM of the control procedures
6、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 wordKey word: AT89S52 devices; 24 C02; 12864; relay 目录目录 摘要 . I 目录 . I 第一章 绪论. 1 1.1 电子