资源描述:
《秒表设计论文》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、了解STC89C52芯片的工作原理和工作方式,使用该芯片对LED数码管进行显示控制,实现用单片机的端口控制数码管,显示分、秒,并用按钮实现秒表启动,停止,清零功能,分组计时,蜂鸣器报时,精确到0.01秒。通过木次课程设计要求选用定时器的工作方式,画出使用单片机控制LED数码管显示电路图,并在实验箱实现其硕件电路,并编程完成软件部分,最后调试秒表启动、停止、清零功能,分组计时,蜂鸣器报时。加深对单片机课程的全面认识复习和掌握,对单片机课程的应用进一步的了解。掌握定时器、外部中断的设置和编程原理。通
2、过此次课程设计能够将单片机软硕件结合起来,对程序进行编程,校验。该实验通过单片机的定时器/计数器定时器和计数原理,设计简单的计时器系统,拥有正确的计时、暂停、清零,并同时可以用数码管分组显示,在现实生活中应用广泛,具有现实意义。木设计的成品是在单片机最小系统的基础上增加显示电路和控制电路來完成电子秒表的硕件电路的。电子秒表电路主要由STC89C52单片机最小系统电路、七段数码管动态显示电路和控制电路组成,它能实现四位数码显示和多次计时,能通过控制电路能控制时间的暂停和开始,能够多次计时,查询计时
3、时间。关键字:STC89C52,LED数码管,蜂鸣器,时钟,按键ABSTRACTUnderstandSTC89C52chipprincipleofworkandtheworkmethod,usingthechiptoLEDdigitaldisplaycontrolpipe,realizetheportwithsingle-chipcomputercontroldigitaltube,showminutesandseconds,andbuttonrealizeastopwatchstart,sto
4、p,resetfunction,grouptime,abuzzertelltime,accurateto0.01seconds.Throughthiscoursedesignrequirementschoosetimerwayofworking,paintedusingsingle-chipmicrocomputercontrolLEDdigitaldisplaythecircuitdiagram,andintheboxtorealizeitshardwarecircuitandsoftware
5、programmingtocompletepart,finallycommissioningastopwatchstartandstop,resetfunction,grouptiming,tostrikethebuzzer.Deepenourunderstandingofthesinglechipmicrocomputercurriculumreviewandmasterthecomprehensiveunderstandingoftothesinglechipcourseapplicatio
6、nfurtherunderstanding・Mastertimer,setupandexternalinterruptionprogrammingprinciple.ThroughthiscoursedesigncancombineSCMsoftwareandhardware,theprocedureprogramming,calibration.Thisexperimentthroughthesinglechipmicrocomputertimer/countertimerandcountth
7、eprinciple,designsimpletimersystem,havetherighttiming,pause,reset,andalsousedigitaltubegroupshows,inreallifeapplications,haverealisticmeanings.ThisdesignisfinishedintheSCMsystembasedonthesmallestincreasedisplaycircuitandcontrolcircuittocompleteelectr
8、onicstopwatchhardwarecircuit.ElectronicstopwatchcircuitbysinglechipminimizesystemSTC89C52maincircuit,sevenperiodofdigitaltubedynamicdisplayofcircuitandcontrolcircuit,itcanrealizethefourdigitaldisplayandthemanytime,canthroughthecontrolcircuitcancontro