资源描述:
《基于单片机的八位抢答器》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、扬州市职业大学毕业设计(论文)毕业设计题目:八路抢答器系部:汽车与电气1专业:机电一体化班级:07机电(3)姓名:学号:指导教师:完成时间:2010年5月扬州市职业大学汽车与电气工程系摘要抢答器作为一种工具,已广泛用于各种知识和智力竞赛场合。但抢答器的使用频率较低,且有的制作复杂,有的可靠性低。作为一个单位,如果专门购一台抢答器,虽然在经济上可以承受,但每年使用的次数极少,往往因长期存放使抢答器损坏,再购置的麻烦和及时性就会影响活动的开展,因此设计了该抢答器。本设计是以八路抢答器为基本理念。考虑到依据设定限时回答的功能,
2、利用AT89C51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器,将软、硬件有机结合,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输入,扬声器发声提示。同时系统能够实现:在抢答中,只有开始抢答后才有效,如果在开始抢答前抢答为无效;抢答限定时间和回答问题的时间可在1-99s设定;可以显示是哪位选手有效抢答和无效抢答,正确按键后有音乐提示;抢答时间和回答时间倒计时显示,满时后系统计时自动复位及主持人控制强制复位;按键锁定,在有效状态下,按键无效非法。关键词:AT89C51LED数码管抢
3、答器计时Abstractviestoanswerfirsttakesonekindoftool,haswidelyusedineachkindofknowledgeandtheintelligencecompetitionsituation.Butviestoanswerthefirstfrequencyofuseislow,andsomemanufacturesarecomplex,somereliabilityarelow.Asaunit,ifbuysonetovietoanswerfirstspecially,al
4、thoughmaywithstandintheeconomy,but2扬州市职业大学汽车与电气工程系everyyearusesthenumberoftimesareextremelyfew,becauseoftenthelong-termstoragecausestovietoanswerthefirstdamage,purchasesagainthetroubleandtimelinesswillaffectactivethedevelopment,thereforedesignedshouldvietoanswerf
5、irst.thisdesignisviestoanswerfirsttakeeightgroupsasthebasicidea.Consideredthebasishypothesistimelimitreplythefunction,realizesusingat89C51monolithicintegratedcircuitandtheperipheryconnectionviestoanswerthefirstsystem,usingmonolithicintegratedcircuit'stimer/counte
6、r,thesoftwareandhardwareorganicsynthesis,enablesthesystemtobeabletocarryoncorrectlythetime,simultaneouslyenablesthenixietubecorrectlythetelltime.Makesthekeyboardentrywiththeswitch,thespeakersoundproductionprompt.Simultaneouslythesystemcanrealize:Inviingtoanswerfi
7、rst,onlythenafterstartingtovietoanswerfirst,isonlytheneffective,ifbeforestartingtovietoanswerfirstvietoanswerfirstinvalidto;Viestoanswerthefirstlimitingtimeandrepliesthequestionthetimetobepossibleinthe1-99shypothesis;Maydemonstratethatiswhichcontestantviestoanswe
8、rfirsteffectivelywithviestoanswerfirstinvalid,aftercorrectpressedkey,hasmusictheprompt;ViestoanswerthefirsttimeandtheansweringtimecountdowndemonstratedthatManS