1、 20122012 届毕业设计说明书届毕业设计说明书 基于单片机的数字万年历设计 系 、 部: 学生姓名: 指导教师: 职称 专 业: 班 级: 完成时间: 2 摘 要 随着科技的快速发展,时间的流逝,至从观太阳、摆钟到现在电子钟,人类不断 研究,不断创新纪录。美国 DALLAS 公司推出的具有涓细电流充电能的低功耗实 时时钟电路 DS1302。它可以对年、月、日、星期、时、分、秒进行计时,还具 有闰年补偿等多种功能,而且 DS1302 的使用寿命长,误差小。对于数字电子万 年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒等信息, 还具有闹铃功能。该电路采用 AT89S52 单
2、片机作为核心,功耗小,能在 3V 的低 压工作,电压可选用 35V 电压供电。 综上所述此万年历具有读取方便、显示直观、功能多样、电路简洁、成本 低廉等诸多优点,符合电子仪器仪表的发展趋势,具有广阔的市场前景。 本设计是基于 51 系列的单片机进行的电子万年历设计,可以显示年月日时 分秒及周信息,具有可调整日期和时间功能。通过此次设计能够更加牢固的掌握 单片机的应用技术,增强动手能力、硬件设计能力以及软件设计能力。 本文介绍的万年历运用了 AT89S52 单片机、DS1302 时钟芯片、液晶显示屏。 关键字:万年历;AT89S52;DS1302;C 语言编程;液晶显示屏 3 ABSTRACT
3、Along with the rapid development of technology, the passage of time, to view the sun, from the pendulum clocks are now electric clock, human continuously research, innovation record. The United States out Juan DALLAS has fine current charge of low power consumption can real time clock circuit DS1302
4、. It can be to year, month, day, Sunday, when, minutes and seconds for the time, also has a leap year compensation and other functions, and the DS1302 long service life and small error. For digital electronic calendar using intuitive digital display, can also shows that year, month, day, Sunday, when the minutes and seconds, and other information, also has alarm function. This circuit AT89S52 SCM as the core, power consumption