【正文】
本科畢業(yè)設(shè)計(jì) (論文 ) 題目 : 數(shù)字頻率計(jì)設(shè)計(jì) 教學(xué)單位: 機(jī)電工程系 專 業(yè): 自動(dòng)化 20xx 年 5 月 I 摘 要 設(shè)計(jì)以 AT89C51 單片機(jī)為核心,被測(cè)的矩形波或者方波整形為脈沖后輸入單片機(jī)。利用單片機(jī)的計(jì)數(shù)器和定時(shí)器的功能對(duì)被測(cè)信號(hào)進(jìn)行計(jì)數(shù)。編寫相應(yīng)的程序可以使單片機(jī)自動(dòng)調(diào)節(jié)測(cè)量的量程,并把測(cè)出的頻率數(shù)據(jù)送到顯示電路顯示。 本設(shè)計(jì)的目的是通過對(duì)單片機(jī)原理及應(yīng)用的學(xué)習(xí),以及查閱相關(guān)資料,培養(yǎng)自學(xué)與動(dòng)手能力,把 學(xué)到的知識(shí)應(yīng)用到日常生活當(dāng)中。在設(shè)計(jì)的過程中,不斷的補(bǔ)充不知道的知識(shí)、鞏固所學(xué)、相互討論,運(yùn)用科學(xué)分析問題的方法解決設(shè)計(jì)中遇到的困難,掌握單片機(jī)系統(tǒng)一般的開發(fā)流程,學(xué)會(huì)對(duì)常見問題的處理方法,積累設(shè)計(jì)系統(tǒng)的經(jīng)驗(yàn),充分發(fā)揮教學(xué)與實(shí)踐的結(jié)合。設(shè)計(jì)出符合要求的數(shù)字頻率計(jì)。 關(guān)鍵詞 :?jiǎn)纹瑱C(jī);數(shù)字頻率計(jì);設(shè)計(jì); II Abstract Design USES AT89C51 microcontroller as the core, measured in square wave or a square wave input microcontroller after plastic for pulse. Using single chip microputer counter and timer function to count the signal to be measured. Write the corresponding program can make the single chip microputer automatic adjust the range of measurement, and send the frequency of the measured data display circuit. The purpose of this design is based on single chip microputer principle and application of learning, and access to relevant data, the cultivation of selfstudy and practical ability, the application of knowledge to the daily life. Supplement in the process of design, and constantly don39。t know knowledge, consolidate learning, mutual discussion, using the scientific method to analyze the problem to deal with the difficulties encountered in the design, master the singlechip microputer system development process, learn to deal with mon methods, accumulate the experience of the design system, give full play to the bination of teaching and practice. Digital frequency meter designed to meet the requirements. Key words: single chip microputer。 Digital frequency meter。 Design。 III 目 錄 第 1 章 前言 ...........................................................................................................................1 題目背景及研究意義 .................................................................................................1 設(shè)計(jì)內(nèi)容及參數(shù)要求 .................................................................................................2 設(shè)計(jì)內(nèi)容 .........................................................................................................2 參數(shù)要求 .........................................................................................................2 第 2 章 方案的設(shè)計(jì)與論證 ......................................................................................................3 測(cè)頻原理 ...................................................................................................................3 方案一 ......................................................................................................................4 方案二 ......................................................................................................................4 方案選擇 ...................................................................................................................5 第 3 章 硬件的設(shè)計(jì) ................................................................................................................6 基本設(shè)計(jì)原理 ............................................................................................................6 系統(tǒng)硬件模塊關(guān)系 .....................................................................................................6 系統(tǒng)總體 .........................................................................................................6 單片機(jī)管腳說明 ...............................................................................................7 單片機(jī) I/O 口分配表 ...................................................................................... 10 頻率顯示電路 ................................................................................................ 10 時(shí)鐘電路 ....................................................................................................... 10 電源電路 ....................................................................................................... 11 復(fù)位按鈕 ....................................................................................................... 11 數(shù)碼管顯示電路 ............................................................................................. 12 輸入信號(hào)的要求 ............................................................................................. 14 最終的硬件電路圖 ................................................................................................... 15 第 4 章 軟件的設(shè)計(jì) .............................................................................................................. 16 程序的流程圖 .....