1、 I 摘 要 篮球比赛计时计分器是为了解决篮球比赛时计分与计时准确的问题。 此装置 利用单片机 AT89C51 完成了计时和计分的功能。本文详细地介绍了系统硬件与 软件的设计过程,采用该装置可根据实际情况进行比分修改和时间的准确显示, 具有低功耗,可靠性,安全性以及低成本等特点。 关键词关键词:单片机,篮球赛计时,篮球赛计分 ABSTRACT II Abstract Along with the technical and quick development in electronics, appear with the large-scale integrated circuit espec
2、ially, give mankind the life brought the changes of the root. The coal gas reports to the police the system publishes, scribing the electronics measure the instrument walked into the arithmetic figure turns the ages its function is strong, the function is well-found, technique forerunner, will quick
3、ly technical development in science. In the hardware aspect, except the monolithic outside the aircraft, uses ten seven section of led nixie tube s to carry on the demonstration, LED uses is the motionless scanning demonstration, uses the 74LS21 chip to carry on the actuation. With the coal of compi
4、lation, we can get the functions of this design such as keeping scores, recording the time, and that we can alternate with the scores of both teams. Its practical and simple to accomplish. Key words: Single Chip Microcomputer ,led nixie tube ,keeping scores and the time 目 录 III 目 录 第 1 章 引言 1 1.1 背景
5、知识介绍 1 1.2 设计意义 .2 1.3 设计目的 .2 第 2 章 系统硬件介绍 3 2.1 MCS-51 单片机简述 3 2.1.1 单片机 AT89C51 简介 3 2.1.2 主要特性 .6 2.1.3 管脚说明 .6 2.1.4 芯片擦除 .8 2.1.5 空闲节电模式 .8 2.1.6 掉电模式 .9 2.1.7 程序储存器的加密 10 2.1.8 AT89C51 的极限参数 .10 2.2 显示器及其接口 11 2.2.1 显示器介绍 .11 2.2.2 结构与原理 .12 2.2.3 LED 显示器显示方式 .14 2.2.4 LED 显示器接口实例 .16 2.3 CD4
6、511 芯片介绍 18 2.4 CD4094 芯片介绍 20 2.5 74LS21 芯片介绍 21 2.6 报警器 22 2.6.1 报警器的分类 .22 2.6.2 报警器工作原理 .22 第 3 章 硬件电路设计 .23 3.1 Protel99 软件介绍 23 目 录 IV 3.1.1 关于 EDA 技术与 Protel99 简要介绍 .23 3.1.2 Protel99 界面及功能简述 24 3.1.3 Protel99 设计电路步骤 25 3.2 系统方案设计 .26 3.2.1 系统构成框图 .26 3.2.2 器件选择 .27 3.2.3 基本功能介绍 .27 3.3 硬件总体设计 .29 3.4 计时电路部分 31 3.4.1.振荡电路 31 3.4.2 计时电路原理 .32 3.4.3 计分电路原理图 .33 3.4.4 计时电路的工作原理 34 3.5 计分电路部分 .34 3.5.1 串行接口工作原理 35 3.5.2 比分校正控制电路 .36 3.5.3 计分电路原理图 .37 3.5.4 计分电路的工作原理 38 3.6 球赛计时计分器的工作过程 .39