1、 单片机课程设计报告 项目名称 基于单片机的抢答器设计 专业班级 通信 111 班 学生姓名 # 指导教师 # 2013 年 12 月 28 日 通信通信#班,班, # 基于单片机的基于单片机的抢答器抢答器设计设计 I 摘 要 此次设计提出了用 STC89C52 单片机为核心控制元件,设计一个简易的抢答器, 本 方案以 STC89C52 单片机作为主控核心,发光二极管、数码管、蜂鸣器等构成四路抢答 器,利用了单片机的按键复位电路、时钟电路、定时/中断等电路,设计的抢答器具有 实时显示抢答选手的号码的特点,还有复位电路,使其再开始新的一轮的答题和比赛, 同时还利用 C 语言编程,使其实现一些基本
2、的功能。 本设计的系统实用性强、判断精确、操作简单、扩展功能强。它的功能实现是比赛 开始,主持人读完题之后按下总开关,此时数码管显示初始状态 0,直到有一个选手抢 答时,对应的会在数码管上显示出该选手的编号,同时发光二极管出现闪烁状态,蜂鸣 器也会发出声音,以提示有人抢答本题,主持人按下复位键,示意可以答题。 关键字关键字:STC89C52 单片机;动态显示;中断;按键控制 通信通信#班,班, # 基于单片机的基于单片机的抢答器抢答器设计设计 II Abstract This design use STC89C52as the core control element is presented
3、 to design a simple responder, this scheme is STC89C52 single chip microcomputer as control core, light-emitting diode, digital tube, buzzer and so on four road vies to answer first device, using the single chip microcomputer button reset circuit, clock circuit, timing/interrupt circuit, design of v
4、ies to answer first appliance has the characteristic of real-time display vies to answer first contestants number, and reset circuit, to start a new round of the answer and, at the same time also use of C language programming, make it implements some basic functionality. The design of the system is
5、practical, accurate judgment, simple operation, strong extended functionality. Its function realization is the match began, and the host to read the topic after press the main switch, the digital tube display initial condition 0, until there is a contestant vies to answer first, the corresponding in
6、 the contestants serial number is shown on the digital tube, light-emitting diodes, flicker status at the same time, the buzzer will sound, to remind someone vies to answer first ontology, host press the reset button, the signal can be the answer. Keywords: STC89C52 microcomputer; Dynamic display; Interrupt; The key control 通信通信#班,班, # 基于单片机的基于单片机的抢答器抢答器设计设计 III 目 录 摘 要