基于单片机的篮球计时计分器设计_毕业设计论文
I毕 业 论 文(设 计)题 目 基于单片机的篮球计时记分器设计 II内 容 提 要随着单片机在各个领域的广泛应用,许多用单片机作控制的球赛计时计分器也应运而生,如用单片机控制 LCD 液晶显示器的计时计分器,用单片机控制 LED 七段显示器的计时计分器等。本设计以基本篮球规则为依据,可对篮球比赛实现实时控制,解决篮球比赛时计分与计时的问题。该装置包含硬件设计和软件编程,主要是以 AT89C51 单片机为核心元件,编程控制 LED 七段数码管作显示的球赛计时计分系统,计时部分采用 CD4511(七段 BCD 码译码器)进行硬件译码;计分部分采用 CD4094(8 位移位存储总线寄存器)作为串行口扩展显示器接口,并利用 74LS21(双四输入与门)来实现比分的刷新功能。报警部分采用蜂鸣器为音响器件。该系统具有赛程定时设置,赛程时间暂停,及时刷新甲、乙双方的成绩以及赛后成绩暂存等功能。且价格低廉、操作简单、携带方便,适合学校单位举办友谊比赛等赛事的计时计分辅助工具。关键词单片机 ;篮球赛计时; 篮球赛计分; 显示IIIDesign of Timing and Scoring of Basketball Competition Based on microcontrollerAuthor: yang lu Tutor: wang danAbstractWith a wide range of SCM applications in various fields, many with a sinle chip timing for the control of the game scoring device have emerged, such as liquid crystal display LCD with MCU control the timing of scoring device, LED seven segment display with MCU timing control points and more.This design based on the basic rules of basketball, the game of basketball can achieve real-time control, total points and timing can be solved in the game of basketball. The device includes hardware design and software programming, mainly based on AT89C51 MCU as the core components, and programmed to control the LED segment digital tube for the display of the game time scoring,Part time using CD4511 (seven segment BCD decoder) for hardware decoding; scoring part is CD4094 (8-bit shift register storage bus) serial port expansion, monitor port, and use 74LS21 (Dual four- AND gate) to achieve the score of the refresh function. Buzzer to sound the alarm part of the device used. 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 IVfunctions. It is inexpensive, stable perance, 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 wordsMCU; basketball time; basketball scoreboard; ShowI目 录内 容 提 要 .IAbstract II第一章 引言 11.1 背景知识介绍 11.2 设计意义 11.3 设计目的 2第二章:系统设计方案 .32.1系统构成框图 .32.2 基本功能介绍 4第三章 系统硬件设计 .53.1系统硬件部分组成 .53.2器件的选择