.
.
编号:
课程设计说明书 (专业工程设计)
题 目: 基于51单片机八路抢答器的设计 院 (系): 信息与通信学院 专 业: 微电子科学与工程 学生姓名: 伦海威
学 号: 1300240120 指导教师: 李 琦
2016 年 12 月 17 日
.
摘 要
随着科学技术的发展和普及,各种各样的竞赛越来越多,其中抢答器的作用也就
显而易见。目前很多抢答器基本上采用小规模数字集成电路设计,使用起来不够理想。因此设计一更易于使用和区分度高的抢答器成了非常迫切的任务。现在单片机已进入各个领域,以其功耗小、智能化而著称,所以若利用单片机来设计抢答器,便使以上问题得以解决.针对以上情况,本文设计出以STC89C52RC单片机为核心的八路抢答器。我们采用了数字显示器直接指示,自动锁存显示结果,并自动复位的设计思想,它能根据不同的抢答输入信号,经过单片机的控制处理并产生不同的与输入信号相对应的输出信号,最后通过LED数码管显示相应的路数,即使两组的抢答时间相差几微秒,也可分辨出是哪组优先按下的按键,它充分利用了单片机系统的优点,具有结构简单、功能强大、可靠性好、实用性强的特点。
本设计是以八路抢答为基本理念。考虑到依需设定限时回答的功能,利用51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时和记数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输出,扬声器及LED指示灯发出提示。同时系统能够实现:在抢答中,只有开始后抢答才有效,如果在开始抢答前抢答为犯规;满时后系统计时自动复位及主控强制复位;按键锁定,在有效状态下,按键无效非法。 【关键词】STC89C52RC ;共阴数码管 ;按键 ;蜂鸣器
.
.
ABSTRACT
With the development and popularization of science and technology, a variety
of competitions more and more, in which the role of the Responder will be obvious. At present, a lot of answer basically using small-scale digital integrated circuit design, use it is not ideal. So design a more easy-to-use and high-definition of the Responder has become a very urgent task. Now MCU has entered various fields, with its power consumption is small, intelligent and known, so if the use of single-chip design to answer, so that the above problems can be resolved.In view of the above, this design to STC89C52RC single chip as the core of the eight- . We use the direct display of digital display, automatically latch the display results, and automatically reset the design, it can answer in accordance with the different input signals, through the microcontroller control and produce different input signal corresponding to the output signal, and finally through LED digital tube shows the corresponding number of road, even if the two groups of the answer time difference of a few microseconds, which can be distinguished which group of priority press the button, which makes full use of the advantages of SCM system with a simple, powerful, reliable Good, practical and strong features.
The design is based on eight-way answer for the basic idea. Taking into account the need to set the time limit to answer the function, the use of 51 MCU and peripheral interface to achieve the answer in the system, the use of single-chip timer / counter timing and counting principle, the software and hardware organically combine, making the system correctly Time, while allowing the digital tube to display the correct time. With the switch to do the keyboard output, speaker and LED indicator. At the same time the system can be achieved: in the answer, only after the beginning of the answer is valid, if in the beginning to answer before answering for foul,full time after the system automatically reset and master reset.
【Key words】 STC89C52RC, common cathode digital tube, button, buzzer
.