您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于AT89C51单片机的八路抢答器的设计
学号147308226苏州市职业大学毕业设计题目基于AT89C51单片机的八路抢答器的设计与实现学生姓名:专业班级:14通信技术2班学院(部):电子信息工程学院校内指导教师:周燕(副教授)校外指导教师:孙红荣(工程师)完成日期:2017年5月I摘要抢答器作为一种很常见的电子类产品,实现方式有很多种,采取模拟电路和数字电路等方法,制作过程复杂繁琐,不易实现,并且稳定性不是很高。本抢答器设计采用51系列单片机为主要零件,与蜂鸣器和数码管等部件组成八路抢答器,利用单片机时钟电路、复位电路、按键电路等,设计出能显现抢答选手号码和抢答时间等特点,同时对单片机进行可在线编程实现其所设计的基本功能。在51系列单片机中采用比较常用的AT59C51作为本设计的单片机,性能稳定,制作简易。在显示电路上我们采用四位七段共阴极数码管,来显示抢答者、抢答时间和答题时间。关键字:抢答器、AT89C51、数码管、扬声器IIAbstractNowtherapiddevelopmentofelectronictechnology,electronicproductssuchasresponder,oftenappearinvariouscompetitions,entertainmentandotherplaces.Responderasvariouscompetitions,entertainmentandotheractivitiestoanswertheanswerplayersisakindofelectronicproduct,andiswidelyused.TherearemanykindsofmethodstoachieveResponderfunction,theanalogcircuitanddigitalcircuitetc.theproductionprocessiscomplicated,andnoteasytorealize,andthestabilityisnotveryhigh.Thisdesignuses51microcontrollerasthecorecomponent,andthebuzzerandthedigitaltubeandothercomponentseightresponder,theuseofsingle-chipclockcircuit,resetcircuit,keycircuitdesign,canshowtheplayeranswernumberandanswertimefeatures.HereweuseAT59C51asthemicrocontrollerdesign,stableperformance,simplemanufacture.Keywords:responder,AT89C51,digitaltube目录摘要..............................................................................................IAbstract........................................................................................II目录.............................................................................................11绪论.........................................................................................11.1设计背景及意义.....................................................................................11.2本设计的主要内容.................................................................................12系统总体概述..........................................................................22.1系统主要功能.........................................................................................22.2方案论证..............................................................................................32.3方案比较与选择....................................................................................43硬件设计...................................................................................43.1抢答器的工作原理.................................................................................43.2主控芯片的介绍—AT89C51...................................................................53.2.1单片机内部结构..........................................................................53.2.2单片机的引脚定义......................................................................63.3功能电路的介绍.....................................................................................73.3.1时钟频率电路的设计..................................................................73.3.2复位电路的设计..........................................................................73.3.3显示电路的设计..........................................................................83.3.4键盘扫描电路的设计..................................................................83.3.5报警电路的设计..........................................................................94软件设计.................................................................................104.1主程序流程图.......................................................................................104.2抢答流程图...........................................................................................114.3子程序设计...........................................................................................124.3.1定时中断子程序........................................................................124.3.2外部中断子程序.......................................................................134.3.3报警子程序...............................................................................144.3.4控制子程序...............................................................................155调试.........................................................................................165.1硬件调试...............................................................................................165.2软件调试...............................................................................................175.3调试结果及分析...................................................................................17总结............................................................................................19致谢............................................................................................20参考文献.....................................................................................21附录:........................................................................................2211绪论1.1设计背景及意义如今抢答器是作为一种很普遍的电子产品,在很多比赛类场合中,它能比较快速且客观公正地辨别出最先获得发言的参赛者和选手。在抢答过程中中,如果我们仅仅以视觉是不容易判断出孰先孰后。因此我们利用51系列单片机来制作一个抢答器,可以轻松的克服这个问题,即便这两组或者这两个人抢答的时间相差很短也可以辨别出哪一组选手应该最先答题。现在大多数单片机和数字集成电路组成的抢答器,功能和性能上都优于以前的抢答器。抢答者的号码、抢答时间和答题时间的计时等功能都能体现出来。此次设计选用AT89C51单片机,并设计一些功能电路连接在单片机上以此来实现抢答功能,利用单片机特有的定时与计数功能,将硬件和软件巧妙的结合起来,实现答题计时和抢答计时的功能,并且利用数码管准确地显示选手和时间。在设计中利用开关作为按键,喇叭作提示。在这个系统中,只有在主持人启动开始
本文标题:基于AT89C51单片机的八路抢答器的设计
链接地址:https://www.777doc.com/doc-2459981 .html