单片机8位抢答器实训机电报告_6位抢答器单片机实训报告要点分析.doc

电气工程及自动化学院

单片机原理及应用实训报告

题 目 : 六位抢答器

学 院 : 电气工程及自动化

班 级 : XXXXXXXXX

姓 名 : XXXX

学 号 : XXXXXX

专 业 : 电气工程及其自动化

指导老师 : XXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXX

日 期 : 2013年月2日

摘 要

?

随着科学技术的发展和普及,单片机的应用越来越广泛,其中抢答器的作用也越来越重要。本组设计出以单片机为核心的六路抢答器,采用了液晶与数码管结合显示,声光报警,并手动复位的设计思想。当主持人按下按键,允许抢答,此时定时器10秒倒计时,一旦有选手按键抢答,它能根据不同的抢答输入信号,经过单片机的控制处理并产生与输入信号相对应的输出信号,通过LCD1602液晶显示相应的路数,然后蜂鸣器报警、点亮对应LED灯并等待主持人发出答题信号,其他抢答者即使按下按键也将无效,主持人再次按键允许答题后,该抢答者将有10秒时间答题,此时单片机倒计时,直至倒计时结束,整个抢答、答题环节结束,充分利用了单片机系统结构简单、功能强大、可靠性好、实用性强的特点。

本设计是以抢答为出发点。考虑到依需设定限时回答的功能,利用51单片机及外围接口实现的抢答系统,利用单片机的定时器/计数器定时的原理,将软、硬件有机地结合起来,使得系统能够正确地进行计时,同时使数码管能够正确地显示倒计时间。用开关做键盘输出,蜂鸣器发生提示。同时系统能够实现:在抢答中,只有按下开始键后抢答才有效,如果在开始抢答前抢答为无效;满时后系统计时自动复位及主控强制复位。

关键词:六路 定时 显示 报警

Abstract

With the development of science and technology and popularization, all kinds of competitions, including contest is more and more the role of more and more important. This paper designed STC89C52 as the core, with digital display direct instructions, automatic latch showed results, and automatic reset design ideas, it can according to different contest input signal by MCU control, handle and produce different with the input signal corresponding output signal, finally LED digital pipe display by the corresponding points, even if the two groups of vies differs a few microseconds, also time can distinguish which group of priority press buttons, fully utilize the single-chip microcomputer system structure is simple, powerful, good reliability and practicability strong characteristic. This design is for the starting point. Responder Considering the set limit to answer in 89C52 single-chip microcomputer and function, use of peripheral interfaces, scare-answering system of the micro controller timer/counter timing and numeration principle, software and hardware organically, and makes the sys

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值