文档介绍:江西理工大学专科毕业论文江西理工大学毕业论文(设计) 题目可编程作息时间控制器设计与制作信息工程系电气自动化专业 2班 2010 年4月 10日可编程作息时间控制器设计与制作摘要: 本文介绍了一款基于 AT89S52 单片机数字钟的设计,通过多功能数字钟的设计思路,详细叙述了系统硬件、软件的具体实现过程。论文重点阐述了数字钟硬件中主控制模块、时钟模块、显示模块和相关控制模块等的模块化设计与制作;软件同样采用模块化的设计, 本设计实现了时间与闹钟的修改功能、语音播报功能、年、月、日和星期等的显示功能。并且通过对比实际的时钟, 查找出了误差的来源,确定了调整误差的方法,尽可能的减少误差,使得系统可以达到实际数字钟的允许误差范围内。本次设计过程在硬件与软件方面是进行同步设计。硬件部分主要由 AT89C52 单片机, LED 显示电路,以及调时按键电路等组成。在单片机的选择上本人使用了 AT89C52 单片机,该单片机适合于许多较为复杂控制应用场合。显示器使用 2片 7SEG-MPX 8 -CA 和一片 7SEG-MPX 4 -CA 。 7SEG-MPX 8 -CA 是一种八个共阳二极管显示器, 7SEG-MPX 4 -CA 是一种四个共阳二极管显示器。为了能更轻松的控制这三片显示器, 本人使用了 3片 74HC164 来驱动。 74HC164 是8 位边沿触发式移位寄存器, 串行输入数据, 然后并行输出。软件方面主要包括日历程序、时间调整程序, 公历转阴历程序, 显示程序等。程序采用汇编语言编写, 以便更简单地实现调整时间及阴历显示功能。关键词: 时钟电钟; DS1302 ;DS18B20 ;动态扫描;单片机江西理工大学专科毕业论文 A BSTRACT This article describes an AT89S52 microcontroller based digital clock design, through multi-functional digital clock design ideas, detailed description of the system hardware and software realization process. Paper focuses on the digital clock in the main control module hardware, the clock modules, display modules and associated control modules, modular design and production; software as modular design, the design and implementation of the changes of time and alarm functions, voice broadcast function, year, month, day and week, etc. display. And paring the actual clock, find out the source of the error, the error of the method of determining the adjustment, as much as possible to reduce errors Enable the system to achieve a practical digital clock within allowable error. Hardware mainly by the AT89C52 microcontroller, LED display circuit, and the posed of the circuit when the button. In the SCM choice I used the AT89C52 microcontroller, which is suitable for many of the plex control applications. Monitor the use of two 7SEG - -MPX 8- -CA and a 7SEG - -MPX4 - -CA. 7SEG-MPX8-CA isa total of eight-yang display 7SEG-MPX4-CA isa total of four-yang diode display. In order to more easily control the three monitors, I use three 74HC164 to