I摘要随着时间的推移,事物的发展越来越趋向于高科技,单片机的出现,受到了社会各界的广泛关注,这是由于单片机具备丰富的功能。单片机的特点为:尺寸小,价格低,抗干扰强,开发容易等。运用的范围也很广,如检测,仪表,电子,机电等设备的各方面都有不可或缺的作用。多功能电子钟是我们最常见的计时工具之一,用STC89C52单片机研究的多功能电子钟系统,加上必要电路,构成了一个能调整误差的多功能数字电子钟。本文论述了其工作原理,对各个功能模块进行了详细的分析和研究,此外还对系统的工作流程以及具备的各项功能进行详细的介绍,从而判断设计方案正确与否。使用C语言对系统的软件部分进行编程,再用keil进行调试分析,通过PROTEL99SE进行电路模拟,可以让单片机显示年、月、日、时、分、秒、周并具有校准功能和和闹钟提醒功能,除此之外还具有测量环境的温湿度功能。关键词:电子钟;STC89C52;单片机IIAbstractWiththepassageoftime,thedevelopmentofthingstendstobemoreandmorehigh-tech.Theemergenceofsingle-chipcomputershasattractedwidespreadattentionfromallwalksoflife,whichisduetotherichfunctionsofsingle-chipcomputers.ThecharacteristicsofMCUare:smallsize,lowprice,stronganti-interference,easydevelopmentandsoon.Thescopeofapplicationisalsowide,suchasdetection,instrumentation,electronics,mechanicalandelectricalequipmentinallaspectshaveanindispensablerole.Multifunctionalelectronicclockisoneofthemostcommontimingtools.Themulti-functionalelectronicclocksystemstudiedbySTC89C52microcontrollerandthenecessarycircuitconstituteamulti-functionaldigitalclockthatcanadjusterrors.Inthispaper,theworkingprincipleofthesystemisdiscussed,andthefunctionmodulesareanalyzedandstudiedindetail.Inaddition,theworkingflowandfunctionsofthesystemareintroducedindetail,soastojudgewhetherthedesignschemeiscorrectornot.ThesoftwarepartofthesystemisprogrammedbyClanguage,thendebuggedandanalyzedbykeil,andsimulatedbyPROTEL99SE.Themicrocontrollercandisplaytheyear,month,day,hour,minute,second,week,andhasthefunctionofcalibrationandalarmclockreminder.Besides,italsohasthefunctionofmeasuringthetemperatureandhumidityoftheenvironment.Keywords:electronicclock;STC89C52;SinglechipmicrocomputerIIIIV目录目录摘要......................................................................IAbstract.................................................................II目录.....................................................................IV第一章绪论...............................................................71.1课题研究的意义.....................................................71.2设计要求...........................................................71.3系统的关键技术.....................................................71.4设计思路...........................................................8第二章电子钟简介........................................................112.1电子时钟简介.....................................................112.2电子时钟的基本特点................................................112.3电子时钟的原理....................................................11第三章方案论证与设计....................................................133.1单片机芯片的选择方案和论证........................................133.1.1单片机的选择................................................143.1.2显示器的选择................................................153.1.3电源的选择..................................................153.2总体框图设计......................................................15第四章主要元件介绍......