最新多功能电子时钟系统设计设计34506284
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
多功能电子时钟系统设计设计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