资源描述:
《单片机基于fpga的电子抢答器的设计》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、江西理工大学南昌校区毕业设计(论文)题目:基于FPGA的电子抢答器的设计系:专业:班级:学生:学号:指导教师:职称:摘要随着科学技术的不断发展,促使人们学科学、学技术、学知识的手段多种多样。抢答器作为一种工具,已广泛应用于各种智力和知识竞赛场合。但抢答器的使用频率较低,且有的要么制作复杂,要么可靠性低,减少兴致。做为一个单位若专购一台抢答器虽然在经济上可以承受,但每年使用的次数极少,往往因长期存放使(电子器件的)抢答器损坏,再购置的麻烦和及时性就会影响活动的开展,因此设计了本抢答器。本设计是以六路抢答为基本理念。考虑到依需设定限时回答的功能,利用AT89C51单片机及外围接口实现的抢答系统,
2、利用单片机的定时器/计数器定时和记数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输出,扬声器发生提示。同时系统能够实现:在抢答中,只有开始后抢答才有效,如果在开始抢答前抢答为无效;抢答限定时间和回答问题的时间可在1-99s设定;可以显示是哪位选手有效抢答和无效抢答,正确按键后有音乐提示;抢答时间和回答问题时间倒记时显示,满时后系统计时自动复位及主控强制复位;按键锁定,在有效状态下,按键无效非法。关键词:AT89C51;LED数码管;抢答器计时;报警ABSTRACTWiththecontinuousdevelopmentofscie
3、nceandtechnology,promotelearningscience,scienceandtechnology,knowledgeofthevarietyofmeans.WithatoolforQiangda,whichhasbeenwidelyusedinallkindsofintelligenceandknowledgecontestsoccasions.ButQiangdaisusedforlowerfrequency,andsomeproductioncomplexorlowreliability,andreducedinterest.Asaunit,ifthepurcha
4、seisaQiangda.Althoughtheeconomycanbear,eachyearthenumberisextremelysmall,becauseofthelong-termstorage(electronicdevices)Qiangdafordamagetothepurchaseofthetroubleandtimelinessofactivities,Thedevelopmentwillbeaffected,sothisQiangdaisdesigned.ThisdesignissixroadQiangdaasthebasicconcept.Bytakingintoacc
5、ounttheneedforsetingtimeandlimitingtoanswerthefunction,whichusesAT89C51microcontrollerandexternalinterfaceofQiangdasystem,andusesSCMtimer/countertimingandthenumberofmindPrinciple,thesoftwareandhardwareorganicallycombined,whichcouldallowtherighttoconducttime,whilethedigitaldisplaytothecorrecttime.Sw
6、itchingwiththekeyboardoutput,speakersintips.Atthesametime,systemcanberealized.InQiangdaandwhichonlybeginsaftertheQiangdaonlyeffective,ifatthebeginningofQiangdabeforeQiangdainvalid;Qiangdalimitedtimetoanswerquestionsandthetimecanbesetinthe1-99s;playerswhocanshowthatitiseffectiveandQiangdaQiangdainva
7、lid,rightafterthemusickeystips;QiangdatimetotimeandanswerquestionsDaoJishi,overtime,thesystemautomaticallyresetcontrolandmandatoryreduction;keyslockedinanactivestate,thekeyisinvalidillegal.Keywords:AT89C51;