1 / 77
文档名称:

基于AVR单片机的电子密码锁设计_学士学位论文.doc

格式:doc   页数:77
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

基于AVR单片机的电子密码锁设计_学士学位论文.doc

上传人:追风少年 2013/8/28 文件大小:0 KB

下载得到文件列表

基于AVR单片机的电子密码锁设计_学士学位论文.doc

文档介绍

文档介绍:基于AVR单片机的电子密码锁设计
摘要
本文主要介绍了基于AVR单片机的电子密码锁设计。主要内容为仿真硬件电路的设计和软件程序的设计。主要实现的功能是实现人机接口矩阵输入,这种输入方式更节约管脚,数码管显示输出(LCD1602)。本例用AVR单片机EEPROM保存密码,输入正确密码时开锁灯亮,液晶显示屏显示开锁成功。在开锁之后可以实现密码的修改和储存,并且重新输入的密码经过MD5加密后以密文的形式存储在EEPROM中,更加安全可靠。
此模块是基于AVR单片机的,该模块的硬件开发平台采用的是Atmel公司的ATmega16单片机,且ATmega16是基于增强型的AVR RISIC结构的低能耗8位CMOS微控器,速度快,且存储空间大,这给设计带来了极大的方便。将调试成功的C程序工程加载到ATmega16单片机中就可以实现以上的功能。本次设计软件方面主要使用的开发平台是WINAVR和AVR_Studio,所使用的编程语言是C语言。完成本次设计需要掌握ATmega16单片机的相关知识与实际应用,单片机外围电路的设计,相关C程序的设计与仿真等。
该驱动程序能够正常运行,运行结果正确,证明设计思路正确。
关键词:MD5加密;AVR_Studio;PROTUES;ATmega16单片机
Abstract
This paper mainly introduces the design of electronic password lock based on AVR microcontroller. Design of the main content for the design of hardware circuit and software program. The main function is to achieve human-machine interface matrix input, the input mode is more economical in pin, digital tube display output (LCD1602). The save password with AVR microcontroller EEPROM, enter the correct password to unlock the lights, the LCD screen displays the unlock ess. In the unlocking can be achieved after the password changes and storage, and re-enter the password encrypted with MD5 after stored in encrypted form in EEPROM, more safe and reliable.
This module is based on AVR MCU, the developing platform of the hardware of the module is based on Atmel's ATmega16 chip, and ATmega16 is a unit, micro control enhanced AVR RISIC structure type of low-energy consumption based on 8 bits CMOS speed, and large storage space, which brings great convenience to design. The essful debugging C program project is loaded into the ATmega16 microcontroller can be achieved above functions. The main use of the design software development platform is WINAVR and AVR_Studio, the programming language used is C language. Complete knowledge of the design need to master the ATmega16 MCU and practical applications, single-chip peripheral circuit design, C program design and simulation.
The driver can run normally, run results correctly, pr