- 1、本文档共60页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2016年数字电子钟设计
题 目:数字电子钟设计
数字电子钟设计
摘 要
以AT89C51单片机芯片为核心,辅以必要的外围电路,设计了一个简易的电子钟。可实现时间、日期的显示以及闹钟响铃等功能。
详细论述了数字电子钟的硬件电路设计以及C语言程序的编写。其中硬件电路包括时钟芯片DS1302模块、键盘控制模块、显示模块、响铃模块。通过时钟芯片DS1302计时的方法实现了以24小时为一个周期同时显示小时和分钟的要求,并在计时过程中具有响铃提示功能,当时间到达闹钟定时时间进行蜂鸣提示。该电子钟设有三个按键:模式切换按键、加一按键、闹钟调整按键键,使之具备了校对时间和日期以及定时功能。
最终通过电路板的焊接以及 C语言程序的编写,并通过Keil软件编译生成了hex文件,应用STC-ISP 单片机烧写软件将程序烧录到单片机中,使LED数码管正确显示出时间及日期,可实现时间及日期的调整,得到了设计预期的结果,证明了设计的可行性。关键词:The design of digital electronic clock
Abstract
This article designs a simple electronic clock,and the core is AT89C51 singlechip (MCU) supplemented by the necessary peripheral circuits. The electronic clock can achieve the time, date display as well as features such as alarm clock ringing.
The design discuss the digital electronic hardware circuit design as well as the preparation of C Programming Language in detail. The hardware includes the DS1302 clock chip module, the keyboard control module, display module and ringing module. With Clock Chip DS1302 timekeeping, the clock can display hour and second at the same time in a 24-hour cycle. It can give Ringing tips with a buzzer when it is on the time of setting alarm clock. This kind of electron clock is equipped with three keys, the key-press of mode switching, the key-press of addition and the key-press of alarm clock regulation, which enable the clock to adjust to keep accurate time and date , and to buzz at the set time.
The electronic clock can show the date and time through the soldering circuit board and preparing C language program, and through Keil compiler generated the file of hex. Then the file is downloaded to single-chip (MCU) by the sortware which named STC-ISP. Time and date were display accurately by LED digital tube, and they can be adjusted. We achieved the anticipated result, and the feasibility of the design is proved at the end.
Key words: singlechip; Electronic clock; Clock Chip
目 录
摘 要 I
Abstract II
第一章 引 言 1
1.1 课题研究背景及意义 1
1.2 电子钟的发展及现状 1
第二章 数字电子钟的原理及设计方法 3
2.1 数字电子钟常
文档评论(0)