- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于AVR单片机电子密码锁设计
摘 要
本文主要介绍了基于AVR单片机的电子密码锁设计。主要内容为仿真硬件电路的设计和软件程序的设计。主要实现的功能是实现人机接口矩阵输入,这种输入方式更节约管脚,数码管显示输出(LCD1602)。本例用AVR单片机EEPROM保存密码,输入正确密码时开锁灯亮,液晶显示屏显示开锁成功。在开锁之后可以实现密码的修改和储存,并且重新输入的密码经过MD5加密后以密文的形式存储在EEPROM中,更加安全可靠。
此模块是基于AVR单片机的,该模块的硬件开发平台采用的是Atmel公司的ATmega16单片机,且ATmega16是基于增强型的AVR RISIC结构的低能耗8位CMOS微控器,速度快,且存储空间大,这给设计带来了极大的方便。将调试成功的C程序工程加载到ATmega16单片机中就可以实现以上的功能。本次设计软件方面主要使用的开发平台是WINAVR和AVR_Studio,所使用的编程语言是C语言。完成本次设计需要掌握ATmega16单片机的相关知识与实际应用,单片机外围电路的设计,相关C程序的设计与仿真等。
该驱动程序能够正常运行,运行结果正确,证明设计思路正确。
关键词:MD5加密;;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 success. 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 Atmels 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 successful 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, prove that design idea is corre
文档评论(0)