1、 摘 要 随着科学技术的发展和普及,各种各样的竞赛越来越多,其中抢答器的作用也越来 越重要。本文设计出以 AT89C51 单片机为核心的八路抢答器,采用了数字显示器直接指 示,自动锁存显示结果,并自动复位的设计思想,它能根据不同的抢答输入信号,经过 单片机的控制处理并产生与输入信号相对应的输出信号,最后通过 LED 数码管显示相应 的路数,即使两组的抢答时间相差几微秒,也可分辨出是哪组优先按下的按键,充分利 用了单片机系统结构简单、功能强大、可靠性好、实用性强的特点。 本设计是以抢答为出发点。考虑到根据需要设定限时回答的功能,利用 89C51 单片 机及外围接口实现的抢答系统,利用单片机的定时
2、器/计数器定时和记数的原理,将软、 硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时 间。用开关做键盘输入,蜂鸣器发声提示。同时系统能够实现:在抢答中,只有开始后 抢答才有效, 如果在开始抢答前抢答为无效; 满时后系统计时自动复位及主控强制复位; 按键锁定,在该状态下,按键是无效的。 关键词:抢答器 单片机 LED 数码显示管 定时器/计数器 ABSTRACT With the development and popularization of science and technology, all kinds of competitions become more
3、 and more, so responder is more and more important. This paper designed eight-way Responder based on AT89C51 MCU, with digital display direct instructions, automatic latch showed results, and automatic reset design ideas. It can according to different contest input signal by MCU control, handle and
4、produce different with the input signal corresponding output signal, finally LED digital pipe display by the corresponding points, even if the two groups of vies differs a few microseconds, also time can distinguish which group of priority press buttons, fully utilize the signal-chip microcomputer system structure is simple, powerful, good reliability and practicability strong characteristic. This design is for the starting point. Responders considering the set limit to answer in 89C51 single-ch