最新多功能电子时钟系统设计设计34506284

最新多功能电子时钟系统设计设计34506284
最新多功能电子时钟系统设计设计34506284

多功能电子时钟系统设计设计34506284

JIANGSU UNIVERSITY OF TECHNOLOGY 电子系统设计综合训练多功能电子时钟系统设计

多功能电子时钟系统设计

摘要

在快节奏的当今社会,时间是一个很重要的工具,为了更高效率的完成工作,为了社会的进步与发展,把握和控制时间更是尤为重要。人们对数字钟的要求也越来越高,多功能数字钟不管在性能还是在样式上都发生了质的变化。数字钟的设计方法有许多种,例如,可用中小规模集成电路组成电子钟;也可以利用专用的电子钟芯片配以显示电路及其所需要的外围电路组成电子钟;还可以利用单片机来实现电子钟等等。这些方法都各有其特点,其中利用单片机实现的电子钟具有编程灵活,并便于功能的扩展。但这里为了学习数字电路,包括对组合逻辑电路与时序电路的学习,采用中小规模集成电路组成数字钟。因此本系统采用单片机作为数字钟的核心控制器,读取时钟芯片的值,并通过显示器显示出来,而且,可以通过按键电路给单片机执行信号,实现正常显示,时钟校准和秒表的切换。采用AT89S52作为主控单片机,时钟模块选用DS1302作为时钟芯片,显示模块选用LCD1602,设置部分选用按键电路。

本设计是以单片机为核心,附加必要的外围电路,通过编写C语言将存储在

DS1302芯片中的年、月、日、时、分、秒,经过串行输入到单片机内部,对其进行数制的转换在DS1602上显现出来。

关键词:LCD160;DS1302;STC89C52;电子钟

Multifunction electronic clock system desig n Abstract

With the fast-paced development of society , time becomes a essential tool which to be used in our daily routine , in order to complete the work more efficiently, in order to accelerate progress and development of society, it is particularly important to grasp and control the time. multi-functional digital clock regardless of the style or performance on both a qualitative change . Digital clock design There are many ways , for example , can be composed of small and medium- scale integrated circuits electronic bell ; also be used with a dedicated chip electronic clock display circuit and its peripheral circuit required electronic bell ; chip can also be used to implement electronic bell and so on. These methods have their own characteristics , including the use of electronic clock with MCU programming flexibility , functionality and ease of expansion. But here in order to learn digital circuits, including combinational logic circuits and sequential circuits of study, using small and medium scale integrated circuits digital clock . Therefore, the system uses the MCU as the core controller digital clock , clock chip to read the values displayed by the display , and can be performed through the key signal to the microcontroller circuit to achieve normal display, clock and stopwatch calibration switch . Using AT89S52 microcontroller as the master clock module selection as the DS1302 clock chip, display module selection LCD1602, setting part of the selection key circuit .

This design is a microcontroller as the core , the additional necessary peripheral circuits , through the preparation of the C language will be stored in the DS1302 chip year, month, day, hour, minute, second, through the serial input to the internal microcontroller , its number system conversion apparent on the DS1602 .

Keywords:LCD1602;DS1302;STC89C52;Clock

目录

JIANGSU UNIVERSITY OF TECHNOLOGY (1)

1.1 课题的意义和目的 (6)

课题的研究内容 (6)

2.1系统方案设计 (7)

2.1.1系统方案设计 (7)

2.2 方案的选择与论证 (8)

2.2.1方案的比较与论证 (8)

3.1 单片机控制模块 (9)

3.1.1单片机的介绍 (9)

3.3按键控制模块 (18)

3.4显示模块 (19)

3.4.1LCD1602简介 (19)

3.4.1 1602LCD的引脚功能 (20)

3.4.2 1602LCD的字符液晶字库 (21)

3.4.3LCD1602的使用方法 (22)

3.5 蜂鸣报警电路模块设计 (23)

5.2 软硬件功能分析 (27)

5.3 测试结果分析 (31)

前言

近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正在不断地走向深入,由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方便等特点,因此越来越广泛地应用各个领域。

本次电子系统实训是以单片机(STC89C52)为核心,时钟芯片DS1302,

LCD1602XI显示部分构成。具体介绍了应用Protues的ISIS软件进行单片机系统的电子时钟设计与仿真的实现方法。该方法既能准确验证所设计的系统是否满足技术要求,又能提高系统设计的效率和质量,降低开发成本,具有推广价值。随着现在通信的发展,移动通信,网络技术,多媒体技术在嵌入式系统中的应用,单片机从4位,8位,16位到32位,其发展历程一直受到广大电子爱好者的极大关注。单片机功能越来越强大,价格却不断下降的优势无疑成为嵌入式系统设计的首选,同时单片机应用领域的扩大也使得更多人加入到基于单片机系统的开发行列,推动着单片机技术的创新进步。

然而传统的单片机系统开发除了需要购置如仿真器,编程器,示波器等价格不菲的电子设备外,开发过程也较为繁琐。单片机系统作为一种典型的嵌入式系统,其系

统设计包括硬件电路设计和软件编程设计两个方面,其调试过程一般分为软件调试,硬件调试,硬件测试,系统调试3个过程。如果采用单片机系统的虚拟仿真软件-Protues,则不用制作具体的电路板也能够完成以上工作。

相关主题
相关文档
最新文档