|
论文编号ZXX240 论文字数:12388,页数:48
摘要
目前,随着单片机应用技术的快速发展,以单片机为核心的嵌入式系统已经广泛的应用于各个领域。本文就单片机于计时测量和控制方面的应用,设计了一种由AT89S51单片机控制实现的篮球比赛计时计分系统。
本文主要介绍了利用单片机实现计时计分系统的方法,从软件、硬件两方面着手,对设计、调试等方面进行了论述。篮球比赛中除了有总时间倒计时外,为了加快比赛的节奏,还要求进攻方在24秒内有一次投篮动作,否则视为违例。此设计的篮球比赛计时计分系统,可对比赛总时间和双方每次控球时间计时。该系统采用按键操作,八段数码管显示,显示内容包括24秒进攻计时,比赛时间显示,双方队伍的比分显示。并且比分和时间均可修改。
关键词:单片机, 计时计分系统, 数码管显示
ABSTRACT
At present, with the rapid development of the MCU applications,the embedded systems as the core of microcontroller have been widely used in various fields. Based on SCM in timing measurement and control, I design a kind of basketball game timing and scoring system controlled by AT89S51.
This paper mainly describes the use of MCU timing and scoring system, from the beginning of the designing of software, hardware, discussed both proceed to the design, testing and other aspects. During the basketball games, in order to speed up the game’s rhythm, beside of the countdown of total time, it also needs attacker should be in the act of shooting in 24 seconds. Otherwise will be seen as violations. The basketball game Timing & Scoring can record the time of both the cumulative time and the possession of each team. This system is effective and practical , using button to operate, and eight digital to display. The function of button is in line with the requirements of the basketball games, including 24 seconds of attack time, the total time display, the score display of both teams. In addition the score and time can be modified.
Keywords: MCU , Timing &Scoring, LED Display.
目 录
摘要 I
ABSTRACT II
第1章 引言 1
1.1 背景 1
1.2 设计的意义 2
1.3 研究内容 2
1.3.1 研究的基本内容 2
1.3.2 需解决的主要问题 2
第2章 系统总体方案及器件介绍 4
2.1 系统方案设计 4
2.2 器件选择 4
2.2.1 单片机AT89S51简介 5
2.2.2 主要特性和封装形式 5
2.3 74LS154芯片简介 6
2.4 数码管的工作原理 7
第3章 硬件电路设计 9
3.1系统方案设计 9
3.2 硬件总体设计 9
3.3显示电路部分 11
3.4键盘控制电路部分 11
3.5 复位电路 13
3.6 振荡电路模块 14
3.7 报警电路 14
3.8 系统电源电路 15
第4章 软件编程及调试 17
4.1 编程设置及总流程框图 17
4.2 主要模块说明 17
4.2.1 初始化程序 17
4.2.2中断函数 18
4.2.3 12分倒计时模块 19
4.2.4 键盘扫描程序 20
4.3 软件仿真调试 22
4.3.1 实验平台 22
4.3.2 实验步骤 23
4.4 硬件调试 25
4.5 注意事项 25
第5章 结束语 27
致 谢 28
参考文献 29
附录I 源代码 30
附录II 实物图 45 |
|