资源描述:
《单片机课程设计(论文)-篮球计时计分器》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、上海电机学院电子设计篮球赛计时计分器摘要单片机自20世纪70年代问世以来,以极其高的性价比受到人们的重视和关注,所以应用很广,发展很快。由于单片机的集成度高,功能强,通用性好,特别是它具有体积小、重量轻、能耗低、价格便宜、可靠性高、抗干扰能力强和使用方便等独特的优点,使单片机迅速得到了推广应用。目前已经成为测量控制应用系统中的优选机种和新电子产品的关键部位,许多用单片机做控制的球赛计时计分系统也应运而生,如:用单片机控制液晶显示(LCD)计时计分器,用单片机控制LED七段显示器计时计分器等。篮球计时计分器以
2、单片机为核心,由计时器、计分器、综合控制器等组成。系统采用模块化设计,主体分为计时显示模块、计分显示模块、定时报警、按键控制键盘模块。每个模块的程序结构简单、任务明确,易于编写、调试和修改。程序可读性好,对程序的修改可局部进行,其他部分可保持不变。编程后利用KeilC51软件来进行编译,再将生成的HEX文件装入芯片中,采用Proteus软件仿真,检验功能是否能够正常实现,随后可用Protel99画出硬件电路图。本设计中系统硬件电路主要由以下几个部分组成:单片机AT89C51、计时电路、计分电路、报警电路和按
3、键开关。本次设计用由AT89C51编程控制LED七段数码管作显示的球赛计时计分系统。该系统具有赛程定时设置、赛程时间暂停、及时刷新甲乙双方的成绩等功能。它具有价格低廉、性能稳定、操作方便并且易于携带等特点,广泛适合各类学校或者小型团体作为赛程计时计分。关键词:单片机,计时,计分,显示器,接口36上海电机学院电子设计AbstractSingle-shipmicrocomputersinceitsinceptioninthe1970s,theextremelyhighcostpeople'sattentiona
4、ndconcern,soaverywideapplication,rapiddevelopment.Becauseofthehighintegrationsingle-chip,powerful,commongood,especiallywhenitissmall,lightweight,lowpowerconsumption,cheap,highreliability,stronganti-interferenceabilityandeaseofuseuniqueadvantages,thechipqui
5、cklyhasbeenwidelyused.Measurementandcontrolapplicationshasbecomethepreferredmodelsystem,andakeycomponentofnewelectronicproducts,manymadewithsingle-chiptimingcontrolofthegamescoringsystemhaveemerged,suchas:withsingle-chipcontrolofliquidcrystaldisplay(LCD)de
6、vicetimingpoints,LEDseven-segmentdisplaywithmicrocontrollertimingcontrolpoints,etc..Basketballtimescoringdevicetothemicrocontrollerasthecore,byatimer,scoringdevices,integratedcontrollerandothercomponents.Themodulardesign,dividedintothemaintimedisplaymodule
7、,displaymodulescoring,timingalarm,keycontrolkeyboardmodule.Eachmoduleoftheprogramstructureissimple,cleartasks,easytowrite,debugandmodify.Readableprogram,theprogramchangescanbepartiallycarriedout,therestcanremainunchanged.AftertheprogrammingsoftwaretouseKei
8、lC51compiler,andthengeneratetheHEXfileintothechip,usingtheProteussoftwaresimulationtotestwhetherthenormalfunctiontoachieve,thendrawthehardwarecircuitdiagramProtel99available.Thedesignofhardwarecircuitmainlyco