1、i 电子万年历的设计电子万年历的设计 摘要:摘要:电子万年历是一种非常广泛日常计时工具,对现代社会越来越流行。它 可以对年、月、日、星期、时、分、秒进行计时,还具有闰年补偿等多种功 能。本系统选用DALLAS公司生产的日历时钟芯片DS1302来作为实时时钟芯片, 为本系统提供详细的年、月、日、星期和小时、分钟等时间信息。数字万年历 采用直观数字显示,可以同时显示年、月、日、星期、时、分、秒和温度等信 息,还具有定时和时间校准等功能。该电路采用STC89C52RC单片机作为核心, 功耗小,电压可选用3.35.5V电压供电。 本系统硬件部分由STC89C52RC单片机、DS1302时钟芯片、106
2、2液晶显示 器、DS18B20温度测量、键盘、语音系统等部分构成。软件部分在keil环境下用 C51语言编写,包括时间设置、时间显示、定时设置、定时闹钟、温度显示。 关键词:关键词:时钟芯片 DS1302;温度采集 DS18B20;单片机 STC89C52RC;液晶显示 1602;ISD4004 语音芯片 ii Design Of the Electronic Perpetual Calendar Abstract :Electronic calendar is a very extensive daily timing tool, to the modern society more and
3、 more popular. It can be years, months, days, weeks, hours, minutes and seconds for time, also has a variety of functions such as a leap year compensation. The system uses DALLAS company calendar clock chip DS1302as a real-time clock chip, the system provides details of the year, month, day, week, h
4、our, minute, and time information. Digital calendar using visual digital display, can display the year, month, day, week, time, minutes, seconds and temperature information, also has the timing and time alignment functions. The circuit uses STC89C52RC MCU as the core, small power consumption, voltag
5、e can be3.3 5.5V voltage power supply. The system hardware consists of STC89C52RC, DS1302MCU clock chip,1062liquid crystal display, temperature measurement, DS18B20keyboard, voice system components. Software component in the Keil environment using the C51 language, including time, time display, time
6、 setting, timing alarm clock, temperature display. Key words:Clock chip DS1302; the temperature acquisition of DS18B20; the single-chip of STC89C52RC ; liquid crystal display of 1602; sound chip of ISD4004 iii 目目 录录 1 绪论 2 1.1 课题研究意义 . 2 1.2 万年历研究现状 2 1.3 设计的内容及功能. 2 2 电子万年历设计方案论证. 3 2.1 框架和结构. 3 2.2 万年历时间实现方案选择. 3 2.3 显示方案选择 . 4 2.4 温度检测方案选择. 4 2.5 键盘输入方案选择. 5 2.6 语音功能实现方案选择 5 3 系统硬件设计 6 3.1 主控模块设计 . 6 3.2 串口电路设计 . 12 3.3 液晶显示模块设计. 13 3.4 时钟控制模块介绍. 19 3.5 按键输入模块的设计 . 36 3.6 温度检测设计 . 4