论文-基于单片机的抢答器.docx基于单片机的抢答器电路设计
才商要:随着人才的竞争也越来越激烈,一些企事业单位为了选拔或者奖励员工会 采取智力问答、知识竞赛的方式,所以抢答器也就成为必备的设备。本文介绍了一种基 于单片机的抢答器的设计方法,以单片机为控制核心,通过检测按键的方式来判断抢答 的选手,并将选手的编号以数字的方式在数码管上显示出来。在选手回答问题时,其他 选手的抢答按键将被屏蔽。系统还为每路抢答器设置了双色发光二极管,用于指示选手 抢答成功或犯规。本文提出的设计方法简单易懂、操作方便。
关键字:抢答器、单片机、数码管,74LS164
The Design of The Responder Based On Microcontroller
Abstract;With the competition between talents is more and more fierce. As a result, to select and reward the staff, some of enterprise and public institutions take a way of mind quiz or knowledge competition, and responder becomes one of the necessary equipments. In this paper, the author introduces a design procedure of the responder based on Microcontroller, with the cybernetics core of Microcontroller, and through the way of testing the keys' pressing to judge which competitor races to be the first to answer and to show the number of the competitor digitally on the digital tube. Also, when the competitor presses the key, the buzzer will be singing at the same time and the signals of others' answer keys will be shielded. The system also sets double colour Light emitting diode for differentr responder, which can dedicate the success or foul of competitors. Generally speaking, the design procedure introduced is easy to understand and convenient to operate.
Keywords: Responder> Microcontroller> Digital tube> 74LS164
目录 2
第一章序言 4
4
4
第二章方案设计 6
1课题要求 6
6
2. 1系统设计方案选择 6
2. 2控制器选择 7
2. 3 显不器件选择 7
第三章 系统硬件设计 8
1电路设计环境 8
9
3单片机控制电路设计 9
3. 1单片机的发展 9
3. 2单片机AT89S51芯片简介 10
3. 3时钟电路设计 13
3. 4复位电路设计 14
3. 3. 5控制电路设计 14
3. 4显示电路设计 15
. 1 74LS164介绍 15
3. 4. 2 显示电路设计 16
LED灯提示电路设计 17
3. 6 稳压 电源设计 18
7本章小结 18
第四章 系统软件设计 20
1程序设计应用软件 20
2程序设计流程 21
3读取按键值程序设计 23
4显示程序设计 24
5定时时间程序设计 26
6本章小结 28
第五章 系统调试故障与分析 29
第六章总结 32
致谢 33
参考文献 34
附录1电路原理图 35
附录2中英文翻译 36
附录3元件清单 42
附录4源程序清单 43
第一章序言
随着计算机技术的发展和在控制系统中的广泛应用,以及设备向小型化、智能化发 展,作为高新技术之一的单片机以其体积小、功能强、价格低廉、使用灵活等优势,显 示出了很强的生命力。进入21世纪以
论文-基于单片机的抢答器 来自淘豆网m.daumloan.com转载请标明出处.