- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于51单片机的电子万年历设计
摘 要
电子万年历是一种非常广泛日常计时工具,对现代社会越来越流行。它可以对年、月、日、周日、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小。对于数字电子万年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒和温度等信息,还具有时间校准等功能。该电路采用AT89C52单片机作为核心,功耗小,能在3V的低压工作,电压可选用3~5V电压供电。
万年历的设计过程在硬件与软件方面进行同步设计。硬件部分主要由AT89C52单片机,LED显示电路,以及调时按键电路等组成。为了能更轻松的控制这三片显示器,本人使用了3片74HC164来驱动。74HC164 是 8 位边沿触发式移位寄存器,串行输入数据,然后并行输出。软件方面主要包括日历程序、时间调整程序,公历转阴历程序,显示程序等。程序采用C语言语言编写,以便更简单地实现调整时间及阴历显示功能。所有程序编写完成后,在keil uvision4软件中进行调试好后,在Proteus软件中进行仿真。
关键词: DS1302; DS18B20; 动态扫描; 单片机
Electronic calendar design based on 51 MCU
Abstract
Electronic calendar day time is a very wide range of tools, increasingly popular in modern society. It can be timed to the year, month, day, Sunday, when, minutes and seconds, also has a leap year compensation and other functions, and the DS1302s long life, small error. For the digital electronic calendar using visual digital display, can display year, month, day, Sunday, when, minutes and seconds, and temperature and other information, is also a time-calibration functions. The circuit uses AT89C52 microcontroller as the core, power consumption is small, can work in low-voltage 3V, voltage can choose 3~5V supply voltage.
The design process of the calendar synchronization in the hardware and software design. Hardware mainly by the AT89C52 microcontroller, LED display circuit, and when the key circuits etc.. In order to the three display control more relaxed, I used 3 pieces of 74HC164 to drive. 74HC164 is a 8 bit edge-triggered shift register, serial input data, and then the parallel output. The software includes calendar program, time to adjust the procedure, turn the lunar calendar program, display program. Using C language, in order to more easily adjust the time and calendar display function. All programming is complete, the Keil for debugging uvision4 software, make sure there is no problem, embedded microcontroller simulation in Proteus software.
Key words: DS1302; DS18B20; Dynamic scanning; MCU
目
文档评论(0)