1、 - I - 摘 要 随着科学技术的发展和普及,各种各样的竞赛越来越多,其中抢 答器的作用也就显而易见。目前很多抢答器基本上采用小规模数字集 成电路设计,使用起来不够理想。因此设计一更易于使用和区分度搞 的抢答器成为了非常迫切的任务。现在单片机已进入各个领域,以其 功耗小、智能化而著称,所以若利用单片机来设计抢答器,便使以上 问题得以解决,针对以上情况,本文设计出以STC89C52单片机为核心 的八路抢答器。 我们采用了数字显示器直接指示, 自动锁存显示结果, 并自动复位的设计思想,它能根据不同的抢答输入信号,经过单片机 的控制处理并产生不同的与输入信号相对应的输出信号,最好通过液 晶显示屏显
2、示相应的路数,即使两组的抢答时间相差几微秒,也可分 辨出事哪组优先按下的按键,它充分了单片机系统的优点,具有结构 简单、功能强大、可靠性好、实用性强的特点。 本设计采用STC89C52单片机设计一个抢答器系统。初步电路要求 设置有8个键盘, 但是考虑到系统要有一定的可拓展性, 本设计最终采 取矩阵键盘从而设置16个键盘,可以供16名选手参加比赛。本设计共 分为听题、准备抢答、抢答超时三个阶段进行设计。主持人读题时为 听题阶段,此时抢答无效,按下开始按钮,则开始抢答,并显示抢答 时限共十秒;若有人按下自己抢答键,则在液晶屏上显示对应编号和 LED点阵上显示抢答剩余时间,剩余时间为0秒时,则进入o
3、ver阶段, 若无人抢答,本次抢答无效,若在这之后有人抢答,显示对应编号并 且显示无效; 有人抢答情况下, 主持人读完题目后按下开始作答按钮, 则显示作答时间,作答时间低于5秒,会报警提示。 关键词:可靠性好;可拓展性;LED;液晶显示屏;STC89C52 单片机;矩阵键盘 - II - ABSTRACT With the development and popularization of science and technology, more and more variety of competitions, including the role of Responder also obv
4、ious. At present, many Responder basically small-scale digital integrated circuit design, using them less than ideal. So design an easier to use and engage in discrimination Responder become a very urgent task. SCM now has entered all areas, with its low power consumption, intelligence known, so if
5、using microcontroller design Responder, will make these problems can be solved, for the above situation, the paper designed to STC89C52 microcontroller as the core of eight Responder . We use a direct digital display indicator, even if the difference in time between the two groups to answer in a few
6、 microseconds, but also to distinguish which set of priorities accident pressed the button, and it fully the advantages of single-chip system has a simple structure, powerful, reliable Well, practical features. The subject applies the STC89C52 MCU to design the responder system. The circuit set 8 keyboards. But taking into account the scalability of the system, this design take the matrix keyboard to set the 16 keyboards, so the circuit can be used for 16 players to participate in the competi