1、 单片机技术课程设计说明书 密码锁密码锁 院 、 部: 学生姓名: 指导教师: 职称: 专 业: 班 级: 完成时间: 摘摘 要要 随着现代科技的发展,锁变得更加的多样化,实用性和安全性最为重要的,于是电 子密码锁毋庸置疑的成为了最受欢迎的锁类。电子密码锁具有众多的优点,保密性强、 不需要钥匙、修改密码方便等。 该课程设计是一个基于 51 单片机的液晶显示电子密码锁的设计。 单片机技术是智能 化检测与控制领域应用非常普及并且拥有很大潜力的技术。本设计硬件方面采用美国 Atmel 公司的 AT89S52 单片机作为系统处理核心, AT24C02 作为数据存储器,用于断电 保护,液晶显示器则是采用
2、 LCD12684,作为系统输出设备,显示系统提示信息,4*4 矩 阵键盘作为输入设备,再加以蜂鸣器、电源等电路构成整个系统硬件;软件方面则采用 C 语言编写。 关键词:密码锁;at89s52;at24c02;lcd12684 ABSTRACT With the development of modern technology, diversification of the lock becomes more, practicality and safety is the most important, so the electronic password lock undoubtedly b
3、ecome the most popular lock. Electronic cipher lock has numerous advantages, strong confidentiality, do not need to modify the password key, convenient etc. The curriculum design is a design of electronic password lock based on MCU 51 LCD display. SCM technology is the application of intelligent det
4、ection and control field is very popular and have great potential technique. The design of hardware with USA Atmel company AT89S52 microcontroller as the core processing system, AT24C02 is used as the data memory, for power-off protection, liquid crystal display is the use of LCD12684, as the system
5、 output device, display system information, 4*4 matrix keyboard as input device, and then the buzzer, the power supply circuit of the whole system hardware; software using C language. Key words:Key words: password-lock; at89s52; at24c02; lcd12684 目目 录录 1 设计课题任务、功能要求说明及总体方案介绍 1 1.1 设计课题任务 . 1 1.2 功能要
6、求说明 . 1 1.3 设计课题总体方案介绍及工作原理说明 . 1 2 设计课题的硬件系统设计 3 2.1 设计课题硬件系统各模块功能简要介绍 . 3 2.2 设计课题电路原理图、PCB 图、元器件布局图. 4 2.3 设计课题元器件清单 . 4 3 设计课题软件系统的设计 5 3.1 设计课题使用单片机资源的情况 5 3.2 设计课题软件系统各模块功能简要介绍 . 5 3.3 设计课题软件系统程序流程框图 . 6 4 设计结论、仿真结果、误差分析、教学建议等等 8 4.1 设计课题的设计结论及使用说明 . 8 4.2 设计课题的仿真结果 . 9 4.3 设计课题的误差分析 . 13 4.4 设计体会 . 13 参考文献: 14 致 谢 15 附 录 16 附录 A . 16 附录 B . 16 附录 C . 17 附录 D . 19 附录 E 20 1 1 设计课题任务、功能要求说明及总体方案介绍设计课题任务、功能要求说明及总体方案介绍 1.1 设计课题任务设计课