基于单片机的数字时钟的设计
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
基于单片机的数字时钟的设计(论文11000字)
摘要:在咱们忙碌的日常工作学习生活中,每一分钟甚至每一秒钟都至关重要,我们每个人都是时间的奴隶。因此,为了能够更充分地利用时间,不造成时间的浪费,钟表应运而生。钟表从它的出现到广泛的应用只经历了很短的一段时间,钟表的颜色、外观、大小尽管各不相同,但是钟表的功能却大同小异,基本上只有一个显示时间的功能。在现代社会,所有的一切都在飞速发展,一切都在变得多姿多彩,所以人们也开始对只有一个显示时间功能的钟表越来越不满意。所以,我想能不能给钟表多加入一些简单而又实用的功能,让钟表不再仅仅是一个计时工具那么简单。本毕业设计运用现在十分普遍的C语言和单片机技术,采用软件和硬件相结合的方式,而且大量地简化了硬件电路的那部分,使工作量主要放在编程上,不仅使时钟能够拥有更多功能,而且还使得钟表更加耐用。按这种想法最终完成后的单片机数字时钟将会拥有显示时间、闹钟、显示温度、显示农历等等功能。
关键词:单片机;数字时钟;LCD显示
Digital clock based on single chip microcomputer
Abstract:In our busy daily school life, every minute, every second is critical even, each of us are slaves of time. Therefore, in order to make better use of time, not to cause a waste of time, clocks came into being. It appears to watch from widely experienced only a short period of time, watch the color, appearance, size, although different, but the timepiece function is similar, basically only a function of the time display. In modern society, everything is in rapid development, everything is more colorful, so people have started to watch only a function of time show more and more dissatisfied. So, I want to be able to watch more than adding some simple and useful features, the watch is no longer just a simple timing tool.The graduation project is now widespread use of C language and microcontroller technology, the use of software and hardware combination, but also a large number of simplifying the hardware portion of the circuit, so that the workload on the main program, the clock can not only have more function, but also makes the watch more durable. After pressing this idea finalize the microcontroller will have a digital clock display time, alarm, temperature display, showing the Lunar and more.
Keywords:SCM;Digital clock;LCD display
[资料来源:THINK58.com]
目 录
1 绪论 1
1.1 课题背景 1
1.2本章小结 1
2.1 主控制模块 1
2.2 显示模块 4
2.2.1 LCD1602主要技术参数 4
2.2.2 LCD1602引脚功能说明 5
2.2.3 LCD1602数据原理 6
2.3 时钟模块 7
2.3.1 DS1302的性能特性 8
2.3.2 DS1302的各个引脚及其功能说明 8
2.3.3 DS1302时钟芯片的工作原理 9
[资料来源:http://www.THINK58.com]
2.4 温度模块 9
2.4.1 DS18B02的性能特性 9
2.4.2 DS18B02工作原理 11
DS18B20的引脚功能如下表9所示 11
2.5 电源转换模块 12
3.1.1 DS1302时钟芯片的操作原理 12
3.1.2 DS1302时钟芯片的控制字节 12
3.1.4 DS1302的寄存器 13
3.2 温度测量模块的设计 13
3.2.1 DS18B20 的测温原理 13
3.2.2 DS18B20 的测温过程 14
4.1程序流程框图。 14
4.2数字时钟的按键功能 14
5 结论 15
5.1 调试 15
5.2 结果 16
6 讨论 16
7 参考文献 17
致 谢 17
附录 18