1、 电子万年历设计与制作电子万年历设计与制作 The design and development of electronic permanent calendar 摘摘 要要 随着当今世界经济的快速发展和信息化时代的来临, 各种各样的小型智能家电产 品陆续出现在我们的生活当中。日历是人们不可或缺的日常用品。但一般日历都为纸 制用品,使用不便,寿命不长。电子万年历采用智能电子控制和显示技术,改善了纸 制日历的缺陷。本设计以 AT89S52 单片机为核心,构成单片机控制电路,AT89C52 是 一种带 8K 字节闪速可编程可擦除只读存储器(PEROM)的低电压、高性能 CMOS 8 位 为控制器。
2、该器件采用 ATMEL 非易失存储器制造技术制造,与工业标准的 80C51 和 80C52 指令集和输出管脚相兼容。结合 DS1302 时钟芯片和 24C02 FLASH 存储器,完 成时间的自动调整和掉电保护,全部信息用液晶显示。时间、日期调整由三个按键来 实现,并可对闹铃开关进行设置。日历能显示阳历和阴历年、月、日以及星期、时、 分、秒。在显示阴历月份时,能标明是否闰月。 关键词关键词:电子万年历;单片机;时钟芯片;FLASH 存储器;液晶显示 ABSTRACT With the rapid development of world economy and the forthcoming
3、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 peoples life. But they are generally paper goods with inconvenient use and short life. Electronic calendar adopts the technology of intell
4、igent electronic control and display, and then improves the deficiency of paper calendars. The design adopts the core of AT89S52 MCU, which is a low-power, high-performance, CMOS 8-bit microcomputer with 8K bytes of Flash programmable and erasable read only memory memory (PEROM).The device is manufa
5、ctured using Atmels high density nonvolatile memory technology and is compatible with the industry standard 80C51 and 80C52 instruction set and pin out,which constitutes controlling circuit, and integrates DS1302 clock chip and 24C02 FLASH memory, which achieve self-adjusting of time and no power pr
6、otecting. 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. Key Words: electronic calendar; MCU; clock chip; flash memory; LCD 目 录 1 引言 . 1 1.2 方案选择 1 1.2.1 方案 1基于 AT89S52 单片机的电子万年历设计 1 1.2.2 方案 2基于 AT89S52 单片机和 DS1302 的电子万年历设计 . 2 2 系统概述 . 3 3 系统硬件电路的设计 . 4 3.1 系统核心部分单片机 AT89S5