您好,欢迎来到佳博论文网!

基于AT89S51单片机的数字电子钟设计

论文编号:JD983 论文字数:14560,页数:39

摘要:本文介绍了一款基于AT89S51单片机数字钟的设计,通过多功能数字钟的设计思路,详细叙述了系统硬件、软件的具体实现过程。论文重点阐述了数字钟硬件中MCU模块、语音模块、时钟模块和相关控制模块等的模块化设计与制作;软件同样采用模块化的设计,包括中断模块、闹钟模块、语音模块、时间调整模块设计,并采用简单流通性强的C语言编实现。本设计实现了时间与闹钟的功能、语音播报功能、年、月、日和星期的显示功能。并且通过对比实际的时钟,查找出了误差的来源,确定了调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。

关键词:AT89S51单片机;数字钟;语音播报

The design of digital electronic clock base on SCM of AT89S51

Abstract: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 detailed description through the design of multifunction digital clock. The modular design and production, 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 its simple and strong negotiability. In this design the functions of time and alarm clock run and change, voice broadcast,functions of the year, month, day and week display have been achieved. And by comparing the actual clock, find out the source of the error and determined the method of adjusting error, reduce errors as much as possibly, so this system can achieve a practical digital clock with error within the permissible range.

Key words :AT89S51 microcontroller; Digital clock; Voice Broadcast

目  录

第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 中断子程序23

4.5 LCD显示子程序24

4.3 本章小结24

第5章 调试与功能说明26

5.1 硬件调试26

5.2 系统性能测试与功能说明28

5.2.1 系统时钟误差分析28

5.2.2 软件调试问题及解决29

5.3 系统PCB图30

5.4 本章小节30

结论31

致谢32

参考文献33

附录1 34

附录2 35

基于AT89S51单片机的数字电子钟设计......