【正文】
單片機原理及系統(tǒng)課程設計報告 1 摘 要 搶答器是一種應用非常廣泛的設備,在各種競賽、搶答場合中,它能迅速、客觀地分辨出最先獲得發(fā)言權的選手。早期的搶答器只由幾個三極 管、可控硅、發(fā)光管等組成,能通過發(fā)光管的指示辯認出選手號碼。 目前 大多數(shù)搶答器均使用單片機 (如 MCS51 型 )和數(shù)字集成電路。本 設計 利用 89C51 單片機及外圍接口實現(xiàn)多路 搶答系統(tǒng),利用單片機的定時器 /計數(shù)器定時和記數(shù)的原理,將軟、硬件有機地結合起來,使得系統(tǒng)能夠正確地進行計時,同時使數(shù)碼管能夠正確地顯示時間。 關鍵詞:搶答器;單片機 89c51 ; 數(shù)字集成電路;定時器 /計數(shù)器 Abstract Responder is a kind of widely used equipment, in all kinds of petition, vies to answer first occasion, it can quickly and objectively identify the players get voice. Early responder only by a few triode, SCR, luminous tube, etc, can through the luminous tube instructions recognition player number. Now most of the responder all use SCM (such as MCS 51 type) and digital integrated circuit, This topic USES 89 c51 and peripheral interface implementation vies to answer first system, with the help of the microcontroller timer/counter timing and number principle, software and hardware anically, and makes the system can correctly to the time, at the same time make digital tube display the time correctly. Key Words: Responder, 89c51, Digital integrated circuit, Timer/counter 單片機原理及系統(tǒng)課程設計報告 2 1. 引言 目前 電 視節(jié)目日益 豐富,其中的競賽環(huán)節(jié)也越來越多,其中搶答器是不可或缺的器材。 它能準確、公正、直觀地判斷出第一搶答者 。本次設計 通過 Proteus 軟件設計 并 利用 KeilC 軟件編輯程序,仿真驗證 。 使系統(tǒng)能夠完成多路搶答。 2. 設計方案及原理 本次設計的 搶答過程主要分為 準備搶答,開始搶答,開始答題以及答題結束四個階段 。 本方案以 AT89C51 單片機作為主控核心,與晶振、數(shù)碼管等構成二路