基于51单片机智能竞赛抢答器设计与实现 - 图文

2019-01-07 11:35

摘 要

抢答器作为一种工具,已广泛应用于各种智力和知识竞赛场合。但抢答器的使用频率较低,且有的要么制作复杂,要么可靠性低。作为一个单位,如果专门购一台抢答器虽然在经济上可以承受,但每年使用的次数极少,往往因长期存放使(电子器件的)抢答器损坏,再购置的麻烦和及时性就会影响活动的开展,因此设计了本抢答器。

本设计是以八路抢答为基本理念。考虑到依需设定限时回答的功能,利用STC89C51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时和记数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输出,扬声器发生提示。同时系统能够实现:在抢答中,只有开始后抢答才有效,如果在开始抢答前抢答为无效;抢答限定时间和回答问题的时间可在1-99s设定;可以显示是哪位选手有效抢答和无效抢答,正确按键后有音乐提示;抢答时间和回答问题时间倒记时显示,满时后系统计时自动复位及主控强制复位;按键锁定,在有效状态下,按键无效非法。

关键词:STC89C51 LED数码管 抢答器 计时

ABSTRACT

ABSTRACT

As a tool, the first answer device has been widely used in all kinds of intelligence and knowledge contests occasions. However, it is not used so frequently due to its production complexity, lacking of reliability and reducing interest. Although a unit can afford it, it is rarely used yearly. Meanwhile, because of the long-term storage, its electronic devices are easy to be damaged. Some activities are likely to be affected because it is quiet trouble to repurchase these spare parts and time-wasting. This First Answer Device is designed to solve these problems.

And this design is based on the principle of eight-way first answer. Considering the requirement and the limited time to answer, while using STC89C51 single-chip and external interface of the Answer System, the use of single-chip timer / counter timing and number of the principles in mind, the software and hardware combination, makes the system time correctly, while the digital control to display time correctly. Switch the keyboard to do with output, speaker prompted occurred. At the same time, the system can be realized: In the competitive answering game, only after the answer that will be valid, if at the beginning of pre-answer that will be invalid; Competitive answer to the question and the end of the question can be set in 1-99s; it can show who's effective and whose answer’s invalid, the correct button will prompt after the music; count down to the competitive and finished time, when it’s full time the system will be automatic reset and the master will also be forced reset ;keys locked in the effective state, while the key is invalid illegal.

Keywords: STC89C51 LED digital tubes the first answer device Time

目录

i

目 录

第一章 绪论 ....................................................... 1 1.1 毕业设计目的与要求 ........................................ 1 1.2 系统分析与总体设计 ........................................ 2 1.3 单片机系统概述 ............................................ 3 1.4 抢答器目前主要存在的问题 .................................. 4 1.5 本文的主要研究成果及内容安排 .............................. 5 1.5.1 主要研究成果 .............................................. 5 1.5.2 本文内容安排 .............................................. 5 第二章 抢答器的系统概述 ........................................... 6 2.1 系统的主要功能功能 ........................................ 6 2.2 系统的需求分析 ............................................ 6 2.3 抢答器的工作流程 .......................................... 7 2.4 抢答器的工作过程 .......................................... 7 2.5 单片机最小系统控制 ........................................ 9 2.6 STC89C51特殊功能寄存器 ................................... 10 2.7 STC89C51的功能及简介 ..................................... 10 2.8 抢答器的优点及组成 ....................................... 13 2.9 本章小结 .................................................. 13 第三章 系统的总体方案设计 ........................................ 14 3.1 硬件电路的设计 ........................................... 14 3.2 总体原理图 ............................................... 14 3.3 时钟频率电路的设计 ....................................... 15 3.4 复位电路的设计 ........................................... 15 3.5 显示电路的设计 ........................................... 14 3.6 键盘扫描电路的设计 ....................................... 14 3.7 发声电路 ................................................. 15 3.8 系统复位 ................................................. 15 3.9 本章小结................................................. 15 第四章 软件设计 .................................................. 22 4.1 软件任务分析 .............................................. 22 4.2 程序流程图 ............................................... 24 4.3 主要程序分析 ............................................. 24 4.4 本章小结 .................................................. 27 第五章 总结与展望 ................................................ 27 5.1 本文小结 .................................................. 27 5.2 心得体会 .................................................. 28 致 谢 ............................................................ 29

ii 目录

参考文献 .......................................................... 42 附录A ............................................................. 43

第一章 绪论

1

第一章 绪论

1.1 毕业设计目的与要求

毕业设计(论文)是高等院校本科教学计划中最后一个重要的、必不可少的教学环节,它是我们在校学习的一次全面检验、总结和提高;是我们利用所学的理论知识解决实际工程问题的综合训练;是毕业及学位资格认证的重要依据;是衡量高等学校教育质量和办学效果的重要评价内容。因此,做好毕业设计(论文)将为我们由学校走入社会打下良好的基础。

通过此次毕业设计,我将会达到如下要求:

(1) 对课本上所学的理论知识进一步加深和巩固;学习基本理论在实践中综合运用的经验,掌握单片机的基本知识、系统设计的基本方法、设计步骤,进一步熟悉和掌握常用单片机模块的应用。

(2)能够熟练使用Autium designer、Protues等电子软件,学会运用这些软件分析、设计和仿真电路的能力。

(3)能够熟练运用Keil-C51软件编写相应的程序模块。

(4)培养我们的动手实践能力、独立思考问题的能力和查阅相关资料的能力。 (5)培养学生具的有一定的Autium designer制PCB图能力。 (6)了解弱电控制强电的方法,并能设计一些简单实用的电路。

(7)学习单片机系统实物制作、调试、测试、故障查找和排除的方法、技巧。 (8)培养严谨的思考、思维模式。

(9)培养实践技能,提高分析和解决实际问题的能力。

毕业设计(论文)是高等院校本科教学的最后一个非常重要且必不可少的部分,是将理论知识和生产实际紧密结合的桥梁,对于增强我们综合运用所学知识,分析和解决实际问题,提高学生的实践动手能力、创新思维能力具有不可替代的作用。


基于51单片机智能竞赛抢答器设计与实现 - 图文.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:万和镇沙河小学第一届乒乓球比赛秩序册

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: