1、 目 录 摘 要. I 关键词 I Abstract I key words II 1 前 言 1 1.1 课题研究的背景. 1 1.2 课题研究的意义 2 2 竞赛抢答器的硬件与软件的设计与实现 2 2.1 方案的确定 2 2.2 设计步骤 3 2.3 电路原理图的设计 3 2.3.1 电路组成框图. 4 2.4 竞赛抢答器各部分电路原理图介绍 4 2.4.1 单片机最小系统. 4 2.4.2 按键电路. 7 2.4.3 显示电路. 8 2.4.4 报警电路. 8 2.4.5 时钟电路. 9 2.4.6 复位电路. 9 2.5 制板 . 10 2.5.1 设计原理图 10 2.5.2 定义元
2、件封装 10 2.5.3 设置 PCB 图纸 11 2.5.4 生成网表和加载网表 11 2.5.5 布线调试及故障分析系统软件的设计 11 2.6 系统软件的设计 . 11 2.6.1 主流程 12 2.6.2 按键扫描流程 12 2.6.3 中断流程图 13 2.6.4 编译及仿真软件软件 14 3 调试及故障分析. 15 3.1 硬件焊接及故障分析 . 15 3.2 程序调试 . 16 4 总结. 17 参考文献. 18 致 谢 19 附录:. 20 I 智力竞赛抢答器的设计与实现智力竞赛抢答器的设计与实现 摘 要 本设计是以单片机 STC89C52 为核心控制器件, 利用单片机的定时器
3、/计数 器定时和计数的原理,将软、硬件有机地结合起来,使得系统能够正确地进行 计时,同时使数码管能够正确地显示时间和选手号码。用开关做键盘输出,蜂 鸣器发声提示。在抢答中,只有在抢答开始即按键有效状态下,抢答才有效, 否则,在开始抢答前抢答为无效;可以显示是哪位选手有效抢答和无效抢答, 正确按键后有蜂鸣器提示;抢答时间和回答问题时间倒记时显示,时间完后时 间计时停止,蜂鸣器在最后五秒内告警提示。本文主要介绍了竞赛抢答器的硬 件电路和软件程序的设计思路和具体过程,并最终给出硬件原理图、源程序以 及各自的流程图。 关键词关键词 智力竞赛抢答器;电路设计;程序设计 The Design and Im
4、plementation of Competition Intelligent Buzzer Abstract This design is based on microcontroller STC89C52 as the core control device, the use of single-chip timer/counter timing and counting principle, the software and hardware organically, enables the system to correct time, at the same time enable
5、digital tube to show time and player number correctly. Made the keyboard switch output, buzzer sound prompt. In vies to answer first, only at the beginning of the vies II to answer first the key effective state, the contest is valid, otherwise, before starting the vies to answer first vies to answer
6、 first as invalid; Which is contestant vies to answer first effectively, and can display the invalid vies to answer first, right button after the buzzer hint; Vies to answer first time and answer the questions time events, according to the time after time timer stop, buzzer alarm prompt. In the last five seconds Competition responder is mainly introduced in this paper the hardware circuit and software program design ideas and specific process, and finally gives the principle diagram o