基于单片机的抢答计分课程设计论文.docVIP

  • 5
  • 0
  • 约6.1千字
  • 约 13页
  • 2018-02-28 发布于贵州
  • 举报

基于单片机的抢答计分课程设计论文.doc

基于单片机的抢答计分课程设计论文

单片机原理及系统课程设计 评语: 考勤(10) 守纪(10) 过程(40) 设计报告(30) 答辩(10) 总成绩(100) 摘 要 在许多比赛活动中,为了准确、公正、直观地判断出第一抢答者,通常设置一台抢答器,通过数显、灯光及音响等各种手段批示出第一抢答者。同时,还可以设置计分、犯规及奖惩记录等各种功能。抢答器具有第一信号鉴别和锁存功能Abstract In many competition activities, in order to accurate, fair, judges first viing to answer first intuitively, usually establishes one to vie to answer first, reveals, the light and the sound through the number and so on each method makes written comments first viing to answer first.At the same time, but also may establish the scoring, violate a regulation and the rewards and punishment record and so on each kind of function.This topic design may hold 8 group of participants also to participate, each group establishes a button to vie to answer first the use for the participant, after a group vies to answer first presses down the nixietube demonstration group number, because vies to answer first the appliance to have the first signal discrimination and the lock saves the function to cause other groups to vie to answer first invalid, after vies to answer first the group replied the question carries on the addition and subtraction minute by the director, after then the director presses repositions the key to continue to carry on vies to answer first. Key word: Vies to answer first the button, the nixietube demonstration, the replacement 八路抢答计分器 1 引言 1.1 设计目的 通过此次设计,掌握51单片机的原理,巩固已学知识,建立,正确设计、计算的各个单元电路。设计一个可容纳八组参赛者的抢答器,每组设置一个抢答按钮供抢答者使用。抢答器具有第一信号鉴别和锁存功能,使除第一抢答者外的按钮无作用。设置主持人复位按钮。主持人复位后,开始抢答,数码管显示抢答组别。设置一个计分电路,每组开始预置100分,由主持人记分,答对一次加10分,答错一次减10分。图1 系统组成框图 3 硬件设计 八路抢答计分器的硬件设计分为单片机、按键、译码、数码管显示四部分。 3.1 单片机 单片机的P0口给26个数码管送入段选码,由于P0口没有内接上拉电阻,所以要外接上拉电阻。单片机的P1口接8个抢答按钮,。单片机的P2口的P2.0至P2.2接3-8译码器,P2.3和P2.4接2-4译码器。P3口的P3.0、P3.1和P3.3接个按键,P3.2接中断,P3.4~P3.7接一个数码管以显示最先按下抢答器的组号。 3.2 按键 按键部分包括每组的抢答按钮和主持人的复位及加减键,当有一个组按下抢答器后,通过锁存器74LS373锁存后通过一个与门,这样能使抢答器在有一个组按下后其他组再按就无效了,与门输出一个信号接到单片机P3.2端口,产生一个中断信号,与门产生的信号再通过一个非门取反,与复位键产生的信号通过与非门接锁存器的LE控制端口,以锁存抢答按钮产生的信号。复位按下第一次,表示抢答开始,按下第二次主持人确认,并且操作加减分数,当复位键按下第三次的时候,进入下

文档评论(0)

1亿VIP精品文档

相关文档