您好,欢迎访问三七文档
上海电机学院电子设计I上海电机学院电子综合设计课题篮球计时计分器学院(系)电气学院专业电气工程及其自动化年级BG0801学号34姓名马晓欢导师沈任元上海电机学院电子设计II篮球赛计时计分器摘要单片机自20世纪70年代问世以来,以极其高的性价比受到人们的重视和关注,所以应用很广,发展很快。由于单片机的集成度高,功能强,通用性好,特别是它具有体积小、重量轻、能耗低、价格便宜、可靠性高、抗干扰能力强和使用方便等独特的优点,使单片机迅速得到了推广应用。目前已经成为测量控制应用系统中的优选机种和新电子产品的关键部位,许多用单片机做控制的球赛计时计分系统也应运而生,如:用单片机控制液晶显示(LCD)计时计分器,用单片机控制LED七段显示器计时计分器等。篮球计时计分器以单片机为核心,由计时器、计分器、综合控制器等组成。系统采用模块化设计,主体分为计时显示模块、计分显示模块、定时报警、按键控制键盘模块。每个模块的程序结构简单、任务明确,易于编写、调试和修改。程序可读性好,对程序的修改可局部进行,其他部分可保持不变。编程后利用KeilC51软件来进行编译,再将生成的HEX文件装入芯片中,采用Proteus软件仿真,检验功能是否能够正常实现,随后可用Protel99画出硬件电路图。本设计中系统硬件电路主要由以下几个部分组成:单片机AT89C51、计时电路、计分电路、报警电路和按键开关。本次设计用由AT89C51编程控制LED七段数码管作显示的球赛计时计分系统。该系统具有赛程定时设置、赛程时间暂停、及时刷新甲乙双方的成绩等功能。它具有价格低廉、性能稳定、操作方便并且易于携带等特点,广泛适合各类学校或者小型团体作为赛程计时计分。关键词:单片机,计时,计分,显示器,接口上海电机学院电子设计IIIAbstractSingle-shipmicrocomputersinceitsinceptioninthe1970s,theextremelyhighcostpeople'sattentionandconcern,soaverywideapplication,rapiddevelopment.Becauseofthehighintegrationsingle-chip,powerful,commongood,especiallywhenitissmall,lightweight,lowpowerconsumption,cheap,highreliability,stronganti-interferenceabilityandeaseofuseuniqueadvantages,thechipquicklyhasbeenwidelyused.Measurementandcontrolapplicationshasbecomethepreferredmodelsystem,andakeycomponentofnewelectronicproducts,manymadewithsingle-chiptimingcontrolofthegamescoringsystemhaveemerged,suchas:withsingle-chipcontrolofliquidcrystaldisplay(LCD)devicetimingpoints,LEDseven-segmentdisplaywithmicrocontrollertimingcontrolpoints,etc..Basketballtimescoringdevicetothemicrocontrollerasthecore,byatimer,scoringdevices,integratedcontrollerandothercomponents.Themodulardesign,dividedintothemaintimedisplaymodule,displaymodulescoring,timingalarm,keycontrolkeyboardmodule.Eachmoduleoftheprogramstructureissimple,cleartasks,easytowrite,debugandmodify.Readableprogram,theprogramchangescanbepartiallycarriedout,therestcanremainunchanged.AftertheprogrammingsoftwaretouseKeilC51compiler,andthengeneratetheHEXfileintothechip,usingtheProteussoftwaresimulationtotestwhetherthenormalfunctiontoachieve,thendrawthehardwarecircuitdiagramProtel99available.Thedesignofhardwarecircuitmainlyconsistsofthefollowingcomponents:themicrocontrollerAT89C51,timingcircuit,scoringcircuit,alarmcircuitandkeyswitch.ThedesignusedbytheAT89C51programmingcontrolfortheseven-segmentLEDdisplaygametimescoring.Thesystemhasasettimeschedule,scheduletimetopause,refreshandtimelyperformanceofbothpartiesandotherfunctions.Ithaslowprice,stableperformance,easytooperateandeasytocarry,whichiswidelysuitableforalltypesofschoolsorsmallgroupsastheracetimescoring.Keywords:Single-chipMicrocomputer,Timing,scoring,display,interface上海电机学院电子设计IV目录前言................................................................................................................1第1章系统方案说明........................................................................................2§1.1方案选择................................................................................................2§1.1.1篮球赛计时计分器设计的现状......................................................2§1.1.2系统总体设计方案.........................................................................2§1.2系统基本功能介绍.................................................................................3第2章系统硬件电路设计................................................................................5§2.1篮球赛计时计分电路原理图.................................................................5§2.2篮球赛计时计分器电路工作过程.........................................................5§2.3系统硬件电路组成.................................................................................5§2.3.1计时电路.........................................................................................5§2.3.2计分电路.........................................................................................8§2.4器件选择及介绍..................................................................................10§2.4.1AT89C51........................................................................................10第3章软件编程及调试..................................................................................14§3.1总体程序设计......................................................................................14§3.2计时系统程序设计...............................................................................14§3.3计分系统程序设计...............................................................................16§3.4系统调试..............................................................................................16§3.4.1软件调试.......................................................................................16结论..............................................................................................................18参考文献...........................................................................................................19致谢..............................................................................................................20附录..............................................................................................................21上海电机学院电子设计1前言随着单片机在各个领域的广泛应用,许多用单片机做控制的球赛计时计分系统也应运
本文标题:篮球赛计时计分器
链接地址:https://www.777doc.com/doc-6093138 .html