基于单片机篮球赛计时计分器设计
编号
本科生毕业设计
基于单片机篮球赛计时计分器设计
Design of Timing and Scoring of Basketball Competition Based
on Single Chip Computer
学 生 姓 名:
专 业: 学 号: 指 导 教 师: 学 院:
2009 年 06 月
基于单片机篮球赛计时计分器设计
篮球比赛计时计分器是为了解决篮球比赛时计分与计时准确的问题。此装置
利用单片机AT89C51完成了计时和计分的功能。本文详细地介绍了系统硬件与软
件的设计过程,设计由AT89C51编程控制LED七段数码管作显示的球赛计时计分
系统。该系统具有赛程定时设置,赛程时间暂停,及时刷新甲、乙双方的成绩以
及赛后成绩暂存等功能。它具有价格低廉,性能稳定,操作方便并且易于携带等
特点。广泛适合各类学校或者小型团体作为赛程计时计分。
关键词:单片机 篮球赛计时 篮球赛计分
ABSTRACT
Time scoring basketball game is to solve the game of basketball with the time
points when the issue of accuracy. This device is completed using AT89C51 single-
chip timing and scoring functions. This article describes in detail the system hardware
and software design process, design by AT89C51 programming control for LED
Seven-Segment LED display subsystem of the game time. The system is set up with
the schedule from time to time, schedule time to pause, refresh in time A, B, and after
the two sides achieved a temporary success functions. It is inexpensive, stable
performance, easy to operate and easy to carry and so on. A wide range suitable for all
types of schools or small groups as time-points race.
Key words: MCU Basketball Time Basketball Scoreboard
基于单片机篮球赛计时计分器设计
摘 要 ................................................................................................................................................. 1
Abstract ............................................................................................................................................ 1
目 录 ................................................................................................................................................. I
第一章 引言 ................................................................................................................................ - 1 -
1.1 背景知识介绍 ............................................................................................................... - 1 -
1.2 设计意义 ....................................................................................................................... - 1 -
1.3 设计目的 ....................................................................................................................... - 1 -
第二章 系统硬件介绍 ................................................................................................................ - 3 -
2.1 MCS-51单片机简述 ..................................................................................................... - 3 -
2.1.1 单片机AT89C51简介 ...................................................................................... - 3 -
2.1.2 主要特性 ............................................................................................................ - 4 -
2.1.3 管脚说明 ............................................................................................................ - 4 -
2.1.4 芯片擦除 ............................................................................................................ - 6 -
2.1.5 掉电模式 ............................................................................................................ - 6 -
2.1.6 程序储存器的加密 ............................................................................................ - 6 -
2.2 显示器及其接口 ........................................................................................................... - 7 -
2.2.1 显示器介绍 ........................................................................................................ - 7 -
2.2.2 结构与原理 ........................................................................................................ - 7 -
2.2.3 LED显示器显示方式 ........................................................................................ - 8 -
2.3 CD4094芯片介绍 ......................................................................................................... - 8 -
2.4 74LS21芯片介绍 .......................................................................................................... - 9 -
2.5 报警器 ........................................................................................................................... - 9 -
2.5.1 报警器的分类 .................................................................................................. - 10 -
2.5.2 报警器工作原理 .............................................................................................. - 10 -
第三章 硬件电路设计 .............................................................................................................. - 11 -
3.1 系统方案设计 ............................................................................................................. - 11 -
3.1.1 系统构成框图 .................................................................................................. - 11 -