安徽工程大学毕业设计(论文)
基于单片机的多功能电子万年历的设计摘要
随着科技的快速发展,自从观太阳、摆钟到现在电子钟,人类不断研究,不断创新纪录。
本文主要介绍了基于单片机的智能电子万年历的研制,该万年历能够实时显示公历年、月、日、时、分、秒,以及对应的农历日期、24节气、天干地支、闹铃功能,同时还能够实时测取环境温度。
本系统的硬件部分主要由AVR单片机、时钟芯片、温度传感器等部件组成,文中给出了详细的硬件设计实现及相关电路图;
软件部分主要包含公历转农历的算法设计模块、显示模块、时间的读取、温度的检测模块,按键的扫描输入模块等,文中给出了系统的软件程序流程图及各功能模块的软件程序清单,最后介绍了整体系统的设计实现、仿真及调试过程,给出了下一步的改进方案等。关键词:单片机;液晶技术;万年历;时钟芯片
I
f尹超:基于单片机的多功能电子万年历设计
Desig
ofMultifu
ctio
aldigitalPerpetualCale
darBasedo
MCUAbstract
Withthedevelopme
toftech
ologySi
cetheco
ceptofthesu
Baizho
ga
d
owtheelectro
icbellhuma
bei
gsco
ti
uetostudya
dco
sta
ti
ovatio
record。
ThispaperbasedMicroco
trollerDevelopme
tofI
tellige
telectro
iccale
darThecale
darca
displayrealtimei
thecale
daryearmo
thdayhoursmi
utesa
dseco
dsa
dthecorrespo
di
gdateoftheLu
arNewYear24SolarTermsatthesametimealsotorealtimemeasureme
tfromtheambie
ttemperatureI
additio
totheuserthroughthekeyboardi
putyearsofhistoryforthecorrespo
di
gperiodoftheLu
ar
ThesystemhardwarefromsomeofthemajorAVRmicroco
trollera
umberofdigitalco
troldecodertheclockchiptemperaturese
sorsa
dothercompo
e
tsthepapergivesadetaileddesig
a
dimpleme
tatio
ofhardwarea
drelatedcircuit
Softwareco
tai
ssomeofthemajorLu
arcale
dartothealgorithmdesig
moduledy
amicdigitaldisplaymodulestimetoreadtemperaturedetectio
modulePresse
terthesca
i
gmoduleI
thispaperthesystemsoftwaremodulesa
dflowchartofthelistofsoftwareprogramsFi
allytherealizatio
oftheoverallsystemdesig
simulatio
a
ddebuggi
gprocessthe
extstepistheimproveme
tprogrammesKeywords:MCU;crystaltech
ology;Cale
dar;Clockchip
II
f安徽工程大学毕业设计(论文)
目录
引言……………………………………………………………………………………………1第1章绪论……………………………………………………………………………………211课题的背景与意义………………………………………………………………………212数字万年历的现状与发展…………………………………………………r