- 9
- 0
- 约3.32万字
- 约 61页
- 2019-05-17 发布于河南
- 举报
湖北文理学院
毕业设计(论文)正文
题 目
基于AT89C51的篮球比赛计时记分器的设计
专 业
机械设计制造及其自动化
班 级
姓 名
学 号
指导教师
职 称
基于单片机的篮球赛计时计分器设计
摘要:本设计是基于AT89C51单片机的篮球计时计分器,利用7段共阴LED作为显示器件。在此设计中共接入了1个四位一体7段共阴LED显示器,2个三位一体7段共阴LED显示器,前者用来记录赛程时间,其中2位用于显示分钟,2位用于显示秒钟,后者用于记录甲乙队的分数,每队2个LED显示器显示范围可达到0~99分。赛程计时采用倒计时方式,比赛开始时启动计时,直至计时到0为止。
为了配合计时器和计分器校正调整时间和比分,我们特定在本设计中设立了7个按键,用于设置,调整时间,启动,调整分数和暂停等功能。采用单片机控制是这个系统按键操作使用简洁,LED显示,安装方便。
关键词:AT89C51;LED显示;篮球赛计时;篮球赛计分
The Design of Basketball Timing and Scoring Device Based on MCU
Abstract:The design is based on AT89C51 microcontroller timing basketball scoring device, the use of 7 as a common cathode LED display.In this design, the CPC has an access to one of four 7-segment common cathode LED display, 2 Trinity 7 common cathode LED displays, the former is used to record the race of time, of which 2 used to display the minutes, 2 seconds to displayminutes, which is used to record scores and B teams, each team two LED display shows the range of 0 to 99 points can be achieved.Schedule time with the countdown mode, the game starts the beginning of time until the timer to 0 so far. To cope with calibration timer and scoring device to adjust the time and score, we design a specific set in the 7 buttons, for setting, adjusting the time, start, adjust the score and pause functions.The system uses single chip control is to use simple button operation, LED display, easy to install.
Key words: Single Chip Microcomputer , led nixie tube ,keeping scores and the time
目 录
TOC \o 1-3 \h \z \u 1 概述 4
1.1 背景知识介绍 4
1.2 设计内容 4
1.3计任务和要求 5
1.4 设计意义 5
2系统总体方案及硬件设计 6
2.1 系统总体方案设计 6
2.2 硬件电路设计 7
2.2.1时钟电路模块 8
2.2.2复位电路模块 8
2.2.3显示模块 9
2.2.4报警模块 10
2.2.5总硬件电路设计 11
3软件设计 12
3.1 软件总体设计方案 12
3.2 软件设计具体过程 13
3.2.1延时模块设计 14
3.2.2数码管动态刷新显示程序 14
3.2.3 T0中断程序 16
3.2.4加分子程序 17
3.2.5减分子程序 18
3.2.6调整时间子程序 18
3.2.7半场交换比分子程序 21
3.2.8比赛暂停子程序 21
3.2.9中场指示灯程序 22
3.2.10 主程序 24
4 PROTEUS仿真 26
4.1 PROTEUS简介 26
4.2仿真过程 26
5总结 28
【参考文献】 29
附录
您可能关注的文档
- 基于AT89C51单片机的步进电机控制系统的设计与实现毕业设计(论文).doc
- 基于AT89C51单片机的超声波测距仪的系统设计毕业设计论文.doc
- 基于AT89C51单片机的出租车计价器系统的设计毕业论文.doc
- 基于AT89C51单片机的大棚环境测控系统.doc
- 基于AT89C51单片机的大棚环境测控系统毕业设计(论文).doc
- 基于AT89C51单片机的大棚环境测控系统毕业设计论文.doc
- 基于AT89C51单片机的大棚温湿度控制系统的设计与仿真毕业设计.doc
- 基于AT89C51单片机的电加热炉温度控制系统的设计毕业设计.doc
- 基于AT89C51单片机的电子表设计课程设计说明书.doc
- 基于AS_P技术的论坛网站的设计与实现_毕业设计论文.doc
原创力文档

文档评论(0)