【正文】
t is on the display output of timing function by timing circuit, decoding, circuit will seconds pulse signal constitutes. Main circuit of control circuit, host switches on the alarming circuit constitutes. Digital contest device after wiring, missioning forming and welding etc. SCM in order to make the realization of buffer circuit for more simple, simplified the hardware circuit, put a lot of outer task was to the software programming. SCM not only convenient for use, small volume and price is low, is stable and reliable. If the application endowed with singlechip microputer new life, then scareanswering system body is the hardware structure by singlechip microputer system gives, thus make it before the contest is in general with lower cost and circuit is simple and reliable operation, etc. Are the players do responder for fetting the responder players when, grab the player will answer questions. Contest is not only test players should have enough knowledge also test players speed of response also need a certain amount of courage. For the players are a fair and impartial, because they all stand in the same starting line. Key Words: timing circuit contest circuit alarm circuit 3 目錄 第一章 緒論 .............................................................. 4 單片機搶答器的背景 ................................................ 4 單片機搶答器的意義 ................................................ 5 搶答器的應(yīng)用 ...................................................... 5 第二章 搶答器的概述及制作要求 ............................................ 6 搶答器的概述 ...................................................... 6 設(shè)計任務(wù)、要求和知識點 ............................................ 7 第三章 單片機芯片的選擇及模塊性能分析 ..................................... 8 單片機芯片的選擇 .................................................. 8 模塊性能分析 ..................................................... 12 第四章 電路設(shè)計 ......................................................... 14 總體設(shè)計 ......................................................... 14 外部振蕩電路(晶振電 路) ......................................... 17 復(fù)位電路的設(shè)計 ................................................... 18 顯示電路的設(shè)計 ................................................... 19 按鈕輸入電路的設(shè)計 ............................................... 20 發(fā)聲電路 ......................................................... 22 第五章 系統(tǒng)軟件設(shè)計 ..................................................... 23 搶答器流程圖 ..................................................... 23 主程序 ........................................................... 24 中斷程序 ......................................................... 26 第六章 仿真演練 ........................................................... 30 總結(jié)和 結(jié)束語 ............................................................. 30 參考文獻 ................................................................. 32 4 第一章 緒論 單片機搶答器的背景 二十世紀跨越了三電的時代,即電氣時代、電子時代和現(xiàn)已進入的電腦時代。它由主機、鍵盤、顯示器等組成。這種計算機就是把智能賦予各種機械的單片機(亦稱微控制器 )。因為它體積小,通常都藏在被控機械的 內(nèi)部 ?,F(xiàn)在,這種單片機的使用領(lǐng)域已十分廣泛,如智能儀表、實時工控、通訊設(shè)備、導(dǎo)航系統(tǒng)、家用電器等?,F(xiàn)在有些工廠的技術(shù)人員或其它業(yè)余電子開發(fā)者搞出來的某些產(chǎn)品,不是電路太復(fù)雜,就是功能太簡單且極易被仿制。 在知識競賽中,特別是做搶答題時,在搶答過程中,為了 更確切的 知道哪一組或哪一位選手先 搶 答 到 題,必須要有一個系統(tǒng)來完成這個任務(wù)。利用單片機 編程 來設(shè)計搶答器, 可以 使以上問題得以解決,即使兩組的搶答時間相差幾微秒,也 能輕松的 分辨出哪 一組或哪個選手 先搶 答 到 題的 。 5 單片機搶答器的意義 本系統(tǒng)采用單片機作為整個控制核心。該系統(tǒng)通過開關(guān)電路四個按鍵輸入搶答信號;利用一個數(shù)碼管來完成顯示功能 ;用按鍵來讓選手進行搶答 ,在數(shù)碼管上顯