- 7
- 0
- 约3.16万字
- 约 51页
- 2016-12-11 发布于贵州
- 举报
毕业论文(设计)
基于单片机进行实时日历和时钟显示设计学 生 姓 名:指导教师:合作指导教师:专业名称:自动化所 在 学 院:2012年6月
目录
摘要......................................................Ⅰ
Abstract…………………………………………………………………Ⅱ
第一章 前言 1
第二章 设计方案论证 2
2.1功能要求 2
2.2方案确定 2
第三章 主控制器和外围器件 4
3.1AT89S52单片机 4
3.2DS1302时钟芯片 4
3.3数码管LED 7
3.4译码器74HC138 8
3.5锁存器74LS244 8
第四章 硬件设计 9
4.1电路设计框图 9
4.2系统概述 9
4.3电源设计 9
4.5单片机系统的晶振电路 10
4.6主电路设计 11
第五章 软件设计 12
5.1主程序设计 12
5.2键盘子程序设计 13
5.3日历时钟子程序设计 15
5.4显示子程序设计 17
第六章 系统调试 18
6.1软件调试 18
6.2硬件调试 19
第七章 结论 20
致谢 21
参考文献 22
附录 26
附录Ⅰ硬件电路图 26
附录Ⅱ主程序源代码 27
摘要
本设计是基于51系列的单片机进行的实时日历和时钟显示设计,可以显示年月日时分秒及周信息,具有可调整日期和时间功能。在设计的同时对单片机的理论基础和外围扩展知识进行了比较全面准备。
实时日历和时钟显示的设计过程在硬件与软件方面进行同步设计。硬件部分主要由AT89S52单片机,通过LED显示数据,所以具有人性化的操作和直观的显示效果。软件方面主要包括时钟程序、键盘程序,显示程序等。本系统以单片机的汇编语言进行软件设计,为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,以便更简单地实现调整时间及日期显示功能。所有程序编写完成后,在wave软件中进行调试,成功运行后,在Protel软件中进行仿真并调试。
关键词:AT89S52, DS1302, LED
Abstract
This design is based on 51 series monolithic integrated circuits of a real-time calendar and the
clock shows the design , you can show how and when a week , has may adjust the date and time functions . in the design for monolithic integrated circuits , and peripheral to expand the basic theories of knowledge was fairly comprehensive preparation .Real-time calendar and the clock shows the design in hardware and software design of hardware that is synchronized the led display at89s52 monolithic integrated circuits, and when should the electrical circuits, the system through the led display data so be humanized operate and intuitive that effect. Including the software application programs, the keyboard, the program, etc. This system to monolithic integrated circuits of the assembly language for easily developing software design, and changes, software design to use modular design, the programming logical relationship with more and more so as to realize the time and date display the functions. all procedures in writing after wave of debugging the software and make no question of t
原创力文档

文档评论(0)