文档介绍:JIANGSU TEACHERS UNIVERSITY OF TECHNOLOGY
基于单片机的多功能电子时钟系统
学院: 电气信息工程学院
专业: 电子信息工程
班级: 08电子1班
姓名:
学号:
指导老师:
摘要
电子钟主要是利用现代电子技术将时钟电子化、数字化。与传统的机械钟相比,具有时钟精确、显示直观、无机械传动装置等优点。
本设计是以单片机为核心,附加必要的外围电路,还用到时钟芯片DS1302和LCD1602的液晶显示器。在这些硬件基础上,通过编写配套的C语言程序,实现对年、月、日、时、分、秒在液晶屏上的显示,此外还实现整点报时和秒表计时功能。日期和时间通过相应的时钟芯片DS1302与单片机的配合工作将数据传送到液晶显示器上来实现的。整点报时和秒表计时的功能主要是通过软件和单片机的控制来实现的。因此我们要加上一些必要的按键,对相关数据进行设置于操作,如工作模式的选择,对年、月、日、时、分、秒的上、下调节,以及在秒表计时模式下有启动、清零、记录。
通过此次实物制作,增强了我们的动手能力,把理论与实践融合在一起。同时,也进一步加深了对单片机的硬件结构的理解和巩固,编程能力也得到了提高。在此将电子钟制作过程中用到的知识进行了一些总结,并记录了遇到的问题,希望自己今后能注意。同时也希望能成为读者的参考资料,能帮助读者避免出现相同的问题,并能从中得到一些启发。
Electronic clock is the use of modern electronic technology, digital electronic clock. Compared with the traditional mechanical clock, with precision clock, visual display, no mechanical transmission device etc.
The design is based on the single-chip puter as the core, the additional necessary peripheral circuits, in addition to the single chip, also uses the clock chip DS1302 and LCD1602 liquid crystal display. On the basis of hardware, through the preparation of supporting C language program, realizes to the year, month, day, time, second in the LCD screen to display, in addition to realize the whole point timekeeping and stopwatch function of time. Date and time through the clock chip DS1302 and MCU work together to transmit data to the LCD display to achieve. The whole point timekeeping and stopwatch function mainly by software and single puter control to achieve. So we are going to add some necessary key, the relevant data for setting in operation, such as the selection of working mode, for the year, month, day, time, seconds, regulation, as well as in the stopwatch mode start, reset, recording.
Through the physical production, enhance our ability, put theory and practice together. At the same time, also further deepened to single-chip hardware structures to understand and consolidate, programming ability has been improved. The electronic clock making the kn