1、电子万年历的设计 摘要 电子万年历是一种非常广泛日常计时工具,对现代社会越来越流行。它可以对年、月、 日、周、时、分、秒进行计时。本设计是基于 51 系列的单片机进行的电子万年历设计, 可以显示年月日时分秒和温度信息,具有可调整日期和时间功能。 该电子万年历主要采用 AT89C51 单片机作为主控核心,由 DS1302 时钟芯片提供时钟、 LCD 液晶显示屏显示。AT89C51 单片机是由 ATMEL 公司推出的,功耗小,电压可选用 46V 电压供电;DS1302 时钟芯片是美国 DALLAS 公司推出的低功耗实时时钟芯片,它可以对年、 月、日、星期、时、分、秒进行计时,而且 DS1302 的
2、使用寿命长,误差小;数字显示是 采用的 LCD 液晶显示屏来显示,可以同时显示年、月、日、星期、时、分、秒等信息。软 件方面主要包括日历程序、时间调整程序,显示程序等。程序采用 C 语言编写,所有程序 编写完成后,在 keil 软件中进行调试,确定没有问题后,在 Proteus 软件中嵌入单片机 内进行仿真。 关键词关键词:时钟电路;时钟芯片 DS1302;LCD;AT89C51 Electronic calendarElectronic calendar ABSTRACTABSTRACT Electronic calendar is a very extensive daily timing
3、 tool,it is in modern society is becoming more and more popular. It can be years, months, days, weeks, when, minutes and seconds, timing. The design is based on the 51Series MCU in the design of electronic calendar, Can show date when the minutes and seconds and temperature information, The date and
4、 time of adjustable function. The electronic calendar using AT89C51 microcontroller as the master key core clock from the clock chip DS1302, LCD liquid crystal screen display. Atmel AT89C51 microcontroller is introduced, the power consumption, voltage can be selected 4 6V supply voltage; DS1302 clock chip introduced in the United States with Juan DALLAS small low-power charging current real time clock chip, which can in , Month, day, week, hour,minute, seconds time, and the DS1302s long li