文档详情

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

发布:2017-09-17约1.21万字共20页下载文档
文本预览下载声明
目 录 摘 要 I Abstract II 1 引言 1 2 功能要求 1 3 方案论证与设计 1 3.1 控制部分的方案选择 1 3.2 测温部分的方案选择 1 3.3 显示部分的方案选择 2 4 系统硬件电路设计 2 4.1 主控器 AT89C52 2 4.2 时钟电路 DS1302 3 4.2.1. DS1302的性能特性 3 4.2.2 DS1302数据操作原理 3 4.3 测温电路的设计 5 4.3.1 温度传感器工作原理 5 4.3.2 DS18B20与单片机的接口电路 8 4.4 显示电路的设计 9 4.5 键盘接口的设计 10 5 系统程序的设计 10 5.1 阳历程序设计 10 5.2 时间调整程序设计 11 5.3 温度程序设计 12 5.3.1 主程序 12 5.3.2 读出温度子程序 12 5.3.3 温度转换命令子程序 12 5.3.4 计算温度子程序 13 5.3.5显示数据刷新子程序 13 6 调试及性能分析 13 6.1 调试步骤 14 6.2 性能分析 14 7 总结 14 参考文献 14 致 谢 14 基于51单片机的电子万年历的设计 电子信息科学与技术专业2002级 马培 指导教师 郭仿军 摘 要 电子万年历是单片机系统的应用由硬件和软件相配合使用时钟芯片DS130温度检测采用DS18B20温度传感器利用单片机程序控制单片机通过时钟芯片DS1302获取时间数据DS18B20采集温度信号送该给单片机处理,单片机再把时间数据和温度数据送 Abstract Electronic perpetual calendar which is an application of the single-chip processor system, is utilized by combining hardware and software. And Hardware is composed 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 is completed 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; temperature sensor; clock; digital display 1 引言 随着微电子技术和超大规模集成电路技术的不断发展,家用电子产品不但种类日益丰富,而且变得更加经济实用,单片微型计算机体积小、性价比高、功能强、可靠性高等独有的特点,在各个领域得到了广泛的应用。电子万年历是一种应用非常广泛的日常计时工具,数字显示
显示全部
相似文档