1、I 基于基于 AT89C51AT89C51 的八路抢答器的八路抢答器 内容摘要: 抢答器作为一种工具,已广泛应用于各种智力和知识竞赛场合。但抢答器的使用频 率较低,且有的要么制作复杂,要么可靠性低。作为一个单位,如果专门购一台抢答器 虽然在经济上可以承受,但每年使用的次数极少,往往因长期存放使(电子器件的)抢 答器损坏,再购置的麻烦和及时性就会影响活动的开展,因此设计了本抢答器。 本设计是以八路抢答为基本理念。考虑到依需设定限时回答的功能,利用 AT89C51 单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时和记数的原理, 将软、硬件有机地结合起来,使得系统能够正确地进行计时,同
2、时使数码管能够正确地 显示时间。用开关做键盘输出,扬声器发生提示。同时系统能够实现:在抢答中,只有 开始后抢答才有效,如果在开始抢答前抢答为无效;抢答限定时间和回答问题的时间可 在 1-99s 设定;可以显示是哪位选手有效抢答和无效抢答,正确按键后有音乐提示;抢 答时间和回答问题时间倒记时显示,满时后系统计时自动复位及主控强制复位;按键锁 定,在有效状态下,按键无效非法。 关键词:AT89C51 LED 数码管 抢答器 计时 Eight-way first answer device based on AT89C51 Abstract: As a tool, the first answer
3、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-ter
4、m 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 AT89C51 single-chip and external interface of the Answer System, the use of single-chip timer / counter timing and num