基于单片机的万年历的设计.doc

  1. 1、本文档共60页,可阅读全部内容。
  2. 2、本文档内容版权归属内容提供方,所产生的收益全部归内容提供方所有。如果您对本文有版权争议,可选择认领,认领后既往收益都归您。
  3. 3、本文档由用户上传,本站不保证质量和数量令人满意,可能有诸多瑕疵,付费之前,请仔细先通过免费阅读内容等途径辨别内容交易风险。如存在严重挂羊头卖狗肉之情形,可联系本站下载客服投诉处理。
  4. 文档侵权举报电话:400-050-0739(电话支持时间:9:00-19:00)。
PAGE PAGE 35 PAGE I 基于单片机的万年历的设计 摘 要 单片机也称为单片微计算机。单片机在很多领域上都得到了广泛的应用,其功能也越来越强大。由于单片机操作简便,简单易学,不仅许多大专、本科院校都开设了有关单片机方面的课程,社会上也出现了很多单片机爱好者。 本设计就是根据单片机的原理来进行万年历的设计的。设计的主控制器采用的是一款使用起来较方便的STC89C52RC单片机,采用了带中文字库的12864液晶作为显示器,时间和日历的功能采用DS1302时钟芯片来实现,并采用DS18B20温度传感器来对温度的实时传输。本设计在公历显示完成的基础上添加了农历显示,使万年历的功能更加完善。本设计在进行公历和农历的转换时实现得很困难,但最终还是成功了。随着科技的进步,单片机的功能越来越强大,越来越方便用户的使用。 关键词: 单片机,万年历,DS1302时钟芯片,12864液晶 ABSTRACT Microcontroller is also a single chip microcomputer. It have been used widely in many areas, and its function has become more powerful. Because microcontroller easy in using and learning, many colleges have opened the courses about the Principle and application of microcontroller. There are also many lovers of microcontroller in society. The design of calendar is based on the principle of single-chip microcomputer. The main controller of my design is a microcontroller of STC89C52RC that used conveniently. And the display is 12846LCD that has chinese word stock. The functions of the time and calendar will be realized by using the clock chip of DS1302. The temperature sensor of DS18B20 is used to transmit temperature. On the basis of the display of calendar, I add a function that can display the lunar in my design. And the functions of calendar looks more perfect. It is very hard to realize the conversion of the Gregorian calendar and the lunar calendar by using program.But I complete it at last. With the progress of technology, the microcontroller function has become more powerful and it will be convenient to the users. Key Words: Microcontroller, Calendar, The clock chip of DS1302, 12864Lcd 目 录 TOC \o "1-3" \h \u 16252 1. 绪论 1 24436 1.1 设计目的 1 7390 1.2 发展现状 1 24348 1.3 解决问题 2 29092 2. 硬件系统设计 3 5177 2.1本设计所需的元器件 3 11296 2.2 STC89C52RC单片机 4 31463 2.2.1单片机主要特性 4 19151 2.2.2单片机引脚说明 5 26452 2.3 MAX232电平转换芯片 7 27195 2.4 DS1302时钟芯片 8 8337 2.5 DS18B20温度传感器 10 10016 2.6 12864液晶 11 8876 2.7 独立按键 1

文档评论(0)

相关文档

相关课程推荐