1、I 基于单片机的多功能电子万年历的设计基于单片机的多功能电子万年历的设计 摘摘 要要 随着科技的快速发展,自从观太阳、摆钟到现在电子钟,人类不断研究,不断创新 纪录。 本文主要介绍了基于单片机的智能电子万年历的研制,该万年历能够实时显示公历 年、月、日、时、分、秒,以及对应的农历日期、24节气、天干地支、闹铃功能,同时 还能够实时测取环境温度。 本系统的硬件部分主要由AVR单片机、时钟芯片、温度传感器等部件组成,文中给 出了详细的硬件设计实现及相关电路图; 软件部分主要包含公历转农历的算法设计模块、显示模块、时间的读取、温度的检 测模块,按键的扫描输入模块等,文中给出了系统的软件程序流程图及各
2、功能模块的软 件程序清单,最后介绍了整体系统的设计实现、仿真及调试过程,给出了下一步的改进 方案等。 关键词:关键词:单片机;液晶技术;万年历;时钟芯片 II Design of Multifunctional digital Perpetual Calendar Based on MCU Abstract With the development of technology,Since the concept of the sun, Baizhong, andnow the electronic bell,human beings continue to study and constant
3、 innovation record。 This paper-based Microcontroller Development of Intelligent electronic calendar, The calendar can display real-time in the calendar year, month, day, hours, minutes and seconds,a nd the correspond ing date of the Lunar New Year, 24 Solar Terms,at the same time also to real-time m
4、easurement from the ambient temperature,In addition to the user through the keyboard input years of history,for the correspond ing period of the Lunar. The system hardware from some of the major AVR microcontroller, a number of digital control, decoder, the clock chip,temperature sensors and other components,the paper gives a detailed design and implementation of hardware and related circuit; Software contains some of the major Lunar calendar to the algorithm design module,dynamic digital displ