下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
外文资料原文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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025北京市个体工商户雇工劳动合同书范文
- 2025年度按摩店合伙人市场分析与竞争策略协议3篇
- 2025年度农村墓地建设项目投资合作协议书
- 二零二五年度养老公寓入住与休闲娱乐服务合同3篇
- 二零二五年度公司企业间新能源车辆购置借款合同3篇
- 2025年度工伤赔偿争议解决机制协议书3篇
- 二零二五年度养老机构兼职校医照护服务合同3篇
- 二零二五年度养殖场专业技术人员聘用合同3篇
- 二零二五年度地下停车场开发与运营管理合同3篇
- 二零二五年度智能电网设备采购合同风险识别与防范3篇
- TSG 51-2023 起重机械安全技术规程 含2024年第1号修改单
- 《正态分布理论及其应用研究》4200字(论文)
- GB/T 45086.1-2024车载定位系统技术要求及试验方法第1部分:卫星定位
- 浙江省杭州市钱塘区2023-2024学年四年级上学期英语期末试卷
- 1古诗文理解性默写(教师卷)
- 广东省广州市越秀区2021-2022学年九年级上学期期末道德与法治试题(含答案)
- 2024-2025学年六上科学期末综合检测卷(含答案)
- 在线教育平台合作合同助力教育公平
- 工地钢板短期出租合同模板
- 女排精神课件教学课件
- 2024年湖南省公务员考试《行测》真题及答案解析
评论
0/150
提交评论