单片机8位抢答器实训机电报告_6位抢答器单片机实训报告要点分析.doc
電氣工程及自動化學(xué)院
單片機(jī)原理及應(yīng)用實訓(xùn)報告
題 目 : 六位搶答器
學(xué) 院 : 電氣工程及自動化
班 級 : XXXXXXXXX
姓 名 : XXXX
學(xué) 號 : XXXXXX
專 業(yè) : 電氣工程及其自動化
指導(dǎo)老師 : XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
日 期 : 2013年月2日
摘 要
?
隨著科學(xué)技術(shù)的發(fā)展和普及,單片機(jī)的應(yīng)用越來越廣泛,其中搶答器的作用也越來越重要。本組設(shè)計出以單片機(jī)為核心的六路搶答器,采用了液晶與數(shù)碼管結(jié)合顯示,聲光報警,并手動復(fù)位的設(shè)計思想。當(dāng)主持人按下按鍵,允許搶答,此時定時器10秒倒計時,一旦有選手按鍵搶答,它能根據(jù)不同的搶答輸入信號,經(jīng)過單片機(jī)的控制處理并產(chǎn)生與輸入信號相對應(yīng)的輸出信號,通過LCD1602液晶顯示相應(yīng)的路數(shù),然后蜂鳴器報警、點(diǎn)亮對應(yīng)LED燈并等待主持人發(fā)出答題信號,其他搶答者即使按下按鍵也將無效,主持人再次按鍵允許答題后,該搶答者將有10秒時間答題,此時單片機(jī)倒計時,直至倒計時結(jié)束,整個搶答、答題環(huán)節(jié)結(jié)束,充分利用了單片機(jī)系統(tǒng)結(jié)構(gòu)簡單、功能強(qiáng)大、可靠性好、實用性強(qiáng)的特點(diǎn)。
本設(shè)計是以搶答為出發(fā)點(diǎn)。考慮到依需設(shè)定限時回答的功能,利用51單片機(jī)及外圍接口實現(xiàn)的搶答系統(tǒng),利用單片機(jī)的定時器/計數(shù)器定時的原理,將軟、硬件有機(jī)地結(jié)合起來,使得系統(tǒng)能夠正確地進(jìn)行計時,同時使數(shù)碼管能夠正確地顯示倒計時間。用開關(guān)做鍵盤輸出,蜂鳴器發(fā)生提示。同時系統(tǒng)能夠?qū)崿F(xiàn):在搶答中,只有按下開始鍵后搶答才有效,如果在開始搶答前搶答為無效;滿時后系統(tǒng)計時自動復(fù)位及主控強(qiáng)制復(fù)位。
關(guān)鍵詞:六路 定時 顯示 報警
Abstract
With the development of science and technology and popularization, all kinds of competitions, including contest is more and more the role of more and more important. This paper designed STC89C52 as the core, with digital display direct instructions, automatic latch showed results, and automatic reset design ideas, it can according to different contest input signal by MCU control, handle and produce different with the input signal corresponding output signal, finally LED digital pipe display by the corresponding points, even if the two groups of vies differs a few microseconds, also time can distinguish which group of priority press buttons, fully utilize the single-chip microcomputer system structure is simple, powerful, good reliability and practicability strong characteristic. This design is for the starting point. Responder Considering the set limit to answer in 89C52 single-chip microcomputer and function, use of peripheral interfaces, scare-answering system of the micro controller timer/counter timing and numeration principle, software and hardware organically, and makes the sys
總結(jié)
以上是生活随笔為你收集整理的单片机8位抢答器实训机电报告_6位抢答器单片机实训报告要点分析.doc的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux开发
- 下一篇: 实现全国组织机构代码校验