毕业论文 数字电子钟的设计及制作.doc
约33页DOC格式手机打开展开
毕业论文 数字电子钟的设计及制作,摘 要20世纪末,电子技术获得了飞速的发展,在其推动下,现代电子产品几乎渗透了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高,产品更新换代的节奏也越来越快。现代生活的人们越来越重视起了时间观念,可以说是时间和金钱划上了等号。对于那些对时间把握非常严格和准确的人或事...
内容介绍
此文档由会员 ljjwl8321 发布
摘 要
20世纪末,电子技术获得了飞速的发展,在其推动下,现代电子产品几乎渗透了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高,产品更新换代的节奏也越来越快。
现代生活的人们越来越重视起了时间观念,可以说是时间和金钱划上了等号。对于那些对时间把握非常严格和准确的人或事来说,时间的不准确会带来非常大的麻烦,所以以数码管为显示器的时钟比指针式的时钟表现出了很大的优势。数码管显示的时间简单明了而且读数快、时间准确显示到秒。而机械式的依赖于晶体震荡器,可能会导致误差。
数字钟是采用数字电路实现对“时”、“分”、“秒”数字显示的计时装置。数字钟的精度、稳定度远远超过老式机械钟。在这次设计中,我们采用LED数码管显示时、分、秒,以24小时计时方式,根据数码管动态显示原理来进行显示,用12MHz的晶振产生振荡脉冲,定时器计数。在此次设计中,电路具有显示时间的其本功能,还可以实现对时间的调整。数字钟是其小巧,价格低廉,走时精度高,使用方便,功能多,便于集成化而受广大消费的喜爱,因此得到了广泛的使用。
关键字:数字电子钟 单片机
Abstract
At the end of the 20th century, electronic technology has experienced rapid growth, the modern electronic products, almost permeated the various sectors of society, and promoted the development of social productive forces and the social informatization level, but also improve the modern electronic products to further improve the performance, product update rhythm also more and more quickly.
Modern life of people pay more and more attention to the concept of time, money and time on the hospital. For those in time and accurately grasp the very strict about or inaccurate, time will bring great trouble, so as to displays clock digital tube than the pointer clock showed a lot of advantages. Digital pipe display time is simple and accurate readings, time to seconds. And mechanical dependent on crystal oscillators, may cause errors.
A digital clock is used in digital circuit ", "" points" and "second" digital display timer. A digital clock accuracy and stability than old mechanical clock. In this design, we adopt LED digital display tube, minutes and seconds, when in 24 hours time, according to the principle of dynamic display of digital tube to show, with the crystals 12MHz produce oscillation pulses, timer count. In this design, the circuit has its time, still can realize the function of the time. A digital clock is its small, inexpensive, high precision, easy to use and when, the function is much, facilitate integration by vast consumption, so it has been widely used.
Key words: digital electric clock microcontroller
目 录
第一章 绪论
1.1 数字电子钟的背景…………………………………………………………………5
1.2 数字电子钟的意义…………………………………………………………………5
1.3 数字电子钟的应用…………………………………………………………………5
第二章 整体设计方案
2.1 单片机的选择…………………………………………………………………………2
2.2 单片机的基本结构……………………………………………………………………4
第三章 数字钟的硬件设计
3.1 最小系统设计…………………………………………………………………………12
3.2 LED显示电路…………………………………………………………………………14
3.3 键盘控制电路…………………………………………………………………………16
第四章 数字钟的软件设计
4.1 系统软件设计流程图…………………………………………………………………18
4.2 数字电子钟的原理图…………………………………………………………………22
4.3中断子程序 ……………………………………………………………………………23
4.4 延时子程序……………………………………………………………………………23
4.5 主程序和定时器中断子程序…………………………………………………………23
4.6 LED显示子程序………………………………………………………………………24
4.7 按键控制子程序………………………………………………………………………26
第五章 系统仿真
5.1 PROTUES软件介绍……………………………………………………………………29
5.2 电子钟系统PROTUES仿真……………………………………………………………29
第六章 调试与功能说明
6.1 系统性能测试与功能说明……………………………………………………………30
6.2 系统时钟误差分析……………………………………………………………………30
6.3 软件调试问题及解决…………………………………………………………………30
结束语. ………………………………………………………………………………………31
参考文献………………………………………………………………………………………32
致谢……………………………………………………………………………………………33
20世纪末,电子技术获得了飞速的发展,在其推动下,现代电子产品几乎渗透了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高,产品更新换代的节奏也越来越快。
现代生活的人们越来越重视起了时间观念,可以说是时间和金钱划上了等号。对于那些对时间把握非常严格和准确的人或事来说,时间的不准确会带来非常大的麻烦,所以以数码管为显示器的时钟比指针式的时钟表现出了很大的优势。数码管显示的时间简单明了而且读数快、时间准确显示到秒。而机械式的依赖于晶体震荡器,可能会导致误差。
数字钟是采用数字电路实现对“时”、“分”、“秒”数字显示的计时装置。数字钟的精度、稳定度远远超过老式机械钟。在这次设计中,我们采用LED数码管显示时、分、秒,以24小时计时方式,根据数码管动态显示原理来进行显示,用12MHz的晶振产生振荡脉冲,定时器计数。在此次设计中,电路具有显示时间的其本功能,还可以实现对时间的调整。数字钟是其小巧,价格低廉,走时精度高,使用方便,功能多,便于集成化而受广大消费的喜爱,因此得到了广泛的使用。
关键字:数字电子钟 单片机
Abstract
At the end of the 20th century, electronic technology has experienced rapid growth, the modern electronic products, almost permeated the various sectors of society, and promoted the development of social productive forces and the social informatization level, but also improve the modern electronic products to further improve the performance, product update rhythm also more and more quickly.
Modern life of people pay more and more attention to the concept of time, money and time on the hospital. For those in time and accurately grasp the very strict about or inaccurate, time will bring great trouble, so as to displays clock digital tube than the pointer clock showed a lot of advantages. Digital pipe display time is simple and accurate readings, time to seconds. And mechanical dependent on crystal oscillators, may cause errors.
A digital clock is used in digital circuit ", "" points" and "second" digital display timer. A digital clock accuracy and stability than old mechanical clock. In this design, we adopt LED digital display tube, minutes and seconds, when in 24 hours time, according to the principle of dynamic display of digital tube to show, with the crystals 12MHz produce oscillation pulses, timer count. In this design, the circuit has its time, still can realize the function of the time. A digital clock is its small, inexpensive, high precision, easy to use and when, the function is much, facilitate integration by vast consumption, so it has been widely used.
Key words: digital electric clock microcontroller
目 录
第一章 绪论
1.1 数字电子钟的背景…………………………………………………………………5
1.2 数字电子钟的意义…………………………………………………………………5
1.3 数字电子钟的应用…………………………………………………………………5
第二章 整体设计方案
2.1 单片机的选择…………………………………………………………………………2
2.2 单片机的基本结构……………………………………………………………………4
第三章 数字钟的硬件设计
3.1 最小系统设计…………………………………………………………………………12
3.2 LED显示电路…………………………………………………………………………14
3.3 键盘控制电路…………………………………………………………………………16
第四章 数字钟的软件设计
4.1 系统软件设计流程图…………………………………………………………………18
4.2 数字电子钟的原理图…………………………………………………………………22
4.3中断子程序 ……………………………………………………………………………23
4.4 延时子程序……………………………………………………………………………23
4.5 主程序和定时器中断子程序…………………………………………………………23
4.6 LED显示子程序………………………………………………………………………24
4.7 按键控制子程序………………………………………………………………………26
第五章 系统仿真
5.1 PROTUES软件介绍……………………………………………………………………29
5.2 电子钟系统PROTUES仿真……………………………………………………………29
第六章 调试与功能说明
6.1 系统性能测试与功能说明……………………………………………………………30
6.2 系统时钟误差分析……………………………………………………………………30
6.3 软件调试问题及解决…………………………………………………………………30
结束语. ………………………………………………………………………………………31
参考文献………………………………………………………………………………………32
致谢……………………………………………………………………………………………33