文档详情

基于单片机的测温万年历毕业论文.doc

发布:2017-09-17约2.22万字共49页下载文档
文本预览下载声明
目 录 1 绪论 1 1.1 课题研究的背景 1 1.2 课题的研究目的与意义 1 1.3 课题研究的主要内容 1 2 系统功能要求与总体设计 3 2.1 系统功能要求 3 2.2 系统方案选择 3 2.3系统总体设计 4 3 系统硬件设计 6 3.1单片机主控模块的设计 6 3.1.1 AT89S52功能特性 6 3.1.2 AT89S52引脚结构介绍 6 3.1.3 单片机最小系统 9 3.2 时钟电路模块的设计 10 3.2.1 DS1302简介 10 3.2.2 DS1302与单片机接口电路 11 3.3 温度采集模块的设计 13 3.3.1 DS18B20简介 13 3.3.2 DS18B20与单片机接口电路 14 3.4 键盘显示模块的设计 15 3.4.1 按键电路的设计 15 3.4.2 显示电路的设计 16 3.5 电源电路设计 18 4 系统软件设计 20 4.1 主程序设计 20 4.2 时钟子程序的设计 21 4.3 测温子程序 22 4.4 显示子程序 23 5 系统仿真与测试 24 5.1 Proteus ISIS简介 24 5.1.1 启动Proteus 24 5.1.2 Proteus运行界面 25 5.1.3 Proteus功能仿真 25 5.2 系统仿真结果 26 5.3 系统测试 28 结束语 30 致 谢 31 参考文献 32 附 录 33 附录一:整机原理图 33 附录二:整机PCB图 34 附录三:部分源程序 35 电子万年历的设计与实现 摘 要 本文介绍一种基于AT89S52单片机的带温度显示的数字万年历的,系统包括单片机最小系统模块、时钟计时模块、温度采集模块、键盘显示模块。时钟模块采用高性能时钟芯片DS1302,温度采集模块采用DS18B20集成温度传感器,显示模块以LCD1602液晶屏作为显示。能够实现年、月、日、时、分、秒、星期、温度同时显示能区分平年、闰年和月份的大小具有电路设计新颖、功耗低、体积小、显示清晰等优点。 关键字: AT89S52/万年历DS1302/DS18B20 The design and implementation of the electronic calendar ABSTARCT This paper introduces a AT89S52 SCM with temperature of based on the digital display calendar design, system including single chip minimize system module, clock module, temperature acquisition module, keyboard display module. The clock module by high performance clock chip DS1302, temperature gathering module USES integrated temperature sensor DS18B20, display module to LCD1602 as display LCD screen. To realize the date and time, minutes and seconds, week, temperature shows at the same time, and can distinguish between Ping Nian, leap year and the size of the month with power lost protection, on the hour and the alarm clock time etc. Function. The system has a circuit design novel, low power consumption, small volume, showed clear advantages. Key word: AT89S52, calendar, DS1302, DS18B20 1 绪论 1.1 课题研究的背景 二十一世纪的今天,最具代表性的计时产品就是电子万年历,它是近代世界钟表业界的第三次革命。第一次是摆和摆轮游丝的发明,相对稳定的机械振荡频率源使钟表的走时差从分级缩小到秒级,代表性的产品就是带有摆或摆轮游丝的机械钟或表。第二次革命是石英晶体振荡器的应用,发明了走时精度更高的石英电子钟表,使钟表的工作时差从分级缩小到秒级。第三次革命就是单片机数码计时技术的应用(电子万年历),使计时产品的走时日差从分级缩小到1/600万秒,从原有传统指针计时的方式发展为人们
显示全部
相似文档