【独创】基于单片机的电子钟论文.doc泛姦挝桝0甲捻粵ft
JIANGSU TEACHERS UMVERSHY OF TECHNOLOGY
电子系统设计
课
题:
基于单片机的多功能电子时钟系统
学
院:
电气信息工程学院
专
业:
电子信息工程
班
级:
08电子1班
姓
名:
学
号:
指导老师:
刘晓杰
日
期:
2012-1-4
目录
摘要 3
—、绪论 4
4
4
二、 系统方案设计 4
1系统总方案的确定 4
5
5
5
2. 2. 3显示模块的选择 5
5
3系统实现的总体框图 5
三、 硬件电路设计 6
1单片机系统电路的设计 6
: 6
3. 7
3. 2时钟模块的设计 8
DS1302简介及引脚功能介绍 8
3. 2. 2本系统中DS1302电路接线图 9
LCD1602显示模块的设计 9
9
3. 2本系统中LCD1602电路接线图 10
3. 4按键电路模块的设计 10
*4矩阵键盘接线图: 10
11
6复位电路模块设计 11
四、 系统的软件设计 12
12
2软件设计 15
DS1302 驱动程序 15
4. LCD1602 驱动程序 17
18
五、 测试结果 20
、日期的显示: 20
、日期的校准 20
20
六、 总结 21
七、 参考文献 21
八、 附录 22
附录一、元器件清单 22
附录二、电路原理图 23
附录三、源程序清单 24
摘要
本设计要实现一个多功能电子时钟系统,包括硬件设计和软件设计,并重点 讨论了模块软件设计和编程思想。
该系统以51单片机为核心,设计中采用STC89C52芯片、DS1302时钟芯片 及LCD1602液晶显示器,附加必要地外围电路,整体由5V电源供电,再通过编 写配套的C语言程序,实现年、月、日、时、分、秒、星期在LCD显示屏上显示。 此外还实现了整点报时和秒表功能。
电子时钟主要利用电子技术将时钟电子化,数字化,具有时钟精确、体积小、 可扩展性能强等特点,也可通过改装增加新功能,从而被广泛应用于生活和工作 中。
关键词:电子时钟、单片机、C语言
Abstract
The design to achieve a multifunctional electronic clock system, including hardware design and software design, and discussed the module software design and programming.
The system with 51 single chip as the core, is adopted in the design of STC89C52 chip, the DS 1302 chip and LCD 1602 liquid crystal display, additional necessary peripheral circuits, which consists of 5V power supply, and then through the preparation of supporting C language program, to achieve annual, month, day, week, when minutes and seconds, displayed in the LCD display. In addition to realize the whole point timekeeping and stopwatch functions.
Electronic clock main use of electronic technology, electronic clock, digital clock, with precision, small volume, scalable performance and other characteristics, can also be modified to add new function, which is w
【独创】基于单片机的电子钟论文 来自淘豆网m.daumloan.com转载请标明出处.