1 / 44
文档名称:

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

格式:doc   大小:1,044KB   页数:44页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

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

上传人:mkjafow 2018/1/26 文件大小:1.02 MB

下载得到文件列表

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

文档介绍

文档介绍:摘要
本系统利用单片机实现具有计时、校时、闹钟、语音播报等功能的数字时钟,是以单片机AT89S51为核心元件同时采用数码管显示器动态逐次显示“年”,“月日”,“时分”,“秒”的现代计时装置。与传统机械时钟相比,它具有走时精确,显示直观等特点。在日常生活和自动控制系统中,经常遇到对时间实时监控的需求,本系统在对时间监控的同时,若达到预先设定的时间后,能使LED不停闪烁提示时间已到。另外本程序还具有校时功能,能够随时调整时间,而且能够随时方便的扩充扩展其他多功能,因此利用单片机实现的本数字时钟具有编程灵活,便于功能的扩充等优点。
关键字:AT89S51;单片机;数字钟;LED数码管
Abstract
This system using the single chip puter timer, the school has, alarm clock, the function such as speech broadcast digital clock, is AT89S51 single-chip puter as the ponents as well as using digital tube display dynamic essive shows "year", "may," "time", "seconds" modern timing device. Compared with the traditional mechanical clock, it is accurate, when direct display characteristics. In the daily life and the automatic control system, it is time to meet the needs of the real-time monitoring, this system for monitoring in time, and at the same time, to set time in advance if after all, can make the LED twinkle tip the time e. In addition the program also has the function, can adjust in time, and at any time convenient to expand the expansion of the other, so using the single chip puter multi-function of the digital clock has programming, facilitate the expansion of the flexible function etc.
Key word:AT89S51;single-chip puter;A digital clock;LED digital tube
目录
引言 1
一绪论 2
课题意义 2
数字钟的应用 2
二整体设计方案 3
设计任务 5
设计思路 3
设计方案 3
三数字钟的硬件设计 4
总电路图 4
AT89S51概述及其特点 5
T0定时器/计数器 7
数码管动态扫描 9
13
复位电路 15
13
语音录放电路 17
四数字钟的软件设计 19
系统软件设计内容 19
数据与代码转换 19
计时功能的实现与中断服务程序 19
数字钟流程图 20
数字钟程序 23
五总结 37
致谢 37
参考文献 39

引言
计算机尤其是以微细加工技术支持的微型计算机技术飞速发展,其应用渗透到了各行各业。以单片机、嵌入式处理器、数字信号处理器(DSP)为核心的计算机系统,以其软硬件可裁剪、高度的实时性、高度的可靠性、功能齐全、低功耗、适应面广等诸多优点而得到极为广泛的应用。目前计算机硬件技术向巨型化、微型化和单片机化三个方向发展。自1975年美国德州仪器公司(Texas Instruments)第一块微型计算机芯片TMS-1000问世以来,在短短的20年间,单片机技术已发展成为计算机领域一个非常有前途的分支,它有自己的技术特征、规范和应用领域。单片机是自动控制系统的核心部件,主要用于工业控制、智能化仪器仪表、家用电器中。它具有体积小、性能突出可靠性高(某些方面的性能指标大大优于通用微机中央处理器)、价格低廉等一系列优点,应用领域不