外文文献及翻译:基于STC89C52单片机的多路抢答器设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

2010InternationalConferenceonIntelligentComputationTechnologyandAutomationDesignandImplementofResponderBasedonFreescaleHCS12SingleChipMicrocomputerChengQiming,ChengYinman,WangMingmei,ChangLinCollegeofElectricPowerandAutomationShanghaiUniversityofElectricPowerChangyang2588road,Yandpudistrict,Shanghai200090,ChinaE-mail:chengqiming@sina.comAbstract—An8-channelresponderbasedonFreescaleHCS12singlechipmicrocomputerisdesigned.Therespondercandisplaythenumberofthefirstplayercorrectly.Italsocancountthescoresandshowtheplayerwiththehighestscore.Thesystemincludesfourmodules:CPU12,theSCIserialcommunication,digitaldisplaytubeandtimer.Whencompetitionsignalinput,itisbeencaughtandthencauseinterruption,thetimerisusedtotimeaccurately,theserialportisusedtosendandreceivethestartanswersignal,judgmentsignalandothersignals,thedigitaldisplaytubeisusedtoshowthescoresofthecurrentplayer.LCDdisplaytubeshowssubjectsandanswers.Sothebasicfunctionsoftheresponderareachieved.Keywords--responder;singlechipmicrocomputer;timer;inputcapture;interruptionI.INTRODUCTIONResponderisalsoknownasthefirstsignaldiscriminator,whichiswidelyusedinvariouscompetitions.Itcanjudgethenumberofthefirstplayeraccurately,fairlyandintuitively.Currently,avarietyofquizresponderhasemergedonthemarket,inwhichasmallresponderiscommonlydesignedwithsmall-scaledigitalintegratedcircuit.Althoughthetechnologyhasbeenquitemature,butitissimplefunction,lowintelligence,highfault,simpledisplay,lessflexibility,notconvenienceforupgrade,ithasbeenunabletomeetallkindsofrequirementsforintellectualcompetitionsandvarietyshows.Therefore,itisnecessarytodevelopsomekindsofresponderwhicharemoresuitableforapplications.Inrecentyears,withtherapiddevelopmentofscienceandtechnology,theapplicationsofsingle-chipmicrocomputerarebecomingwidely,whichpromotesthedevelopmentoftraditionalmeasurementandcontroltechnology.Inthispaper,FreescaleHCS12[1-3]isdesignedasacorecomponenttoachieveanintelligentdigitalresponderwith8-channel[4-8],ithassomebreakthroughsontechnology,functionandotheraspects,comparingwiththepastresponder.Itischaracterizedbysimplestructure,powerful,goodreliability,practicability,sothatthecompetitioncanreallycarriedoutonjust,fairandopenrules.II.FUNCTIONOFRESPONDERThebasicfunctionsofresponderdesignedinthispaperare:(1)Thesystemcanlimitthecompetitiontimeandanswertimeofthealarm;1ThisworkissupportedbyLeadingAcademicDisciplineProjectofShanghaiMunicipalEducationCommission(ProjectNumber:J510301,J510303)978-0-7695-4077-1/10$26.00©2010IEEEDOI10.1109/ICICTA.2010.1281127(2)Thesystemcanidentifytheanswersignalandidentifytheplayer’snumber;(3)Thesystemcancalculatescoreforeachplayeranddisplaythescores.Respondercanaccommodate8playersnumbered1to8.Inaddition,LEDdigitaltubesaredesignedtodisplaythelatcheddata.Afterracehostclearsthesystem,ifparticipantspressswitch,andafteransweriscertificatedwhetheritiscorrectornot,thenumberoffirstplayertoanswerinactionisimmediatelyshownbydigitaltubes.Respondershouldhaveastrongabilitytodistinguishplayerstoanswerintheaction,itsresolutionreachesatleastafewms.III.IDEASOFRESPONDERDESIGNAftertherequirementsandfunctionsofresponderareanalyzed,thefollowingcircuitsarerequiredingeneral:ARespondercircuitThecircuithastwofunctions:oneistoidentifythenumberoftheplayerwhopressbutton,andtosavethenumber;theotheristoprohibittheotherplayersfrombuttoningortomakeotherbuttonsnotavailable.BTimingcircuitsHostcansetcompetitiontimeandanswertimebythetimepre-set-circuit.Ifnobodycananswerquestionwithinthesettime,allplayerswillnotgetscore,thenthehostwillannouncetheanswer.Besides,ifsomeonegetsthechancetoanswerthequestion,butdoesnotgivetherightresultbeforetheallowabletime,heorshewon’tgetthescore,theovertimesignalwillbealsosend,thehostwilldeclaretherightanswer.FreescaleHCS12containstimermodule,thetimermodulecanbedirectlyused.COvertimecircuitHCS12willsendovertimesignalwhentimegoesbeyondthesettime,thissignalwillbetransferredtothePCcomputerbytheserialport.Thenextquestionwillbeproceededtoanswer.DScorescountanddisplaycircuit.Whenhostpressestheanswerkey,itistimetostarttoanswer,ifoneplayerpressestheanswerkey,hisorhernumberwillberecorded,hisorherscorewillbecountedanddisplayedontheLEDdigitaltubes.Bedsidethecircuitsdesignedabove,somenecessarylogicdesignsarealsonecessary.Thelogicdesignsareasfollowing:First,thehostwillreadthequestionwhichwillshowintheLCD;next,thePCcomputerwillsendletter“k”,whichmeansthatplayisbeginningtocompetition.Atthesametime,timingcircuitstartstowork,ifnobodygetsthechancetoanswerthequestionwithinpermittedtime,microcontrollerwillsendtheword“chaoshi”toPCcomputer;Ifsomeonepressesthecompetitionkeywithinthespecifiedtime,microcontrollerwillsendhisorhernumber.Ifthetimegoesbeyondthepermittedtime,PCcomputerwillsend“next”whichmeansturningtothenextquestion,thenextquestionwillbeautomaticallyshowedtoanswer.Ifsomeplayergetsthechancetoanswerthequestion,hisorhernumberandscoreswilldecrease1automaticallyandshowinthedigitaltubes,thenmicrocontrollersends“next”togoonthenextquestion.Ifthescoreisfewthan0afterdecreasing,playeriseliminated.Th

1 / 13
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功