【正文】
............................................................. 7 電源的設(shè)計 .......................................................................................... 7 時鐘頻率電路的設(shè)計 .......................................................................... 7 復(fù)位電路的設(shè)計 .................................................................................. 9 顯示電路的設(shè)計 ................................................................................... 11 數(shù)碼管簡介 ........................................................................................ 12 CD4511 七段譯碼器簡介 .................................................................. 12 按鍵電路的設(shè)計 ................................................................................... 14 蜂鳴器設(shè)計 ........................................................................................... 15 元器件焊接及調(diào)試 ................................................................................ 17 4 系統(tǒng)軟件的設(shè)計 .............................................................................................. 17 延時子程序 ........................................................................................... 19 顯示子程序 ........................................................................................... 19 倒計時加按鍵掃描子程序 ................................................................... 19 主程序及分析 ........................................................................................ 20 5 結(jié)論 .................................................................................................................. 23 參考文獻(xiàn) .............................................................................................................. 24 致謝 ...................................................................................................................... 25 附錄 1.................................................................................................................. 26 附錄 2................................................................................................................... 27 ii Contents Abstract....................................................... II Introduction.................................................... 1 1 System overview............................................... 2 The analysis of responder needs........................ 2 Responder work process ............................... 2 2 MCU features ................................................ 3 STC89C51................................................ 3 Special function register............................. 3 The internal structure of STC89c51..................... 5 3 The design of circuit system.................................. 6 The circuit system ................................... 6 The design of minimum system........................... 7 The design of power supply............................ 7 The design of clock circuit.......................... 7 The design of reset circuit ......................... 9 The design of display circuit.......................... 11 Digital tube profile................................ 12 The introduction of CD4511........................... 13 The design of key circuit ............................ 15 The design of buzzer ................................. 15 Components and welding debugging ....................... 17 4 The design of software ..................................... 19 Delay subroutine....................................... 19 Display program........................................ 19 The countdown and keyboard scanning subroutine...... 19 Main program and analysis............................. 20 5 Conclusions.................................................. 23 References..................................................... 24 Acknowledgement................................................ 25 Appendix 1..................................................... 26 Appendix 2..................................................... 27 I 基于 51 單片機(jī)的四路搶答器設(shè)計 作者:吳新春,指導(dǎo)教師:劉平 (山東農(nóng)業(yè)大學(xué) 講師) 【摘要】 本文設(shè)計以 STC89C51單片機(jī)為核心的四路搶答器。 采用了數(shù)字顯示器直接顯示,自動鎖存顯示結(jié)果,并自動復(fù)位的設(shè)計思想 ,它能根據(jù)不同的搶答輸入信號,經(jīng)過單片機(jī)的控制處理產(chǎn)生不同的與輸入信號相對應(yīng)的輸出信號,最后通過 LED 數(shù)碼管顯示相應(yīng)的路數(shù),分辨出是哪組優(yōu)先按下的按鍵,它充分利用了單片機(jī)系統(tǒng)的優(yōu)點,具有結(jié)構(gòu)簡單、功能強(qiáng)大、可靠性好、實用性強(qiáng)的特點。考慮到需限時回答的功能,利用 89C51 單片機(jī)及外圍接口實現(xiàn)的搶答系統(tǒng),利用單片機(jī)的定時器 /計數(shù)器定時和記數(shù)的原理,將軟、硬件有機(jī)地結(jié)合起來,使得系統(tǒng)能夠正確地進(jìn)行計時,同時使數(shù)碼管能夠正確地顯示時間 。 關(guān)鍵詞 : 51 單片機(jī) 四路搶答器 數(shù)碼管 最小系統(tǒng) II The design of Quad Responder based on 51 microputer Author: Wu Xinchun, Supervisor: LiuPing ( Shandong Agricultural University Lecturer ) Abstract This paper design the STC89C51 microcontroller as the core of the four road responder. Adopting digital display directly display, automatic latch display results, and the idea of the design of the automatic reset which can according to different vies to answer first the input signal, through MCU control processing in different ways with the input signals corresponding to the output signal, finally, LED digital tube display the corresponding, distinguish is which group first press the button, it makes full use of the advantages of the MCU system whih is simple in structure, the characteristics of powerful function, good reliability and strong practicability. This design is based on four road vies to answer first the basic concepts. Considering the function need time to answer, the use of 89C51 MCU and peripheral interface implementation of vies to answer first system, the MCU’s timer/counter timing and the number of principle, software and hardware anically, enables the system to accurately time, at the same time make digital tube can correctly display the time. At the same time, system can realize: in vies to answer first, only after the start of vies to answer first effectively。 Key lock, and other functions. Key words: 51 single chip microputer。