文档详情

基于单片机的时钟计时器的设计 大学学位论文.doc

发布:2017-04-06约6.59万字共81页下载文档
文本预览下载声明
摘 要 时钟是人类日常生活必不可少的工具,本设计从日常生活中常见的事物入手,通过对时钟计时器的设计,让我们认识到单片机已经深入到我们生活的每个领域,该设计不仅可以锻炼我们的动手能力,而且可以加深我们对单片机的认识和激发我们对未知科学领域的探索。 本文利用单片机实现数字时钟计时功能的主要内容,采用独立式按键进行时间调整,其中AT89C5是核心元件同时采用数码管动态显示“时”,“分”,“秒”的现代计时装置。与传统机械表相比,它具有走时精确,显示直观等特点。它的计时周期为24小时,显满刻度为“23时59分59秒”,另外具有校时功能,断电后有记忆功能,恢复供电时可实现计时同步等特点。该系统同时具有硬件设计简单、工作稳定性高、价格低廉等优点Abstract Human Clock is an essential tool for everyday life, from the design of everyday things in common start, the clock timer through the design, let us recognize that SCM has the depth to each area of our lives, not only the design Can exercise our practical ability, but can also deepen our understanding of the SCM and inspire us to explore the unknown field of science. Using MCU digital clock timing of the main contents of a stand-alone keys to time to adjust, while AT89C52 is the core component of the LED digital display dynamic , points and seconds of modern timing devices. Compared with the traditional mechanical watches, it has a precise path that intuitive, and other characteristics. Its time for the 24-hour cycle, in full scale as 23:59:59, and a school function, memory function after power and restore power supply can be realized at the time synchronization, and other characteristics. The system also has hardware design simple, high stability work, the advantages of low prices. Keyword: AT89C52 LED display 244 目 录 第一章 前 言 3 第一节 选题目的和意义 3 第二节 国内外发展情况 4 一 单片机的发展历程 4 二 单片机的发展趋势 6 三 单片机的组成及特点 8 四 单片机的分类 9 五 单片机的应用 9 第三节 本设计研究的内容和所做的工作 11 小 结 11 第二章 系统硬件的设计 12 第一节 设计方案的提出、论证和确定 12 一 时钟功能 12 二 计时功能 12 三 功能按键 12 四 中断嵌套和控制 13 五 时钟计时器的硬件电路 13 第二节 元件选择 16 一 AT89C52芯片 16 二 显示部分 30 三 74LS244芯片说明 30 小 结 32 第三章 控制系统的软件设计 33 第一节 设计部分 33 一 主程序 33 二 显示子程序 34 三 定时器T0中断服务程序 34 四 定时器T1中断服务程序 35 五 调试功能程序 36 六 秒表功能程序 37 七 闹钟时间设定功能程序 37 第二节 控制程序的编制和调试 37 一 硬件调试 37 二 软件调试 37 三 性能分析 38 小 结 38 第四章 参考文献 38 第五章 附 录 39 外文资料 64 中文译文 73 致谢语 79 总结与展望 80 第一章 前 言 第一节 选题目的和意义 时钟,自从它发明的那天起,
显示全部
相似文档