题目篮球赛计时计分器的设计学生姓名李照明学号1213014066所在学院陕西理工学院专业班级电子1203班指导教师梁芳完成地点物理与电信工程学院实验室2016年6月2日陕西理工学院毕业设计I篮球赛计时计分器的设计作者:李照明(陕西理工学院物理与电信工程学院电子信息工程专业12级3班,陕西723000)指导老师:梁芳[摘要]介绍基于STC89C51单片机的篮球比赛计时计分系统。本次设计的篮球赛计时计分系统通过STC89C51编程控制LED七段数码管来实现计时和计分的功能。通过按键控制电路设置比赛定时时间,暂停时间,立即刷新甲、乙两队的比分,比赛进行到半场结束交换场地时,两队比分能交换显示的位置,比赛结束时,系统可以发出报警的指令以及在赛后及时暂存成绩等功能。该系统价格低廉,性能稳定,携带方便且操作简洁,广泛应用于各类学校或者小型团体作为赛程计时计分。[关键词]单片机;篮球比赛计时计分器;数码管陕西理工学院毕业设计IIDesignoftimingandscoringdeviceforbasketballmatchAuthor:ZhaomingLi(Grade12,Class03,MajorinElectronics&Informationengineering,Physics&TelecommunicationsengineeringDept.,ShaanxiUniversityofTechnology,Hanzhong,723003,Shaanxi)Tutor:FangLiangAbstract:IntroductiontobasketballgamesSTC89C51timescoringsystembasedontheMCU.ThedesignofthebasketballgametimescoringbySTC89C51programmingcontrolLEDseven-segmentLEDtoachievethetimingandscoringfunctions.Buttoncontrolcircuitisprovidedtiminggame,pausetime,immediatelyflushAandBteamsscore,thegameproceedstotheendofthehalf-exchangesites,teamswereabletoexchangepositionisdisplayedattheendofthegame,thesystemcansendoutalarmsinstructionandfunctioninatimelymannerafterthescratchresultsandthelike.Thesystemisinexpensive,stable,easytocarryandsimpleoperation,widelyusedinalltypesofschoolsorsmallgroupsastheracetimingandscoringpoints.KeyWords:MCU;Basketballtimescoringdevice;DigitalTube陕西理工学院毕业设计III目录1引言······································11.1课题背景······························································································································11.2立题的目的及意义···············································································································11.3国内外的研究现状及发展趋势·····························································································11.4本系统主要研究内容···········································································································12系统总体设计··································22.1系统总体设计方案··············································································································22.2系统基本功能介绍··············································································································23系统硬件电路设计································43.1篮球计时计分器电路原理图································································································43.2篮球计时计分器电路工作过程····························································································53.3系统硬件电路组成···············································································································53.3.1计时电路··················································································································53.3.2计分电路··················································································································73.4STC89C51芯片介绍·············································································································83.4.1管脚说明··················································································································94系统仿真···································114.1仿真工具的介绍·················································································································114.1.1Proteus软件介绍··································································································114.1.2Keil软件介绍········································································································114.2系统设计流程图·················································································································12陕西理工学院毕业设计IV4.3Proteus仿真····················································································································135系统调试···································145.1软件调试···························································································································145.2硬件调试···························································································································14结论······································18致谢······································19参考文献····································20附录A英文原文································21附录B中文翻译································26附录C程序源代码·······························29附录D元件清单································39陕西理工学院毕业设计第1页共45页1引言1.1课题背景随着单片机在各个领域的广泛应用,许多用单片机做控制的球赛计时计分系统应运而生,如用单片机控制LCD液晶显示器计时计分器,用单片机控制LED七段显示器计时计分器等。体育比赛计时计分器是对体育比赛过程中所产生的时间、比分等数据进行快速采集记录、加工处理、传递利用的工具。篮球比赛的计时计分器是一种得分类型的工具。它由计时器、计分器等多种电子设备组成。1.2立题的目的及意义虽然篮球比赛中很早就开始研究应用了电子计分器,但通常都是利用模拟电子器件、数字电子器件或是模拟、数字混合组成的,其稳定性和高准确度计分仍存在一些问题。以单片机为核心的篮球比赛计分器,计分准确,具有体积小,重量轻,能耗低,价格便宜,可靠性高,抗干扰能力强和使用方便等独特的优点。除了上述特点外,单片机在功能性,集成度,通用性方面也非常良好,基于这些优势,使得单片机得到了广泛的应用,现在在新电子产品和测量控制应用系统中作为非常重要的部件来来应用,社会中的各个机电行业,相关的测控类的企业,各大电气厂商纷纷将单片机作为核心部件,用来进行产品更新,实现产品的数字化和智能化。本次篮球赛计时计分器的设计便是基于单片机的计时计分系统,它由计时器,计分器,综合控制器和报警器等组成。1.3国内外的研究现状及发展趋势体育比赛计时计分系统是对体育比赛过程中所产生的时间,比分等数据信息进行快速采集记录、加工处理、传递和利用的系统。不同的运动项目,有着不同的比赛规则,体育比赛的计时计分系统分多种类型,包括测量类、评分类、命中类、制胜类和得分类等。作为一种得分类型的计时计分设备,篮球赛比赛的胜负取