【正文】
定時間和回答問題的時間可在 199s 設定;可以顯示是哪 位選手有效搶答和無效搶答,正確按鍵后有音樂提示;搶答時間和回答問題時間倒記時顯示,滿時后系統計時自動復位及主控強制復位;按鍵鎖定,在有效狀態(tài)下,按鍵無效非法。 考慮到依需設定限時回答的功能 , 利用 AT89C51單片機及外圍接口實現的搶答系統,利用單片機的定時器 /計數器定時和記 數的原理,將軟、硬件有機地結合起來,使得系統能夠正確地進行計時, 同時使數碼管能夠正確地顯示時間。 作 為一個單位 ,如果 專 門 購一臺搶答器雖然在經濟上可以承受,但每年使用的次數極少,往往因長期存放使(電子器件的)搶答器損壞,再購置的麻煩和及時性就會影響活動的開展 , 因此設計了本搶答器。 T r a d e 畢業(yè)設計 說明書 基于 51 的 八路 搶答器設計 與制作 Based on 51 of the eight way Responder design andproduction 所在系院 : 電氣與信息工程系 專業(yè)班級 : 機電一體化( 2)班 學生學號 : 2022350252 學生姓名 : 張兵 指導教師 : 劉旭 2022 年 12 月 15 日安徽工貿職業(yè)技術學院畢業(yè)設計 (論文 ) 基于 51 的 八路 搶答器設計 與制作 摘要 搶答器作為一種工具,已廣泛應用于各種智力和知識 競賽場合。 T r a d e 畢 業(yè) 論 文 基于 51 的 八路 搶答器設計 與制作 Based on 51 of the eight way Responder design andproduction 所在系院 : 電氣與信息工程系 專業(yè)班級 : 機電一體化 ( 2)班 學生學號 : 2022350252 學生姓名 : 張兵 指導教師 : 劉旭 2022 年 12 月 15 日 安徽工貿職業(yè)技術學院畢業(yè) 設計(論文) 1 A n h u i Vo c a c t i o n a l amp。安徽工貿職業(yè)技術學院畢業(yè)設計 (論文 ) A n h u i Vo c a c t i o n a l amp。 Te c h n i c a l C o l l e g e o f I n d u s t r y amp。 Te c h n i c a l C o l l e g e o f I n d u s t r y amp。但搶答器的使用頻率較低,且有的要么制作復雜,要么可靠性低。 本設計是以 八路 搶答為基本理念 。用開關做鍵盤輸出,揚聲 器發(fā)生提示。 關鍵詞 : AT89C51 LED 數碼管 搶答器 計時 安徽工貿職業(yè)技術學院畢業(yè) 設計(論文) 2 Take to Responder as a tool, has been widely used in various occasions intelligence and knowledge petitions. But Qiangda is used for lower frequency, and some production plex, or low reliability. As a unit, if specifically to buy a responder although the economy can bear, each year the number is extremely small, often because of the longterm storage ( electronic devices) responder damage, to the purchase of the trouble and the timeliness of activities will be affected, so the design of the responder. This design is eight way contest as the basic concept. Considering the timelimited answer according to need to set the function, using AT89C51 MCU and peripheral interface of the answering system, the use of singlechip timer / counter timing and counting principle, the soft and hardware bination, so that the system can correctly time, while the digital tube able to correctly display the time. Switching with the keyboard output, speakers in tips. At the same time the system can realize: the answer, only after the start of the answer is effective, if at the beginning of answer answer answer before the time limit is invalid。 can display which is effective and ineffective players answer answer keys, right after the music cue。 key lock, in effective state key invalid, illegal. Key words: AT89C51 digital tube LED responder 安徽工貿職業(yè)技術學院畢業(yè)設計 (論文 ) I 目 錄 1 緒 論 ................................................................. 1 課題研究的相關背景 .................................................... 1 選題的目的和意義 ...................................................... 1 課題研究的內容 ........................................................ 1 2 搶答器的系統概述 .................................................... 2 系統的主要功能 ........................................................ 2 系統需求分析 .......................................................... 4 搶答器的工作流程 ...................................................... 4 搶答器的工作過程 ...................................................... 5 器件選型方案及詳細清單 ................................................ 6 AT89C51 特殊功能寄存器 ................................................ 6 AT89C51 的功能及簡介 .................................................. 7 搶答器的優(yōu)點及組成 .................................................... 9 本章小結 .............................................................. 9 3 系統總體方案的設計 ................................................. 10 硬件電路的設計 ....................................................... 10 總體原理圖 ........................................................... 11 時鐘頻率電路的設計 ................................................... 12 復位電路的設計 ....................................................... 12 顯示電路的設計 ....................................................... 13 鍵盤掃描電路的設計 ................................................... 15 發(fā)聲電路 ............................................................. 18 系統復位 ............................................................. 19 本章小結 ............................................................. 20 4 軟件設計 ............................................................. 20 主程序系統結構圖 ..................................................... 20 軟件任務分析 ......................................................... 21 安徽工貿職業(yè)技術學院畢業(yè) 設計(論文) II 程序流程圖 ........................................................... 22 主要程 序分析 ......................................................... 23 本章小結 ............................................................. 35 5 PROTEUS 仿真系列組圖 ............................................... 35 復位圖 ............................................................... 35 設置計時時間 ......................................................... 36 非法搶答并顯示座號 ................................................... 36 搶答成功并顯示倒計時 ................................................. 36 本章小結 ............................................................. 37 6 總結與展望 .......................................................... 37 總結 ................................................................. 37 展望 ................................................................. 38 參 考 文 獻 ............................................................ 40 致 謝 ..................