- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于单片机的1602液晶数字式时钟
摘 要本文介绍了基于AT89C51单片机的数字式时钟的设计,详细叙述了系统硬件、软件的具体实现过程。本文在硬件、软件设计上均采用模块化的方法,使得在设计和调试方面取得很大的方便。论文重点阐述了数字钟硬件中MCU模块、按键模块、显示模块等相关模块的模块化设计及制作;软件同样采用模块化的设计,包括中断模块、时间调整模块等设计,并采用简单流通性强的C语言编写实现。本设计实现了年、月、日及时、分、秒的显示和时间修改的功能。通过对比实际的时钟,查找出误差的来源,确定调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。关键字:AT89C51单片机;数字钟;模块化;AbstractThis paper introduced the design of digital clock based on SCM of AT89C51,The specific process of how the system hardware and software achieved were detailed description through the design of multifunction digital clock. The modular design and production ,which consisted of MCU module ,key module, display module and the associated control module ,were mainly recounted; As well as hardware designing, software design use the same method ,consists suspension module, time adjust module, and that ues the C language to achieve because of its simple and strong negotiability. In this design the functions of time adjusting and displaying year, month, day and hour, minute, second have been achieved. And by comparing the actual clock ,find out the source of the error and determined the method of adjusting error, reduce errors as much as possibly, so this system can achieve a practical digital clock with error within the permissible range.Key words : AT89C51 microcontroller ; Digital clock; Module design;目录摘要IAbstractII1 绪论11.1 课题背景11.2 课题意义11.3 数字式时钟的应用21.4 本章小结22 单片机简介32.1 单片机的选择32.1.1 单片机的特点42.1.2 单片机的应用领域52.2 AT89C51单片机的基本结构62.2.1 AT89C51单片机简介62.2.2 AT89C51单片机工作的基本时序82.2.3 AT89C51单片机的内部结构及存储器配置82.3 本章小结103 数字式时钟的硬件设计113.1 最小系统设计113.2 数字式时钟的外围电路设计133.2.1 时钟电路133.2.2 LCD显示电路133.2.3 电源电路153.2.4 按键电路153.2.5 复位电路163.3 本章小结164 数字式时钟的软件设计174.1 系统软件设计内容174.2主程序184.3时钟设置子程序204.4中断子程序224.5 LCD显示子程序254.6 本章小结265 数字式时钟的Protues软件仿真275.1 Protues软件的概述275.2 Protues软件的功能特点275.3 Protues软件具有4大功能模块285.4 数字式时钟的Proteus软件仿真295.4.1 Proteus软件仿真295.4.2 电路功能仿真295.4.3 Keil软件305.4.4 数字式时钟的Protues软件仿真325.5 本章小结35结 论36致 谢37参考文献38附 录391 绪论1.1课题背景单片机自1976年由Inte
文档评论(0)