基于AT89S52单片机的抢答器设计 下载本文

内容发布更新时间 : 2024/5/4 16:49:21星期一 下面是文章的全部内容请认真阅读。

摘 要

随着电子技术的发展,抢答器作为一种电子产品,早已广泛应用于企业单位、学校和电视台,为各种知识竞赛、文娱活动提供公正客观快速的裁决。它能迅速、客观地分辨出哪位选手最先按下的抢答键,大大增强了比赛的公平性,给人们带来了很大的方便。而随着科学技术的不断发展,以单片机作为主控制器的抢答器占据了主要的地位。

本文利用单片机AT89S52为核心器件,数码管做为显示模块,从硬件和软件两个方面设计实现了一个六路抢答器系统,并经过调试和运行使该系统到达预期目标。具有抢答功能,显示功能,抢答时间倒计时,时间设定,还有数据的清零,选手犯规报警功能。它充分利用了单片机系统的优点,具有结构简单、功能强大、可靠性好、反应迅速、结果准确。

关键词:单片机,抢答器,显示

Abstract

Along with the development of electronic technology, Responder is a common electronic products, already widely applies in the Enterprise unit, the school and the television station, for each kind of knowledge competition, the recreational activities provide the fair、objective and fast ruling. Can it rapid which contestant distinguish to press down first key objectively,Strengthened competition's fairness greatly,has brought very big convenient to the people.

This article uses Microcontroller AT89S52 is the core component, the nixietube does for the display module,designed from the hardware and the software two aspects realize six groups

responder system,and by the debugging and the running to enable this system arrive at the

anticipated target.It has respond function, demonstrates the function, vies to answer the first time countdown, the time setting, but also has the data reset, the warning function.It has used the

Microcontroller system's advantage fully, has the simple structure, the powerful function, the

good reliability , the rapid response , the accurate result.

Keywords: Microcontroller,Responder, display

目 录

1 任务提出与方案论证 ................................................................................................ 1

1.1设计要求 ......................................................................................................... 1 1.2方案论证 ......................................................................................................... 1 2 总体设计 .................................................................................................................... 2

2.1 AT89S52单片机介绍 ..................................................................................... 2 2.2 硬件电路总框图 ............................................................................................ 4 2.3 程序系统结构图 ............................................................................................ 5 3 详细设计 .................................................................................................................... 6

3.1硬件设计及其功能介绍 ................................................................................. 6 3.2软件实现及其仿真 ....................................................................................... 10 4 总结 .......................................................................................................................... 13 参考文献 ...................................................................................................................... 14 附录一: ...................................................................................................................... 15