基于Freescale-HCS12系列单片机设计和实现抢答器-外文翻译_第1页
基于Freescale-HCS12系列单片机设计和实现抢答器-外文翻译_第2页
基于Freescale-HCS12系列单片机设计和实现抢答器-外文翻译_第3页
基于Freescale-HCS12系列单片机设计和实现抢答器-外文翻译_第4页
基于Freescale-HCS12系列单片机设计和实现抢答器-外文翻译_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

外文资料原文DesignandImplementofResponderBasedonFreescaleHCS12SingleChipMicrocomputerResponderisalsoknownasthefirstsignaldiscriminator,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.Thebasicfunctionsofresponderdesignedinthispaperare:(1)Thesystemcanlimitthecompetitiontimeandanswertimeofthealarm;(2)Thesystemcanidentifytheanswersignalandidentifytheplayer'snumber;(3)Thesystemcancalculatescoreforeachplayeranddisplaythescores.Respondercanaccommodate8playersnumbered1to8.Inaddition,LEDdigitaltubesaredesignedtodisplaythelatcheddata.Afterracehostclearsthesystem,ifparticipantspressswitch,andafteransweriscertificatedwhetheritiscorrectornot,thenumberoffirstplayertoanswerinactionisimmediatelyshownbydigitaltubes.Respondershouldhaveastrongabilitytodistinguishplayerstoanswerintheaction,itsresolutionreachesatleastafewmsAftertherequirementsandfunctionsofresponderareanalyzed,thefollowingcircuitsarerequiredingeneral:1、RespondercircuitThecircuithastwofunctions:oneistoidentifythenumberoftheplayerwhopressbutton,andtosavethenumber;theotheristoprohibittheotherplayersfrombuttoningortomakeotherbuttonsnotavailable2、TimingcircuitsHostcansetcompetitiontimeandanswertimebythetimepre-set-circuit.Ifnobodycananswerquestionwithinthesettime,allplayerswillnotgetscore,thenthehostwillannouncetheanswer.Besides,ifsomeonegetsthechancetoanswerthequestion,butdoesnotgivetherightresultbeforetheallowabletime,heorshewon'tgetthescore,theovertimesignalwillbealsosend,thehostwilldeclaretherightanswer.FreescaleHCS12containstimermodule,thetimermodulecanbedirectlyused.3、OvertimecircuitHCS12willsendovertimesignalwhentimegoesbeyondthesettime,thissignalwillbetransferredtothePCcomputerbytheserialport.Thenextquestionwillbeproceededtoanswer.4、Scorescountanddisplaycircuit.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.TherightanswerwillshowontheLCD.Finally,ifallthequestionsaredone,microcontrollerwillsend"e"toendthegame,thenthescoresofallplayerswillbecomputed,thehighestonewillbeshownonthedigitaltubes.Responderhardwareisfirstlydesigned;ResponderhardwareistakendirectlyfromthehardwareresourcesofFreescaleHCS12developmentboarddevelopedbySuzhouUniversity.ThedevelopmentboardtakesMC9S12DG128asthecore,usingmodulardesignapproach,itextractspartofI/Oresources,anditalsoprovideseachmodulewithacorrespondinginterfacecircuit.ItalsoprovidesA/Dinputchannels,PWMlow-passfiltercircuits,16-keykeyboardinputchannels,8-bitdigitalI/Ocircuits,SPII/Ocircuits,SCIcommunicationcircuits,ICbutI/Oexpansion被记录,他或她的分数将计算并显示在LED数码管显示。设计也是必要的。逻辑设计是如下:首先,主机会读取这将在LCD显示的问题,其次,PC机将发送字母“K”,这意味着该剧开始竞争。与此同时,定时电路开始工作,如果没有人得到机会允许的时间内回答问题,微控制器会发出单词“超市”到PC电脑,如果有人按下指定时间内竞争的关键,单片机将送他或她的编号。如果时间超出了允许的时间,PC机将发送“下一步”,这意味着将目光转向了​​下一个问题,下一个问题将被自动显示来回答。如果某些选手都有机会来回答这个问题,他或她的编号和成绩将自动减少1,并显示在数码管,然后单片机发送“下一步”继续下一个问题。如果分数是几比0后下降,选手被淘汰。正确的答案将显示在LCD上。最后,如果所有的问题都做了,微控制器会发出“E”来结束比赛,然后所有选手的分数将被计算,最高的一位将在数码管显示。抢答器的硬件首先设计;抢答器的硬件是由飞思卡尔HCS12开发板由苏州大学开发的硬件资源直接服用。该开发板采用MC9S12DG128为核心,采用模块化设计方法,它提取的I/O资源的一部分,而且还提供了每个模块有相应的接口电路。它还提供了A/D输入通道,PWM低通滤波电路,16键键盘输入通道,8位数字I/O电路,SPI的I/O电

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论