基于单片机的LCD电子万年历.rar

  • 需要金币1000 个金币
  • 资料包括:完整论文
  • 转换比率:金钱 X 10=金币数量, 即1元=10金币
  • 论文格式:Word格式(*.doc)
  • 更新时间:2013-12-02
  • 论文字数:11705
  • 当前位置论文阅览室 > 毕业设计 > 单片机论文 >
  • 课题来源:(莉雅)提供原创文章

支付并下载

摘要:由于半导体技术的迅速发展和大规模集成电路的出现,给人类生活带来了很多的变化。特别是单片机技术的应用越来越多的进入我们的生活。其中电子万年历的出现给人们的生活带来了很大方便。

   本论文主要讲的是基于STC89C55单片机的电子万年历。首先描述系统硬件工作原理,然后介绍了本系统所应用的各硬件接口技术和各个接口模块的功能及工作过程。本论文的主导思想是软硬件相结合来进行各功能模块的编写。电子万年历以C语言为主体进行软件设计,增加了程序的可读性和可移植性。系统通过12864液晶输出显示数据,可以显示当前时间、公农历日期、星期、温度,并有以峰鸣器为提示的闹铃功能。

关键词:单片机;电子万年历;公农历;接口模块;C语言

 

ABSTRACT:Along with the technical and quick development in Semiconductor, especially appearing with the large-scale integrated circuit, make the life change much. The MCU technology application already walks into our life with society step..Electron calendar‘s appearing bringing about much convenience for people.

   This design is going to describing the calendar based on STC89C55. System hardware of main body is described first, Follow the function, principle of work and hardware interface  are introduced. The design‘s main ideas is that composes soft and hardware to achieve the design.The calendar is designed with hardware C language as the Realization tool, which increased procedure readability and transplanting. The system shows the output by LCD12864, which can demonstrate the current time, the lunar calendar date, the week, the temperature and the system, can alter people with a small sounder.

Keywords: MCU; Electronic calendar; Lunar calendar; Interface module; C Language.

 

   本研究的主要问题是公农历转换的算法问题和时间可调问题。

   现在我国存在这两种历法,一种是国际通用的公历,一种是我国特有的农历,这两种历法都有各自特有的规律。农历的算法与月球的运行有关,其中影响因素很多。农历的大小月与闰月的计算和天体的运行有关,计算过程复杂,且每年都不一样,因此要实现公农历的转换最方便实用的办法就是用查表法。由于单片机寻址能力有限,不可能采用按日查表这种速度最快的方法。除按日查表法外,我们可以通过按年查表的方法,再通过适当的计算,来确定公历所对应的农历日期。

   时间可调是本研究关键的一步。由于系统是在供电状态才工作,若断电一段时间后再通电,时间不能实时显示。所以通过按键来调时,可达到实时显示时间数据的功能。