资源描述:
《毕业设计:篮球赛计时计分器设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、河南科技大学本科毕业设计(论文)篮球赛计时计分器摘要单片机自20世纪70年代问世以来,以极其高的性价比受到人们的重视和关注,所以应用很广,发展很快。由于单片机的集成度高,功能强,通用性好,特别是它具有体积小、重量轻、能耗低、价格便宜、可靠性高、抗干扰能力强和使用方便等独特的优点,使单片机迅速得到了推广应用。目前已经成为测量控制应用系统中的优选机种和新电子产品的关键部位,许多用单片机做控制的球赛计时计分系统也应运而生,如:用单片机控制液晶显示(LCD)计时计分器,用单片机控制LED七段显示器计时计分器等。篮球计时计分器以单片
2、机为核心,由计时器、计分器、综合控制器等组成。系统采用模块化设计,主体分为计时显示模块、计分显示模块、定时报警、按键控制键盘模块。每个模块的程序结构简单、任务明确,易于编写、调试和修改。程序可读性好,对程序的修改可局部进行,其他部分可保持不变。编程后利用KeilC51软件来进行编译,再将生成的HEX文件装入芯片中,采用Proteus软件仿真,检验功能是否能够正常实现,随后可用Protel99画出硬件电路图。本设计中系统硬件电路主要由以下几个部分组成:单片机AT89C51、计时电路、计分电路、报警电路和按键开关。本次设计用由
3、AT89C51编程控制LED七段数码管作显示的球赛计时计分系统。该系统具有赛程定时设置、赛程时间暂停、及时刷新甲乙双方的成绩以及赛后成绩暂存等功能。它具有价格低廉、性能稳定、操作方便并且易于携带等特点,广泛适合各类学校或者小型团体作为赛程计时计分。关键词:单片机,计时,计分,显示器,接口51河南科技大学本科毕业设计(论文)TIMEBASKETBALLSCORINGDEVICEABSTRACTSincetheinceptionthe20thcentury70years,single-chipmicrocomputer(SCM
4、)causespeople’sattentionandconcernbecauseofextremelycost-effective,soitsapplicationisverybroadandrapiddeveloping.SCMhasmanyadvantages,suchassmallsize,lightweight,anti-interferenceability,lessdemandingontheenvironment,lowcost,highreliability,goodflexibility,develop
5、ingmoreeasilyandsoon.Now,ithasbecomethepreferredmodelinmeasurementcontrolsystemandakeycomponentofnewelectronicproducts.ManytimescoringmatchesusingSCMhasalsocomeintobeing,suchasthetimerwithliquidcrystaldisplay(LCD),thetimerwithLEDseven-segmentdisplay,etc.Timebasket
6、ballscoringdeviceasthecoreofSCMincludesthetimer,scoringdevices,integratedcontrollerandothercomponents.Thissystemisusedofthemodulardesign,inwhichthemaindisplaymoduleisdividedintotimedisplaymodule,scoringdisplaymodule,timingalarmmodule,andkeycontrolkeyboardmodule.Pr
7、ogramstructureofeachmoduleissimpleandclear.Soitiseasytowrite,debugandmodify.Becausetheprogramisreadable,partofprogramcanbemodifiedandotherpartsmayremainunchanged.Afterprogramming,firstlywecanuseKeilC51softwaretocompileandthengeneratetheHEXfileintothechip.Secondlyw
8、eusetheProteussoftwaresimulationtotestwhetherthenormalfunctiontoachieve.FinallywedrawthehardwarecircuitdiagramwithProtel99.Thedesignofhardwarecircuitmai