基于at89s51单片机的八路抢答器设计.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于at89s51单片机的八路抢答器设计

摘 要 本文是用AT89S51单片机设计的八路抢答器,采用了数字显示器直接指示,自动锁存结果,自动复位的思想,它能根据不同的输入信号,经过单片机的处理,最后通过LED数码管,分辨出是哪组优先按下的按键。 考虑到设定限时回答的功能,利用89S51单片机及外围接口实现的抢答,利用单片机的定时器/计数器定时和计数的原理,将软、硬件结合起来,使其能正确地计时,同时使数码管能正确地显示时间。开关做键盘输出,扬声器发生提示。在抢答中,只有开始抢答后才有效,满时后系统计时自动复位。 抢答器;单片机;LED数码显示管;定时器/计数器 AbstractThe answering machine of eight groups vies was designed by AT89S51 in this paper. The vies use the direct instructions of the digital display, automatic latch results, and the automatic reset ideas, which it can distinguish which group press buttons first according to different input signal after the signal was dealed with by the singlechip and the result will be displayed on the LED digtal display tube. Considering the function of setting time limit to answer and the vies using 89S51 singlechip.This paper take advantage of the principle of timer ,counter.it combined the hardware with software to accaculate the time.meantime,the digital tube can display the time punctual.the switch can output the data with keyboard ,and the speaker can point out the signal. And it will be valid after the button was switched on.The system will reset after timing out. Key Words: vies singlechip LED digital display tube timer/counter 目 录 前 言 1 第1章 抢答器的概述 2 1.1 系统设计的功能 2 1.1.1 基本功能.......................................................2 1.1.2扩展功能........................................................2 1.2 抢答器的分析 2 1.3 抢答器的硬件设计 3 1.4抢答的工作过程 4 第2章 单片机的功能简介 5 2.1 89系列单片机的概述 5 2.2 AT89S51单片机的内部结构 5 第3章 硬件电路的设计 7 3.1 总电路原理 7 3.2 时钟频率电路的设计 8 3.3复位电路的设计 9 3.3.1 复位电路的可靠性设计 ..........................................9 3.3.2 人工复位 .....................................................10 3.4 显示电路的设计 10 3.4.1 显示模块在系统硬件中的安排 ...................................10 3.5 扫描电路的实现 12 3.5.1 按钮输入的硬件处理 ...........................................12 3.6 发声 12 3.7 系统复位 13 第4章 软件设计 15 4.1 软件任务分析 15 4.2 显示子程序的设计 15 4.3 定时器T0、T1中断服务程序的设计 16 4.4 抢答器处理程序的设计 17 4.5 程序及分析 18 结 论 30 参考文献 31 谢 辞 32 前 言 数字技术是当前发展最快的学科之一,数字逻辑器件已从60年代的小规模集成电路(SSI

文档评论(0)

shujukd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档