1 / 20
文档名称:

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

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

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

分享

预览

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

上传人:qujim2013 2014/3/24 文件大小:0 KB

下载得到文件列表

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

文档介绍

文档介绍:目录
摘要 I
ABSTRACT II
1 引言 1
2 功能要求 1
3 方案论证与设计 1
控制部分的方案选择 1
测温部分的方案选择 1
显示部分的方案选择 2
4 系统硬件电路设计 2
主控器 AT89C52 2
时钟电路 DS1302 3
. DS1302的性能特性 3
DS1302数据操作原理 3
测温电路的设计 5
温度传感器工作原理 5
DS18B20与单片机的接口电路 8
显示电路的设计 9
键盘接口的设计 10
5 系统程序的设计 10
阳历程序设计 10
时间调整程序设计 11
温度程序设计 12
主程序 12
读出温度子程序 12
温度转换命令子程序 12
计算温度子程序 13
13
6 调试及性能分析 13
调试步骤 14
性能分析 14
7 总结 14
参考文献 14
致谢 14
基于51单片机的电子万年历的设计
摘要
电子万年历是单片机系统的一个应用,由硬件和软件相配合使用。硬件由主控器、时钟电路、温度检测电路、显示电路、键盘接口5个模块组成。主控模块用AT89C52、时钟电路用时钟芯片DS1302、显示模块用LED数码管、温度检测采用DS18B20温度传感器、键盘接口电路用普通按键接上拉电阻完成;软件利用C语言编程实现单片机程序控制。单片机通过时钟芯片DS1302获取时间数据,DS18B20采集温度信号送该给单片机处理,单片机再把时间数据和温度数据送给74LS154译码,然后通过三极管C9015放大驱动LED数码管显示阳历年、月、日、时、秒、闹钟、星期、温度。
关键词电子万年历;单片机;温度传感器;时钟;数码显示
Abstract
Electronic perpetual calendar which is an application of the single-chip processor system, is utilized bining hardware and software. And Hardware posed of five modules: Main control unit, clock circuit, temperature test circuit, display circuit, keyboard interface. Main control board adopts AT89S52, clock circuit adopts the DS1302 clock chip, display module adopts the LED digital tube, and temperature test adopts the DS18B20 temperature sensor, keyboard interface circuit pleted by connecting ordinary button with pull-up resistor. Software takes advantage of C to program, so as to realize the programmed control of single-chip processor. Single-chip processor gets the time data through using the DS1302 clock chip. The DS18B20 gathers temperature signals and transmits them to single-chip processor. Then, single-chip processor transmits the time data and the temperature data to the 74LS154 decoder. Lastly, the LED displays solar calendar year, year, month, day, hour, minute, second, alarm clock, week and temperature with being enlarged and driven by the C9015 triode.
Keywords: Electronic perpetual calendar; single-chip processor; temperatu