当前位置:文档之家› 基于单片机的数字电子钟本科毕业设计毕业论文

基于单片机的数字电子钟本科毕业设计毕业论文

基于单片机的数字电子钟本科毕业设计毕业论文I05402IIAT89S51摘要:本文介绍了一款基于AT89S51单片机数字钟的设计,通过多功能数字钟的设计思路,详细叙述了系统硬件、软件的具体实现过程。

论文重点阐述了数字钟硬件中MCU模块、语音模块、时钟模块和相关控制模块等的模块化设计与制作;软件同样采用模块化的设计,包括中断模块、闹钟模块、语音模块、时间调整模块设计,并采用简单流通性强的C语言编写实现。

本设计实现了时间与闹钟的修改功能、语音播报功能、年、月、日和星期的显示功能。

并且通过对比实际的时钟,查找出了误差的来源,确定了调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。

关键词:AT89S51单片机;数字钟;语音播报IIIThe design of digital electronic clock base on SCM ofAT89S51Abstract:This paper introduced the design of digital clock based on SCM of AT89S51, the specific process of how the system hardware and software achieved were detaileddescription through the design of multifunction digital clock. The modular design andproduction, which consisted of MCU module, voice module,clock module and the associated control module, were mainly recounted;As well as hardware designing,software design use the same method, consists suspension module,alarm clock module, voice module, time adjust module, and that use the C language to achieve because of itssimple and strong negotiability. In this design the functions oftime and alarm clock runand change, voice broadcast,functions of the year, month, day and week display have beenachieved. And by comparing the actual clock, find out the source of the error anddetermined the method of adjusting error, reduce errors as much as possibly, so this systemcan achieve a practical digital clock with error within the permissible range.Key words :AT89S51 microcontroller; Digital clock; Voice Broadcast IV目录第1章绪论 ..................................................................... ....................................................... 1 1.1 课题背景 ..................................................................... .................................................. 1 1.2 课题意义 ..................................................................... .................................................. 1 1.3 数字钟的应用 ..................................................................... .......................................... 2 1.4 本章小结 ..................................................................... .................................................. 2 第2章整体设计方案 ..................................................................... ........................................ 3 2.1 单片机的选择 ..................................................................... .......................................... 3 2.2 单片机的基本结构 ..................................................................... .................................. 5 2.3 本章小结 ..................................................................... .................................................. 6 第3章数字钟的硬件设计 ..................................................................... .............................. 7 3.1 最小系统设计 ..................................................................... .......................................... 7 3.2 数字钟的外围电路设计 ..................................................................... . (9)3.2.1 时钟电路 ..................................................................... . (9)3.2.2 LCD显示电路 ..................................................................... .. (11)3.2.3 语音录放电路 ..................................................................... (13)3.2.4 电源电路 ..................................................................... .. (13)3.2.5 相关控制电路 ..................................................................... ................................. 14 3.3 本章小结 ..................................................................... ................................................ 16 第4章数字钟的软件设计 ..................................................................... ............................ 17 4.1 系统软件设计内容 ..................................................................... ................................ 17 4.2 主程序...................................................................... .................................................... 18 4.3 时钟设置子程序 ..................................................................... .................................... 20 4.4 中断子程序 ..................................................................... ............................................ 24 4.5 LCD显示子程序 ..................................................................... ................................... 25 4.3 本章小结 ..................................................................... ................................................ 25 第5章调试与功能说明 ..................................................................... ................................ 26 5.1 硬件调试 ..................................................................... (26)V5.2 系统性能测试与功能说明 ..................................................................... . (27)5.2.1 系统时钟误差分析 ..................................................................... (27)5.2.2 软件调试问题及解决 ..................................................................... .................... 29 5.3 系统PCB图...................................................................... .......................................... 30 5.4 本章小节 ..................................................................... ................................................ 30 结论 ..................................................................... ......................................................................31 致谢 ..................................................................... ......................................................................32 参考文献 ..................................................................... ............................................................. 33 附录1 (34)附录2 (35)第1章绪论1.1 课题背景单片机自1976年由Intel公司推出MCS-48开始,迄今已有二十多年了。

相关主题