毕业设计(论文)基于单片机数字时钟的设计 .doc
文本预览下载声明
毕业设计(论文)
基于单片机数字时钟的设计igital clock based on single-chip microcomputer’s design
Abstract: This article introduced the multi-purpose digital clock system design. The system has function and so on time establishment and demon stration, alarm clock,. The system take AT89S52 as a core, mainly carries on based on AT89S52 the low power loss MCU character numeral clock and its the system research.. The system has the liquid-crystal display, coordinates the pressed key to provide the friendly user contact surface, the operation simple, this digital clock can long-term, be continual, reliably, the stable work; Simultaneously also has the volume slightly, the power loss is low and so on the characteristic, is advantageous for carries, easy too perate. System software design including monolithic integrated circuit programming. The monolithic integrated circuit software programming mainly realizes module function and so on the pressed key, liquid crystal display, clock, time, alarm clock.
Key words: Digital Clock;Single-Chip Microcomputer; LCD
目 录
1 引言 1
1.1课程设计要求 1
1.2 课程设计目的 2
2 单片机发展历史 3
2.1三大阶段 3
2.2 单片机的发展趋势 3
3 单片机的应用 6
3.1单片机的应用分类 6
4 数字时钟的构成 8
4.1 数字时钟的构成 8
4.2 方案选择与相关技术 8
4.3 AT89S52 8
4.3.1 引脚结构及各端口介绍 9
4.3.2 中断 11
4.3.3 单片机存储器结构 13
4.3.4 单片机复位电路与时钟电路 13
4.3.5 看门狗定时器 14
4.4 DS1302的原理及应用 15
4.4.1 DS1302的结构及工作原理 15
4.4.2 引脚功能及结构 16
4.4.3 DS1302的控制字节 17
4.4.4 数据输入输出(I/O) 17
4.4.5 DS1302的寄存器 18
4.5 LCD模块的原理及应用 19
4.5.1 LCD结构及工作原理 19
5 电路设计 21
5.1 系统硬件设计 21
5.1.1 结构框图 21
5.1.2 工作原理 22
5.1.3 中断方式应注意的问题 22
5.1.4 定时准确性的讨论 23
5.1.5 软件消抖 23
5.2 编程思路 24
5.2.1 数字钟的操作 24
总结 26
参考文献 27
附录 28
致谢 33
1 引言
20世纪末,电子技术获得了飞速的发展,在其推动下,现代电子产品几乎渗透了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高,产品更新换代的节奏也越来越快。
目前,单片机正朝着高性能和多品种方向发展的趋势将进一步向CMOS化、低功耗、小体积、大容量、高性能、低价格和外围电路内装化等几个方面发展。下面是单片机的主要发展趋势。
单片机应用的重要意义还在于,它从根本上改变了传统的控制系统设计思想和设计方法。从前必须由模拟电路或数字电路实现的大部分功能,现在已能用单片机通过软件方法来实现了。这种软件代替硬件的控制技术也称为微控制技术,是传统控制技术的一次革命。
数字时钟在单片机模块里比较常见,数字时钟是一种用0数字电路技术实现时、分、秒计时的装置,与机械式时钟相比具有更高的准确性和直观性,且无机械装置,具有更长的使用
显示全部