编号 基于单片机篮球赛计时计分器设计 Design of Timing and Scoring of petition Based on Single puter 学生姓名: 专业: 学号: 指导教师: 学院:
摘要 篮球比赛计时计分器是为了解决篮球比赛时计分与计时准确的问题。此装置利用单片机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 pleted 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 ess 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 - 第二章系统硬件介绍 - 3 - MCS-51单片机简述 - 3 - 单片机AT89C51简介 - 3 - 主要特性 - 4 - 管脚说明 - 4 - 芯片擦除 - 6 - 掉电模式 - 6 - 程序储存器的加密 - 6 - 显示器及其接口 - 7 - 显示器介绍 - 7 - 结构与原理 - 7 - LED显示器显示方式 - 8 - CD4094芯片介绍 - 8 - 74LS21芯片介绍 - 9 - 报警器 - 9 - 报警器的分类 - 10 - 报警器工作原理 - 10 - 第三章硬件电路设计 - 11 - 系统方案设计 - 11 - 系统构成框图 - 11 - 器件选择 - 12 - 硬件总体设计 - 12 - 计时电路部分 - 12 - 振荡电路 - 12 - 计时电路的工作原理 - 15 - 计分电路部分 - 16 - 串行接口工作原理 - 16 - 计分电路原理图 - 16 - 计分电路的工作原理 - 17 - 第四章篮球计时计分器软件设计 - 19 - 球赛计时计分器的工作过程 - 19 - 篮球计时计分器编程设计 - 19 - 主要模块说明 - 20 - 计时部分模块流程 - 20 - 记分部分模块流程 - 21 - 篮球计时计分器程序源代码 - 21 - 结论 - 31 - 参考文献 - 32 - 致谢 - 33 - 第一章引言