【正文】
ABSTRACT In the field of electronic technology, the frequency is basic parameter, Frequency 浙江科技學(xué)院信息與電子工程學(xué)院 2020 屆畢業(yè)設(shè)計(jì)(論文) 班 級(jí): 電子信息工程 A1 姓名: 連炎鑒 學(xué)號(hào): 103023027 第 III 頁 共 36 頁 of Detection and many of the measurement of electrical parameters have a very close relationship. Therefore, the measurement of frequency is even more important. This paper introduces the hardware and software design of frequency meter. The part of hardware constitute the core control circuits adopted AT89C2051. This design uses of AT89C2051 as the pulse input counting parts of analytic signal frequency. The timer of T1 is used to count the signal pulse cycle. The results of measurement display in the 4 LED digital tubes with a decimal number. The design of software is achieved with the method of Programming Module, and to achieve the measurement of frequency and display the results. Protel and Keil uVision2 are used in the design process. The performance of many electrical types of equipment which exported should be tested under the 60 Hz AC power. We must use frequency meter to monitor 60 Hz frequency AC power. To this issue, the task designs an exclusive frequency meter, the range of frequency measurement in Hz ~ . Keywords: frequency meter; single chip processor ; AT89C2051 目錄 摘 要 ………………………………………………………………………………… ..… I ABSTRACT…………………………………………………………………………… ..II 第 1 章 緒論 …………………………………………………………………………… .1 課題的背景及意義 …………………………………………………………… … … .1 浙江科技學(xué)院信息與電子工程學(xué)院 2020 屆畢業(yè)設(shè)計(jì)(論文) 班 級(jí): 電子信息工程 A1 姓名: 連炎鑒 學(xué)號(hào): 103023027 第 IV 頁 共 36 頁 課題的背景 ………………………………………………………… ............…… .1 課題的意義 ……………………………………………………… ………… …… .2 課題設(shè)計(jì)的目的及目標(biāo) ……………………………… … ...…… ……………… … ..2 課題的目的 ……………………………………………………… ………… …… .2 課題的目標(biāo) ………………………………………………… ……… ..……… ..… .3 第 2 章 設(shè)計(jì)方案論證 ………………………………………………………………… .4 頻率計(jì)設(shè)計(jì)方案選擇 …………………………… …… …………………………… 4 基于 VHDL 的設(shè)計(jì)方案 … …………………………………… ………… ……… 4 基于 CPLD 的設(shè)計(jì)方案 ……………………………… ………… .……………… 6 基于 AT89C2051 的設(shè)計(jì)方案 ……………………… … … … … ………………… 7 頻率測(cè)量方法的選擇 ……………………………… …… ………………………… 8 軟件主體設(shè)計(jì)方案 …………………………………… …… ……………………… 9 第 3 章 系統(tǒng)硬件設(shè)計(jì) ……………………………………………………………… ...10 芯片及工具介紹 ………………………………………… …… ………………… ..10 AT89C2051 的主要特性 ……………………………… ………… …………… 10 AT89C2051 的引腳功能 ……………………………… ………… .…………… 11 AT89C2051 的振蕩特性 ……………………………………… ………… …… 12 AT89C2051 的空閑和掉電模式 ………………………… ………… ………… .12 AT89C2051 的編程規(guī)則 ………………………………………… ………… … .13 Protel 簡(jiǎn)介 ………………………………………………………… ………… ...13 電路設(shè)計(jì) …………………………………………………… .……………… ..........14 整體電路圖 ……………………………………………… ………… .………… 14 時(shí)鐘電路 …………………………………………………… ………… ……… .15 顯示模塊 ………………………………………………… ………… .………… 16 5V 直流電壓供電電路 ……………………………………… ………… …… ...17 信號(hào)接口電路 ……………………………………………………… ………… .18 第 4 章 系統(tǒng)軟件設(shè)計(jì) ……………… ………………………………………… ......… .20 Keil uVision2 軟件介紹 ………………………… .… .…………………… … ..… .20 脈沖信號(hào)計(jì)數(shù)模塊程序設(shè)計(jì) …………………………………………… …… … 22 定時(shí)模塊程序設(shè)計(jì) ……………………………………………………… …… … 22 頻率顯示模塊程序設(shè)計(jì) ………………………………………………… …… … 22 浙江科技學(xué)院信息與電子工程學(xué)院 2020 屆畢業(yè)設(shè)計(jì)(論文) 班 級(jí): 電子信息工程 A1 姓名: 連炎鑒 學(xué)號(hào): 103023027 第 V 頁 共 36 頁 第 5 章 畢業(yè)設(shè)計(jì)總結(jié) ……………………………………………………………… ...24 致謝 ……………………………………………………………………………… ...… ..25 參考文獻(xiàn) ……………………………………………………………………………… .26 附錄 : 程序 ………………………………………………………………………… ..... 27