1、 本科生毕业设计(论文、创作)本科生毕业设计(论文、创作) 题题 目目 基于单片机的数字式 竞赛抢答器的设计 2014 年年 06 月月 目目 录录 内容摘要 . 2 关 键 词 . 1 Abstract 1 Keywords 1 1. 序论 . 2 1.1 单片机的发展历史及其应用 . 2 1.2 单片机抢答器的背景及意义 2 1.3 本设计的方案 2 1.4 本设计中抢答器的主要功能 . 3 2. 硬件电路设计 . 4 2.1 AT89C51 单片机 4 2.2 键盘电路 . 6 2.3 显示驱动电路 . 8 2.4 蜂鸣报警器电路 . 9 2.5 电源电路 10 3. 软件部分 11 3
2、.1 单片机内部信号分析 11 3.2 主要程序流程 11 4. 软件仿真与硬件调试 13 4.1 软件仿真 13 4.2 硬件调试 14 5. 结论 14 参考文献 16 致谢 17 附录 1 整机电路 18 附录 2 源程序 19 1 内容摘要内容摘要:随着抢答竞赛节目的涌现,抢答器也形形色色,但是基于单片机的 数字式抢答器因为其诸多优点而越来越被人们重视。本设计就是利用单片机为核 心部件的,主要由硬件部分和软件部分组成。硬件部分包括单片机、驱动器、显 示屏、报警器以及操作按键,这些共同构成了抢答器的身体;软件部分给予了抢 答器生命,这要归功于汇编语言,本设计使用了单片机汇编语言和 C 语
3、言。本设 计可以显示抢答、犯规选手号和抢答、答题倒计时,可以犯规报警,还可以锁存 选手号码。电路简单、功能齐全是本设计的特色,单片机价格低且能对竞赛过程 进行精准控制,综合来说本设计性价比较高。 关关 键键 词词:单片机 抢答器 报警器 Abstract:With the emergence of competition program Responder, Responder also diverse, but the microcontroller-based digital answering device because of its many advantages and has b
4、een growing attention. This design is the use of the microcontroller core components, mainly by hardware components and software components. The hardware includes a microcontroller, drives, displays, alarms and keys, which together constitute the Responder body; software is a compilation of some of
5、the major languages, including microcontroller assembly language and C language, assembly language is both soul Responder make fresh technology. The design of the LED display can show answer, and the answer fouls player number, answer the countdown; alarm alarm can answer fouls and timeouts alarm la
6、tch also has an automatic latch, set, clear function. Circuit is simple, functional design is characteristic of the low price and can Microcontroller precise control of the contest process, to sum up the higher cost of the design. Keywords:SCM Responder alarm 2 1. 1. 序论序论 1.1 1.1 单片机的发展历史及其应用单片机的发展历史及其应用 单片机的发展分为以“48 系列单片机的推出”为标志的单片机形成阶段、以 “51 系列单片机的推出”为标志的结构成熟阶段和以“AT89C51 单片机的推出” 为标志的性能提高阶段。 单片机的应用领域非常之广,究其原因不外乎三个方面:第一,由于单片机 价格低,适合于大批量低成本的产品设计且单片机的品种和型号多;第二,因为 单片机的引脚少、体积小、从而电路板减小,使产品小巧