基于单片机的八路智能抢答器的毕业设计论文Word文件下载.docx
- 文档编号:14889204
- 上传时间:2022-10-25
- 格式:DOCX
- 页数:62
- 大小:336.95KB
基于单片机的八路智能抢答器的毕业设计论文Word文件下载.docx
《基于单片机的八路智能抢答器的毕业设计论文Word文件下载.docx》由会员分享,可在线阅读,更多相关《基于单片机的八路智能抢答器的毕业设计论文Word文件下载.docx(62页珍藏版)》请在冰豆网上搜索。
本系统就是采用AT89C51单片机为核心而设计的八路智能抢答器。
根据抢答器的功能,智能抢答器的设计要求如下:
抢答器可以同时供8名选手或8个代表队比赛使用;
主持人可以通过智能抢答器的按键设定每道题的抢答时间和回答时间;
具有清零和非法抢答控制功能,设置一个系统清除和抢答控制开关,并由主持人操控;
当主持人启动“开始抢答按键”后,定时器进行减计时,抢答时间耗尽后禁止抢答;
倒计时5秒时,如果仍无人抢答,则系统每1s报警一次,用以提示参赛选手;
抢答器具有锁存与显示功能。
即选手按下按键,锁存相应选手的参赛编号,并在LED数码管上显示,选手抢答实行优先锁存,其他按键者将不能响应,以便公平地选择第一个抢答者;
参赛选手在设定的时间内进行抢答,抢答有效,显示器上显示选手的编号,同时进入回答问题的时间倒计时;
倒计时期间,主持人想终止倒计时,可以按下“停止”键,系统会自动进入准备状态。
本系统采用软硬件结合的方法而设计,其中硬件设计是借用单片机AT89C51为中心控制模块,采用模块化设计思想,根据系统功能划分成六个模块,分别为:
核心控制模块、电源模块、时钟与复位模块、按键输入模块、显示模块、报警模块。
软件设计是采用汇编语言编程。
按键输入模块共有14个按键,分为抢答按键和控制按键。
抢答按键共有八个,分别为S1―S8,供抢答选手进行抢答使用;
控制按键有六个,分别为S9―S14,其中S9和S10分别为“抢答时间调整键”和“回答时间调整键”;
S11和S12分别为时间“加1”和“减1”按键;
S13和S14分别为“抢答开始按键”和“停止按键”。
显示模块本系统采用四个共阳极LED数码管显示,一个数码管用来显示抢答到问题的选手的号码,两个用来显示倒计时时间,一个未使用的数码管作为以后的扩展使用。
时钟与复位模块包括时钟电路和复位电路,单片机的时钟信号用来提供单片机片内各种操作的时间基准,复位操作则使单片机的片内电路初始化,使单片机从一种确定的初态开始运行。
报警模块在本系统中为附加模块,它的主要用途就是起到提示并引起人们的注意。
电源模块是为了增强本系统应用的广泛性而设计的模块,它的主要任务是将交流220V电压转换为系统中可以直接使用的稳定的直流+5V。
本设计限定抢答人数为八人,抢答过程如下:
当主持人按“抢答开始按键”后,数码显示屏显示抢答时间倒计时,并在最后五秒启动报警电路提示,在抢答时间过程中八名选手进行抢答,抢答成功后,显示模块显示选手号和回答问题时间。
回答完问题后,主持人可按“停止按键”结束,新一轮抢答开始。
如果在主持人没有按下“抢答开始按键”而选手就抢答,则视为犯规,显示模块显示“FF”并显示选手号码,而且报警电路进行提示。
主持人按“停止按键”后,新一轮抢答开始。
显示模块在初始显示、超过规定抢答时间仍无人抢答和答题超过规定时间后显示“FFF”。
抢答时间和回答问题的时间可以设定,设定范围为1-99s,原始状态下抢答时间为10s,回答问题时间为30s。
后台主持人可以通过“抢答时间调整键”、“回答时间调整键”和时间“加1”、“减1”按键修改抢答时间和选手回答问题的时间时间,改完后“停止按键”确定,新时间开始有效。
在抢答器设计过程中,首先完成总体方案的论证制定,然后分析系统的工作原理,在此基础上设计出各部分单元电路原理图,进一步完成对系统电路的设计。
在对系统工作原理充分研究的基础上,选择合适的元件型号和参数,再用protel绘图软件画出电路原理图,最后根据电路接口编写软件程序。
关键字:
抢答器;
单片机;
AT89C51;
模块;
按键
Introduction
Theintelligentviestoanswerfirstasakindofelectronicproductshavebeenwidelyappliedinallkindsofintelligenceandknowledgecompetitionsituation.Butusingthecurrentissomecomplicatedcircuitviestoanswerfirst,donotfacilitateproduction,andreliability,lowdifficulttoachieve;
Othersusesomespecialintegratedchips,andthepurchaseofthespecialintegratedchipsandverydifficult.Inordertoadapttotheneedsofthemanyplayersviestoanswerfirstactivitiesanddesignaintelligentviestoanswerfirstdevice,thisviestoanswerfirstinstrumentshavecircuitissimple,components,easytobuyordinaryetc,andsolvesthedifficultandhardtobuymakersmaketheproblem.ThissystemisAT89C51microcontrollerasthecoreandthedesignoftheintelligentviestoanswerfirst8.
Accordingtothefunction,intelligentviestoanswerfirsttheviestoanswerfirstthedesignrequirementsofthefollowing:
viestoanswerfirstisalsofor8contestantsor8teamsgame;
hostcanthroughtheintelligenceissetbuttonviestoanswerfirsteachquestiontimeandanswertheviestoanswerfirsttime;
haveresetandillegalviestoanswerfirstcontrolfunction,setupasystemtoeliminateandviestoanswerfirst,andbyahostcontrolswitchcontrol;
whenthehosttostart"
start"
button,thetimerviestoanswerfirsttoreducesthetime,viestoanswerfirsttimeafterrunningprohibitcontest;
countdown5seconds,ifstillnocontest,thensystemevery1salarmonce,totipcompetitors;
viestoanswerfirstinstrumentshavelocktosaveanddisplayfunction.That'
saccordingtothebutton,locktosavethecorrespondingplayeroftheentries,andtheNumbersLEDdigitaldisplay,ontheplayerviestoanswerfirstshallgiveprioritylocktosave,theotherkeycannotrespondtofairtochoosethefirstviestoanswerfirst;
contestantsinthesetperiodoftimeviestoanswerfirst,viestoanswerfirsteffectively,onthemonitordemonstratedcontestant'
sNumbers,andatthesametimeintotheanswerproblemofthetimecountdown;
duringthecountdown,thehostwouldliketostopthecountdown,canpressthe"
stop"
button,thesystemwillautomaticallyenterthestate.
ThesystemUSESthesoftwareandhardwareofthemethodofcombininganddesign,includinghardwaredesignareborrowedfromthesingle-chipmicrocomputerAT89C51asthecentercontrolmodule,themodulardesigndivision,withsixmodule,respectivelyis:
thecorecontrolmodule,thepowermodules,clockandresetmodule,keyinputmodule,displaymodule,alarmmodule.Thesoftwaredesignisthecommonassemblylanguageprogramming.
Keyinputmodulein14key,dividedintoviestoanswerfirstkeysandcontrolbuttons.Viestoanswerfirstkeytherewereeight,respectively,forviestoanswerfirstS8S1-playersuseviestoanswerfirst;
Controlkeyhassix,respectively,amongthem--S14S9S9andS10are"
viestoanswerfirsttimetoadjustkey"
and"
answertimetoadjustkeys"
;
S11andS12respectivelyfortime"
add1"
minus1"
button;
S13andS14are"
viestoanswerfirststartbutton"
button.DisplaymodulethesystemUSESfourwereLEDdigitaldisplay,anodetubeadigitalworkstodisplaythe
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 八路 智能 抢答 毕业设计 论文