单片机抢答器毕业论文简介.doc

单片机抢答器毕业论文简介

宜宾职业技术学院 毕业论文(设计) 基于单片机的抢答器设计 系 部 自动控制工程系 专 业 名 称 电气自动化技术 班 级 电气1101班 姓 名 温 冬 梅 学 号 201011331 指 导 教 师 凌 泽 明 2012年 10 月 8 日 摘 要 本文利用单片机AT89C51为核心器件,数码管作为显示模块,从硬件和软件两个方面设计实现了一个八人抢答器系统,并经过调试和运行使该系统到达预期目标。具有抢答功能,显示功能,抢答时间倒计时,时间设定,还有数据的清零,选手犯规报警功能。它充分利用了单片机系统的优点,具有结构简单、功能强大、可靠性好、反应迅速、结果准确。考虑到需设定限时回答的功能,利用AT89C51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时和记数的原理,将软、硬件结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示时间。用开关做键盘输出,蜂鸣器发声提示。 关键词:AT89C51;八人抢答器;显示;报警 Abstract In this paper, using AT89C51 MCU as the core device, digital tube as the display module, from two aspects of hardware and software design and Realization of a eight responder system, and after commissioning and operation of the system to reach the expected goal. A responder function, display function, the answer time countdown, the time setting, there are data clearing, player fouls alarm function. It makes full use of the computer system, which has the advantages of simple structure, powerful function, high reliability, fast response, accurate results. Taking into account the need to set the time response function, using AT89C51 MCU and peripheral interface of the answering system, the use of single-chip timer / counter timing and counting principle, the soft, hardware combine, so that the system can correctly time, while the digital tube able to correctly display the time. By switching the keyboard output, buzzer sound prompts. Key words: AT89C51; eight responder; display; alarm 目录 1绪论 1 1.1选题背景、目的、意义 1 1.2八路抢答器的概述 2 1.3系统主要功能 2 2方案设计 4 2.1主控制电路的选型 4 2.2复位电路的设计 5 2.3外部震荡电路的设计 6 2.4报警电路的设计 7 2.5显示电路的设计 7 2.6键盘电路的设计 8 3硬件电路设计 10 3.1硬件电路的概述 10 3.2主控制电路的选型 11 3.3复位电路 12 3.4外部震荡电路 12 3.5报警电路 13 3.6显示电路 13 3.7键盘电路 14 3.8抢答器电路图 15 4软件设计 16 4.1软件设计原理框图 16 4.2程序流程图 16 4.3抢答器的工作流程图 18 4.4系统初始化模块 19 4.5正确抢答模块 20 4.6非法抢答模块 22 4.7数码管显示 23 5系统软件仿真 25 5.1电源参数及功耗 25 5.2抢答器使用说明 25 5.3程序仿真结果与分析 25 6总结 29 致谢 30 参考文献 31 附录 1 源程序清单 32 1绪论 1.1选题背景、目的、意

文档评论(0)

1亿VIP精品文档

相关文档