文档介绍:单片机技术课程设计说明书
基于单片机的时钟电路设计
专业
电气工程及自动化
学生姓名
班级
学号
指导教师
完成日期
2011年 6月 9 日
摘要
随着生活节奏的加快,人们时间观念的加强,时钟已经成为人们日常生活中不可或缺的一部分,而如何在时钟的基础上,根据人们生活的需要增加相应的功能以方便人们的生活,成为时钟设计方面的重点。单片机以其强大的功能,低廉的价格成为许多多功能电子产品的首选。本设计结合我所学的单片机原理及接口技术这门课程而拓展的电子方面的研究,在单片机时钟的基础上通过软件记时,实现时钟功能,同时通过按键开关来扩展功能,实现定时闹钟与秒表功能。C51语言作为高级语言C语言的移植,易于理解和操作,且结构化较高,本设计即采用C51语言作为编程语言,流程比较清晰。
本设计是以一片40引脚的单片机AT89C51为主体,结合16位定时器/计数器、I/O口扩展和LCD数码管共同设计完成电子数字钟(与MCS-51 兼容)。给出具体电路图对其做出详细的分析和说明。论文主要介绍了Protel 软件的仿真功能。并以数字电子钟设计为例,阐述如何应用该软件进行数字电路的设计与仿真。
Proteus是深受广大电路设计者喜爱而成为家喻户晓的电路设计工具。它不但使绘制原理图、仿真等功能更加完备,而且它为用户提供功能强大、使用方便的电路仿真器。它可以对当前所画的电路原理图进行即时仿真,因此在电路的整个设计周期都可以仿真查看和分析电路的性能指标,以便及时发现设计中所存在的问题并加以改正,从而更好的完成设计。
关键词:AT89C51芯片数码管闹铃设计与仿真
ABSTRACT
With the quickening pace of life, it enhanced sense of time, the clock has e an indispensable part of daily life. How the clock basis, according to people's lives need to increase accordingly, function to facilitate people's lives, e the focus of the clock design. Microcontroller with its powerful features, low price to e the first choice for many multi-functional electronic products. The bines the science and application of the principle amount of SCM such courses to expand the e-research, based on the clock in the microcontroller software in mind, the realization of the clock function, and to extend the functionality through the key switch, alarm and stopwatch time to achieve function. C51 high-level language C language as the language of transplantation, easy to understand and operate, and the structure of the higher, the design of the C51 language as a programming language used, the process clearer.
Keyword: electric o’clock multifuntional AT89C51
多功能数字时钟的功能
设计背景及目的
数字钟已经成为人们日常生活中必不可少的必需品,广泛应用于个人家庭以及办公室公共场所,给人们的生活、学习、工作、娱乐带来了极大地方便。由于数字集成电路技术的发展和采用了新进的石英技术,是数字钟具有走时准确、性能稳定、携带方便等优点。它还用于计时、自动报时等各个领域。尽管目前市场上已有现成的数字集成电路芯片出售,价格便宜,使用也方便,但鉴于单片机的定时器功能也可以完成数字中电路的设计,因此进行数字钟的设计是必要的。在这里我们将以学过的比较零散的电路知识邮寄的、系统的结合起来用于实际,来培养我们的综合分析和设计电路,写程序、调试电路的能力。
单片机具有体积小、功能可靠性高、价格低廉等一系列优点,不