- 1、本文档共44页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
湖北文理学院
毕业设计(论文)正文
题 目 基于AT89C51的篮球比赛计时记分器的设计 专 业 机械设计制造及其自动化 班 级 机制0812班 姓 名 余钟庆 学 号 指导教师
职 称 刘红梅
讲师
2012年 5月 20日
基于单片机的篮球赛计时计分器设计
摘要:本设计是基于AT89C51单片机的篮球计时计分器,利用7段共阴LED作为显示器件。在此设计中共接入了1个四位一体7段共阴LED显示器,2个三位一体7段共阴LED显示器,前者用来记录赛程时间,其中2位用于显示分钟,2位用于显示秒钟,后者用于记录甲乙队的分数,每队2个LED显示器显示范围可达到0~99分。赛程计时采用倒计时方式,比赛开始时启动计时,直至计时到为止。
为了配合计时器和计分器校正调整时间和比分,我们特定在本设计中设立了7个按键,用于设置,调整时间,启动,调整分数和暂停等功能。采用单片机控制是这个系统按键操作使用简洁,LED显示,安装方便。
The Design of Basketball Timing and Scoring Device Based on MCU
Abstract:The design is based on AT89C51 microcontroller timing basketball scoring device, the use of 7 as a common cathode LED display.In this design, the CPC has an access to one of four 7-segment common cathode LED display, 2 Trinity 7 common cathode LED displays, the former is used to record the race of time, of which 2 used to display the minutes, 2 seconds to displayminutes, which is used to record scores and B teams, each team two LED display shows the range of 0 to 99 points can be achieved.Schedule time with the countdown mode, the game starts the beginning of time until the timer to 0 so far. To cope with calibration timer and scoring device to adjust the time and score, we design a specific set in the 7 buttons, for setting, adjusting the time, start, adjust the score and pause functions.The system uses single chip control is to use simple button operation, LED display, easy to install.
Key words: Single Chip Microcomputer , led nixie tube ,keeping scores and the time
目 录
1 概述 4
1.1 背景知识介绍 4
1.2 设计内容 4
1.3计任务和要求 5
1.4 设计意义 5
2系统总体方案及硬件设计 6
2.1 系统总体方案设计 6
2.2 硬件电路设计 7
2.2.1时钟电路模块 8
2.2.2复位电路模块 8
2.2.3显示模块 9
2.2.4报警模块 10
2.2.5总硬件电路设计 11
3软件设计 12
3.1 软件总体设计方案 12
3.2 软件设计具体过程 13
3.2.1延时模块设计 14
3.2.2数码管动态刷新显示程序 14
3.2.3 T0中断程序 16
3.2.4加分子程序 17
3.2.5减分子程序 18
3.2.6调整时间子程序 18
3.2.7半场交换比分子程序 21
3.2.8比赛暂停子程序 21
3.2.9中场指示灯程序 22
3.2.10 主程序 24
4 PROTEUS仿真 26
4.1 PROTEUS简介 26
4.2仿真过程 26
5总结 28
【参考文献】 29
附录 30
致谢 42
1概述
1.1 背景知识介绍
体育比赛计时计分系统是对体育比赛过程中所产生的时间,比分等数据进行快速采
文档评论(0)