如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
王习军:基于单片机的万年历设计安徽工程大学毕业设计(论文)----基于单片机的万年历设计摘要进入二十一世纪,电子技术无处不在,电子产品给我们生活带来便利的同时也改变着我们的世界。基于单片机技术的电子产品已经遍及社会的每个角落。电子万年历以其体积小,携带方便、实用,美观等优势一直占领着广阔的市场,同时也给人们的生活带来诸多方便。本设计由硬件设计和软件设计两大部分组成。硬件设计上,以AT89C51单片机为控制核心,通过DS1302与DS18B20通信获得实时时间和实时环境温度,并将得到的数据通过1602液晶显示出来,同时通过相应的按键调整相应的值。硬件部分详细介绍了本设计所应用的各硬件接口技术和各个接口模块的功能。软件设计上,本设计采用C语言进行软件设计,在硬件的基础上来进行各功能软件模块的编写。同时软件的设计采用模块化结构,使程序设计的逻辑关系更加简单易懂。由于该设计用液晶为载体来显示,所以具有良好的人机交互界面与友好的操作,可以显示时间、日期、星期、温度并具有闹铃功能。关键词:AT89C51单片机;万年历;液晶技术;DS1302;DS18B20DesignofMultifunctionaldigitalPerpetualCalendarBasedonMCUAbstractEntersforthe21stcentury,theelectronictechnologyisubiquitous,theelectronicproductsliveforusbringtheconvenienceatthesametimealsotochangeourworld.Alreadyspreadsocialbasedonthemonolithicintegratedcircuittechnologyelectronicproductseachquoin.Theelectronictenthousandcalendarsaresmallbyitsvolume,thecarryhomeisconvenient,ispractical,artisticandsoonthesuperiorityareseizingthebroadmarketcontinuously,simultaneouslyalsogivespeople'slifetobringconvenientlymany.Thisdesigndesignsmajorparttwobythehardwaredesignandthesoftwareiscomposed.Thehardwaredesigns,takeAT89C51monolithicintegratedcircuitasthecontrolcore,obtainsthereal-timetimeandthereal-timeambienttemperaturethroughDS1302andtheDS18B20correspondence,andwillobtaindatathrough1602liquidcrystaldisplays,simultaneouslythroughcorrespondingpressedkeyadjustmentcorrespondingvalue.Thehardwarepartintroducedindetailthisdesignappliesvarioushardwareconnectiontechnologyandeachinterfacemodulefunction.Thesoftwaredesigns,thisdesignusestheClanguagetocarryonthesoftwaredesign,carriesonvariousfunctionssoftwaremoduleinthehardwarefoundationthecompilation.Simultaneouslythesoftwaredesignusesthemodularstructure,makestheprogrammingthelogicalrelationstobesimplereasytounderstand.Becausethisdesigndemonstratedwiththeliquidcrystalforthecarrier,thereforehasthegoodman-machineinteractioncontactsurfaceandthefriendlyoperation,maydemonstratethetime,thedate,theweek,thetemperatureandhavethenoisybellfunction.