摘 要
在電子技術領域內,頻率是一個最基本的參數,頻率的檢測與許多電氣參數的測量都有著十分密切的關系。因此,頻率的測量就顯得更為重要。
本論文主要介紹頻率計的硬件結構和軟件設計。硬件部分通過采用AT89C2051單片機構成核心控制電路,在設計中,使用AT89C2051的P1.0口作為待測頻率信號的脈沖輸入計數部件,定時器T1用來對脈沖信號的周期進行計數,測量結果以十進制數在4位LED數碼管上顯示。軟件設計采用模塊編程的方法來實現,主要完成頻率測量及結果顯示。設計過程中使用到的工具有Protel和Keil uVision2。
許多出口的電器設備的性能必須在60Hz交流電源下測試,為了監視60Hz交流電源的頻率,就必須要用頻率計。針對這個問題,本課題設計了一臺專用頻率計,頻率測量范圍在20.00Hz~99.99Hz。
關鍵詞:頻率計;單片機;AT89C2051
ABSTRACT
In the field of electronic technology, the frequency is basic parameter, Frequency 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 P1.0 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 20.00 Hz ~ 99.99Hz.
Keywords: frequency meter; single chip processor ;AT89C2051