您好,欢迎来到佳博论文网!

基于单片机的篮球比赛计时计分系统的设计与制作

论文编号:DZXX240 论文字数: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

ABSTRACTII

第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

基于单片机的篮球比赛计时计分系统的设计与制作......