1 / 40
文档名称:

基于AT89C51单片机电子万年历设计--毕业设计.doc

格式:doc   页数:40
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

基于AT89C51单片机电子万年历设计--毕业设计.doc

上传人:土豆文档 2012/12/24 文件大小:0 KB

下载得到文件列表

基于AT89C51单片机电子万年历设计--毕业设计.doc

文档介绍

文档介绍:电子万年历设计
摘要:随着当今世界经济的快速发展和信息化时代的来临,各种各样的小型智能家电产品陆续出现在我们的生活中。日历是人们不可或缺的日常用品。但一般日历都为纸制用品,使用不便,寿命不长。电子万年历采用智能电子控制和显示技术,改善了纸制日历的缺陷。本设计以AT89S52单片机为核心,构成单片机控制电路,结合DS1302时钟芯片和24C02FLASH存储器,完成时间的自动调整和掉电保护,全部信息用液晶显示。时间、日期调整由三个按键来实现,并可对闹铃开关进行设置。日历能显示阳历和阴历年、月、日以及星期、时、分、秒。在显示阴历月份时,能标明是否闰月。
关键词:电子万年历 52系列单片机时钟芯片 FLASH存储器液晶显示
The Design of Electronic Calendar
Abstract: With the rapid development of world economy and the ing of information era, many kinds of mini-type intelligent domestic electric appliances appear in our life one after another. Calendars are necessary daily goods in people’s life. But they are generally paper goods with inconvenient use and short life. Electronic calendar adopts the technology of intelligent electronic control and display, and then improves the deficiency of paper calendars. The design adopts the core of AT89S52 single chip puter, which constitutes controlling circuit, and integrates DS1302 clock chip and 24C02FLASH memory, which achieve self-adjusting of time and no power protecting. LCD displays all information. Time and date adjusting is carried out by three keys, which can also set the alarm clock. The calendar can display solar and lunar year, month, day, week, hour, minute, second. When displaying lunar months, leap month is showed.
Keywords: electronic calendar 52 series single chip puter clock chip flash memory LCD
目录
1 引言 1
2 系统概述 1
3 方案选择 1
方案1——基于AT89S52单片机的电子万年历设计 1
方案2——基于DS1302的电子万年历设计 2
4 系统硬件电路的设计 2
系统核心部分---闪电存储型器件AT89S52 3
DS1302时钟电路 5
存储电路 9
液晶显示电路 11
键盘电路 15
闹铃电路 15
5 系统程序的设计 16
阳历程序的设计 16
时间调整程序的设计 16
阴历程序的设计 17
6 测试结果 20
7 结论 20
参考文献 21
致谢 22
附录1:电子万年历设计电路原理图 23
附录2:主程序 24
1 引言
在日新月异的21世纪里,家用电子产品得到了迅速发展。许多家电设备都趋于人性化、智能化,这些电器设备大部分都含有CPU控制器或者是单片机。单片机以其高可靠性、高性价比、低电压、低功耗等一系列优点,近几年得到迅猛发展和大范围推广,广泛应用于工业控制系统、通讯设备、日常消费类产品和玩具等。并且已经深入到工业生产的各个环节以及人民生活的各个方面,如车间流水线控制、自动化系统等、智能型家用电器(冰箱、空调、彩电)等。用单片机来控制的小型家电产品具有便携实用,操作简单的特点。
本文设计的电子万年历属于小型智能家用电子产品。利用单片机进行控制,实时时钟芯片进行记时