资源描述:
《基于单片机的时钟电路设计.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、基于单片机的时钟电路的设计ThedesignofclockcircuitbasedonMCU基于单片机的时钟电路的设计摘要:文章主要采用AT89c51单片机最小化应用设计,LED显示采用动态扫描方式实现,P0口输出段码数据,P1.0-P1.2口作扫描输出,P0.1—P0.4口接按钮开关S1,S2,S3,S4,S5,rest接S6复位按键。P0.0控制秒的调整,每按一次加1秒;P0.1控制分的调整,每按一次加1分;P0.2控制时的调整,每按一次加1个小时。为了提供LED数码管的驱动电流,用74ls595作电源驱动输出。实际设计按情况采用11.0592MHz的晶振。电子时钟电路采用
2、12h记时方式,时间用8位数码管显示。该电路采用AT89c51单片机,使用5V电池供电。关键词:单片机;抖动;数码管;中断;低功耗;时钟ThedesignofclockcircuitbasedonMCUAbstract:Thisarticlemainlyusesat98c51monolithicintegratedcircuitminimumapplicationdesign,LEDdemonstratedthatselectsthedynamicscanningmethodtorealize,theP0mouthoutputsectioncodedata,theP1.0-P1
3、.2mouthmakesthescanout,theP0.1-P0.4mouthmeetspush-buttonswitchS1,S2,S3,S4,S5,rest.P0.0controlofthesecondadjustment,andeachtimeonesecond;P0.1controlpointsofadjustment,eachtimeat1pm;P0.2controloftheadjustment,andeachtimeonehour.InordertoprovidetheLEDnixietubethedrivecurrent,9012makesthepowerso
4、urcewiththetriodetoactuatetheoutput.Theactualdesignuses11.0592MHzaccordingtothesituationthecrystaloscillator.Theelectronclockcircuitselectsthe24htimemethod,thetimedemonstratedwith8nixietubes.Thiselectriccircuitusesat98c51monolithicintegratedcircuit,usesthe5Vbatterypowersupply.Keywords:SCM;ji
5、tter;digitalcontrol;interrupt;lowpowerconsumption;theclock目录1引言..................................................................................................................................12以AT89C51单片机为核心的时钟电路结构和工作原理................................................22.1AT89C51的结构组成及引脚功能..
6、.....................................................................22.1.1AT89C51的结构组成.......................................................................................22.1.2AT89C51的引脚功能.......................................................................................32.2时钟电路工作原理及
7、原理图..............................................................................72.4时钟电路的消除震荡设计..................................................................................122.5时钟电路的误差分析及功耗.....................................................