网站大量收购独家精品文档,联系QQ:2885784924

毕业设计(论文)-基于AT89C52单片机的多功能电子钟设计.doc

毕业设计(论文)-基于AT89C52单片机的多功能电子钟设计.doc

  1. 1、本文档共45页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多功能电子钟的设计 摘 要 单片机自20世纪70年代问世以来,以其极高的性能价格比,受到人们的重视和关注,应用很广、发展很快。而51单片机是各单片机中最为典型和最有代表性的一种。 本次设计以AT89C52芯片为核心,辅以必要的外围电路,设计了一个简易的电子时钟,它由220V交流电源供电。在硬件方面,除了CPU外,使用6个七段LED数码管来进行显示,LED采用的是静态显示。通过LED能够比较准确显示时、分、秒。两个简单的按键实现对时间的调整。软件方面采用汇编语言编程。整个电子钟装置能完成时间的显示、调时、定时闹钟、秒表、复位等功能。 通过这次设计让我更深入了解单片机基本电路、如何控制和定时器和中断编程的基本方法,从而锻炼了我学习、设计和开发软、硬件的能力。 关键词:电子时钟、多功能、AT89C52、LED数码显示 The Design with Investigation of the Multi-function Electron Clock Abstract Because of its extremely high performance-price ratio, the single-chip computer (SCC) has been paid great attention to ever since it came out in 1970s of 20th Century, and has gained an extensive applicable field and fast development. Among all kinds of SCCs, 51 SCC is the most typical and representative one. This design, adopting AT89C52 chip as the core part with some necessary peripheral circuits, is a simple electronic clock which uses 220V AC as the power supply. In hardware aspect, besides the CPU, six seven-segment LED digi-tubes are used for display, which work in a statically display mode. The LEDs can accurately indicate hour and minute and two buttons can be used to adjust the time. While in the software aspect, the programming language is assembly language. The whole electronic clock system has functions of time display, adjustment, bell-setting , stopwatch and reset, etc. This design enables me to have greater insight into the basic circuit of SCC, and the basic methods of timer control and interruption programming, so that is a training of my ability of learning, designing and developing software and hardware. Key Words:Electronic clock、Multi-function、 引 言 1 第1章 绪论 2 1.1 方案要求 2 1.2 方案设计 2 1.3 硬件框图 3 第2章 硬件设计 4 2.1 AT89C52的管脚说明 4 2.2 T0和T1的设置 7 2.3 T2的设置 8 2.4 模块设计 11 2.4.1 电源部分 11 2.4.2 复位部分 11 2.4.3 振荡器部分 12 2.4.4 发声部分 12 2.4.5 显示部分 13 第3章 软件设计 17 3.1 主程序流程图 17 3.2 中断程序流程图 17 3.3 源程序 20 结论与展望 21 参考文献 22 致 谢 22 附录A 系统电路原理图 24 附录B 引用的外文文献及其译文 25 附录C 主要参考文献的题录及摘要 31 附录D 电子时钟源程序 33 插图清单 图1- 1 多功能电子钟原理框图 3

文档评论(0)

***** + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档