1、I 原创性声明 本人呈交的 毕业 论文,是在导师的指导下,独立进行研究工作所取得的成果,所有数据、图片资料真实可靠。尽我所知,除文中已经注明引用的内容外,本 毕业 论文的研究成果不包含他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的其他个人和集体,均已在文中以明确的方式标明。本 毕业 论文的知识产权归属于培养单位。 本人签名: 日期: 摘 要 随着社会的发展,信息量的不断提升以前对信息交换的要求提高,电子万年历的发展以及投入市场变得非常有必要。本 设计 是基于 51 单片机并 模拟 日常所用的日历 , 而 51 系列单片机是各单片机中最为典型和最有代表性的一种。 通过本次设计,学习和巩
2、固了单片机指令编程的相关知识,熟悉单片机各部件的组成及其功能。 本设计将制作一种基于单片机控制的带实时温度显示、具有定时功能的电子万年历。传统的电子日历大都体积大,功耗大,显示不准确等特点。为了缩小体积,减小功耗,使其变得小巧灵敏,本设计加入了时钟芯片 DS1302,可对时间进行准确记时,同时可设置定时时间,实现定时功能。另外本设计具有显示实时温度的功能。传统的 温度传感器系统大都采用放大、调理、 A/D 转换,转换后的数字信号送入计算机处理,处理电路复杂、可靠性相对较差,占用计算机的资源比较多。本设计将采用 DS18B20 一线制数字温度传感器,可将温度信号直接转换成数字信号送给微处理器,电
3、路简单,成本低,实现了时间温度同时显示的效果。最后,温度和时间都将通过 12864 液晶显示器进行显示。测试表明系统达到了设计要求的各项功能,各部分工作正常。 关键词 : 时钟 温度检测 单片机 温度II ABSTRACT With the development of the society, the amount of information is improving the requirements of the information exchange. the development of the electronic calendar and the investment mark
4、et become very necessary. This design is based on 51 single-chip microcomputer and simulation used in the daily calendar, and 51 series microcontroller is the MCU in the most typical and most representative one. Through this design, learning and consolidate the single chip microcomputer instruction
5、programming knowledge, be familiar with composition and function of the microcontroller parts. This design creates an electronic calendar with real-time temperature display and timing function based on single chip control. Most of traditional calendars are characterized by large size, high power con
6、sumption and inaccurate display. In order to reduce volume and power consumption and make calendars become small and exquisite, the design adds a clock chip DS1302, which can accurately record the time and set a regular time to achieve timing function. In addition, this design displays real-time tem
7、perature function. Traditional temperature sensor system is mostly amplified, recuperated and A / D converted. The converted digital signal is input the computer to be processed, but the processing circuit is complicated with relatively poor reliability and occupies more resources of the computer. T
8、his design uses the DS18B20 first-line system digital temperature sensor to directly convert the temperature signal into digital signal and send it the microprocessor, whose circuit is simple and low cost, achieving the displayed effect of time and temperature simultaneously. Finally, the temperature and time will be displayed through the 12864 liquid crystal display. The test indicates that the system has reached various functions of the design requirements and each part operates smoothly. Keywords: clock temperature-detection SCM temperature