摘要随着科学技术的发展和普及,各种各样的竞赛越来越多,其中抢答器的作用也越来越重要。本文设计出以AT89C51单片机为核心的八路抢答器,采用了数字显示器直接指示,自动锁存显示结果,并自动复位的设计思想,它能根据不同的抢答输入信号,经过单片机的控制处理并产生与输入信号相对应的输出信号,最后通过LED数码管显示相应的路数,即使两组的抢答时间相差几微秒,也可分辨出是哪组优先按下的按键,充分利用了单片机系统结构简单、功能强大、可靠性好、实用性强的特点。本设计是以抢答为出发点。考虑到根据需要设定限时回答的功能,利用89C51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时和记数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输入,蜂鸣器发声提示。同时系统能够实现:在抢答中,只有开始后抢答才有效,如果在开始抢答前抢答为无效;满时后系统计时自动复位及主控强制复位;按键锁定,在该状态下,按键是无效的。关键词:抢答器单片机LED数码显示管定时器/计数器ABSTRACTWiththedevelopmentandpopularizationofscienceandtechnology,allkindsofcompetitionsbecomemoreandmore,soresponderismoreandmoreimportant.Thispaperdesignedeight-wayResponderbasedonAT89C51MCU,withdigitaldisplaydirectinstructions,automaticlatchshowedresults,andautomaticresetdesignideas.ItcanaccordingtodifferentcontestinputsignalbyMCUcontrol,handleandproducedifferentwiththeinputsignalcorrespondingoutputsignal,finallyLEDdigitalpipedisplaybythecorrespondingpoints,evenifthetwogroupsofviesdiffersafewmicroseconds,alsotimecandistinguishwhichgroupofprioritypressbuttons,fullyutilizethesignal-chipmicrocomputersystemstructureissimple,powerful,goodreliabilityandpracticabilitystrongcharacteristic.Thisdesignisforthestartingpoint.Respondersconsideringthesetlimittoanswerin89C51single-chipmicrocomputerandfunction,useofperipheralinterfaces,scare-answeringsystemofthemicrocontrollertimer/countertimingandnumerationprinciple,softwareandhardwareorganically,andmakesthesystemcancorrectlytothetime,atthesametimemakingdigitaltubecanproperlyshowtime.Withaswitchdoeskeyboardoutput,thespeakerhappenhint.Andthesystemcanrealize:inthecontest,onlyafterbeginningviestoeffective,ifatthestatofthecontestfortheinvalid;formercontestfullautomaticrestandclockafterthesystemmastermandatoryrest;keylock,inthiseffectivecondition,buttonsinvalid.Keywords:ResponderSinglechipmicrocomputerLEDdigitaldisplaytubeTimer/counter目录第一章绪论..............................................................11.1抢答器发展概况.........................................................11.2本课题研究的意义.......................................................11.3系统设计的功能.........................................................2第二章单片机系统原理....................................................32.1单片机的原理...........................................................32.1.1单片机的简介.........................................................32.1.2单片机的分类.........................................................32.2单片机的工作过程.......................................................42.3单片机的引脚及其作用...................................................5第三章八路抢答器的电路设计..............................................73.1电路设计原理...........................................................73.2八路抢答器模块化设计...................................................73.3时钟与复位模块........................................................