资源预览内容
第1页 / 共42页
第2页 / 共42页
第3页 / 共42页
第4页 / 共42页
第5页 / 共42页
第6页 / 共42页
第7页 / 共42页
第8页 / 共42页
第9页 / 共42页
第10页 / 共42页
亲,该文档总共42页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
河 北 建 筑 工 程 学 院本本科科毕毕业业设设计计(论论文文)题目基于单片机的多路基于单片机的多路抢答器的设计抢答器的设计学 科 专 业 机械设计制造及其自动化 班 级 机 083 姓 名 孙伟 指 导 教 师 张东辉 辅 导 教 师 摘摘 要要随着科学技术的发展和普及,各种各样的竞赛越来越多,其中抢答器的作用也越来越重要。本文设计出以 80C51 单片机为核心的八路抢答器,采用了数字显示器直接指示,自动锁存显示结果,并手动复位的设计思想。它能根据不同的抢答输入信号,经过单片机的控制处理并产生不同的与输入信号相对应的输出信号,最后通过 LED 数码管显示相应的路数,即使两组的抢答时间相差几微秒,也可分辨出是哪组优先按下的按键。充分利用了单片机系统结构简单、功能强大、可靠性好、实用性强的特点。本设计是以抢答为出发点,考虑到需要设定限时回答的功能,利用 80C51 单片机及外围接口实现的抢答系统。利用单片机的定时器/计数器定时和记数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。同时系统能够实现:在抢答中,只有开始后抢答才有效,如果在开始抢答前抢答为无效;满时后系统计时自动复位。最后,利用 Prouteus 软件进行程序的仿真,在电脑上模拟抢答的过程。关键词:单片机;抢答器;关键词:单片机;抢答器;LEDLED 显示器;共阳极显示器;共阳极ABSTRACTWith the development and popularization of science and technology , all kinds of competitions are becoming more and more popular. Thus the role of the answer devices becomes more and more important. This paper designed an eight-way answer device centering on the 80C51 SCM , using the idea that digital display instructs the results directly, latches theresults automaticly, and resets by hands. According to different contest input signal, it can produce different output signal that measures to the input signal through the control of the SCM. Finally, display the corresponding ways by the LED monitor. Our answer device can distinguish which group press the buttons of first even if the competition time between two groups differs a few microseconds. It utilizes the single-chip microcomputers characteristic of simple system structure , powerful, good reliability and strong practicability fully.This design is a system that starts with answer quickly, considering the function of setting limit time to answer, achieved through 80C51 single-chip microcomputer and peripheral interfaces. It joins software and hardware organically through the SCMs principle of microcontroller timer/counter timing and numeration .Thus the system can keep time correctly, and make the digital tube show time correctly at the same time. This system slao can realizes the function that players can press the answer button after master press the beginning button only,or it wouldnt be effective.When the setting time is full,the system resets automaticly.Finally,there is a pross of simulating through an softwere named Proteus.K Ke ey y W Wo or rd ds s:M Mi ic cr ro oc co on nt tr ro ol ll le er r; ; R Re es sp po on nd de er r ; ; L LE ED D m mo on ni it to or r ; ; c co om mm mo on n a an no od de e目目 录录第 1 章 绪论.11.1 选题依据及研究意义.11.2 课题的研究领域.21.3 单片机简介.2 第 2 章 系统的总体设计.52.1 总体设计过程概述.52.1.1 基本功能.52.1.2 扩展功能.52.2 多路抢答器系统的构成及工作原理.62.2.1 系统构成.62.2.2 系统的工作原理.7 第 3 章 系统硬件设计.83.1. 单片机控制单元 .83.2. 单片机的选择 .83.2.1 单片机的选择.83.2.2 单片机的基本结构.83.3 单片机的最小系统.103.4 数码管显示电路.113.5 时钟频率电路的设计.133.6 复位电路的设计 .113.6.1 复位电路的可靠性设计.113.6.2 人工复位.123.6.3 80C51 单片机复位后的状态.123.7 系统元器件清单.17 第 4 章 系统的软件设计.194.1 抢答器流程图.194.2 抢答器 I/O 口地址分配.214.3 抢答器接线图.21
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号