万历4卓晨.docVIP

  • 0
  • 0
  • 约2.35万字
  • 约 41页
  • 2017-10-13 发布于江苏
  • 举报
万历4卓晨

单片机万年历的设计与制作 摘 要 本文设计了具有智能化万年历时钟电路,通过对各种方案设计的研究,采用了比较常用且价格便宜的LED数码管作为电路的显示部分,按钮开关作为调时部分,通过与单片机连接数码管动态显示年、月、日,时、分、秒等功能,并能准确计算闰年闰月的显示,外加4个LED会随每秒闪烁一次,更加美观直观,三个按钮连接P3口可以精确调整每一个时间数值,通过对所设计的万年历时钟电路进行实验测试,达到了动态显示时间,随时调整时间,LED每秒闪烁的技术指标,基本达到了任务书的要求。 关键词:AT89C51单片机;时钟;数码管;LED 动态显示 SCM perpetual calendar design and production Abstract This paper introduces the design of features intelligence calendar clock circuit, through various design research, using compared commonly used and cheaper LED digital display part as the circuit, button to switch as attune with single-chip microcomputer when parts, digital tubes connect dynamic display year, month, day, and minutes and seconds, and other functions, and accurately calculating leap year intercalary month, plus four display with each second glitters once LED, more beautiful, intuitive, and three buttons connect P3 mouth can accurately adjust each time numerical, through to the clock circuit design calendar tested, reached the dynamic display the time, adjust the time, LED each second glitters technical index reached commitments, basic requirements. Keywords:AT89C51 microcontroller; clock; Digital tube; LED dynamic display 目 录 第一章 前 言 1 1.1 引 言 1 1.2 选题目的与意义 1 第二章 概 述 2 2.1 什么是单片机 2 2.2 单片机介绍 3 2.3 AT89C51芯片简介 3 2.3.1 AT89C51单片机管脚的定义及功能 4 2.3.2 AT89C51单片机内部结构 7 第三章 单片机万年历时钟的设计方案 8 3.1 设计思路 8 3.2 构成框图 8 第四章 系统硬件电路的设计 9 4.1 万年历的主控制器电路 10 4.2时钟功能的实现选择 10 4.3复位电路的选择 12 4.4 时间调整电路的设计 13 4.5 时间显示电路的设计 13 4.5.1扫描方式的选择 13 4.5.2 LED数码管的选择 14 4.5.3 显示电路的整体实现 15 第五章 系统程序设计与软件仿真 16 5.1.主程序的设计及流程图 16 5.2. 时间调整程序流程框图 17 5.3 Keil uVision2环境 19 5.4 万年历程序的烧录 21 第六章 调试与制作 22 6.1 硬件测试 22 6.2 软件测试 22 6.3 测试结果分析与结论 23 6.3.1测试结果分析 23 6.3.2测试结论 23 结束语 24 附 录 1 万年历原理图 25 附 录 2 万年历实物图 26 附 录 3 万年历源程序 27 参考文献 33 致 谢 34 第一章 前 言 1.1 引 言 年历,是指印有一年的月份、星期、日期、节气等的印刷品。人们习惯把单张年历、月历、日历都划入广义的年历范畴内。几十年来,年历的发展见证了科技的发展和时代的变迁。年历工艺的进步显示了科技的发展和人民生活水平的提高。 电子科技日新月异,人们对现代电子设备的智能化和微型化及其精度提出了更高的要求,而单片机因其具有稳定可靠、 体积小、 价格低廉等特点,成为设计智能化仪器仪表的首选微控制器,因此本次我们没有选用传统的专用的时钟芯

文档评论(0)

1亿VIP精品文档

相关文档