摘 要
頻率是電子技術(shù)領(lǐng)域內(nèi)的一個(gè)基本參數(shù),同時(shí)也是一個(gè)非常重要的參數(shù)穩(wěn)定的時(shí)鐘在高性能電子系統(tǒng)中有著舉足輕重的作用,直接決定系統(tǒng)性能的優(yōu)劣。隨著電子技術(shù)的發(fā)展,測(cè)頻系統(tǒng)使用時(shí)鐘的提高,測(cè)頻技術(shù)有了相當(dāng)大的發(fā)展,但不管是何種測(cè)頻方法,±1個(gè)計(jì)數(shù)誤差始終是限制測(cè)頻精度進(jìn)一步提高的一個(gè)重要因素。
本設(shè)計(jì)闡述了各種數(shù)字測(cè)頻方法的優(yōu)缺點(diǎn)。通過分析±1個(gè)計(jì)數(shù)誤差的來得出了一種新的測(cè)頻方法:檢測(cè)被測(cè)信號(hào),時(shí)基信號(hào)的相位,當(dāng)相位同步時(shí)開計(jì)數(shù),相位再次同步時(shí)停止計(jì)數(shù),通過相位同步來消除計(jì)數(shù)誤差,然后再通過算得到實(shí)際頻率的大小。根據(jù)M/T法的測(cè)頻原理,已經(jīng)出現(xiàn)了等精度的測(cè)頻方法但是還存在±1的計(jì)數(shù)誤差。因此,本文根據(jù)等精度測(cè)頻原理中閘門時(shí)間只與測(cè)信號(hào)同步,而不與標(biāo)準(zhǔn)信號(hào)同步的缺點(diǎn),通過分析已有等精度測(cè)頻方法所存±1個(gè)計(jì)數(shù)誤差的來源,采用了全同步的測(cè)頻原理在FPGA器件上實(shí)現(xiàn)了全同步字頻率計(jì)。根據(jù)全同步數(shù)字頻率計(jì)的測(cè)頻原理方框圖,采用VHDL語言,成功編寫出了設(shè)計(jì)程序,并在MAX+PLUSⅡ軟件環(huán)境中,對(duì)編寫的VHDL程序進(jìn)了仿真,得到了很好的效果。最后,又討論了全同步頻率計(jì)的硬件設(shè)計(jì)并給出了電路原理圖和PCB圖。對(duì)構(gòu)成全同步數(shù)字頻率計(jì)的每一個(gè)模塊,給出了較詳細(xì)設(shè)計(jì)方法和完整的程序設(shè)計(jì)以及仿真結(jié)果。
關(guān)鍵詞:FPGA、頻率計(jì)、VHDL語言、MAX+PLUSⅡ
Abstract
Frequency is a basic parameter of electronics field,meanwhile,it’s a very important parameter.Stable clock is very important in high performance electronics system,determining the syetem performance directly.With the development of technology of electronics,the frequency measurement system using higher clock,the frequency measurement technology has very nice development.In despite of using all other advanced frequency measurement methods,the positive and negative 1 errors was a very important factor that stop frequency measurement precision improving all through.
The design expound the advantage and disadvantage of most digital frequency measurement methods.Through analyzing the origin of the positive and negative 1 errors,got a new frequency measurement methods:checking the measured and standard signal’s phase,if the phase is synchronous,then the counters start counting,when the signal’s phase is synchronous again,the counter stopping working,by phase in-phase to eliminate counting errors,then getting the real frequency through calculating.By this way’s guide,the design of complete digital cymometer was successfully completed with using VHDL(Very High Speed Integrated Circuit Hard Design Language)hardware description language and simulated it right.According to all of Synchronous Digital Block diagram of the frequency measurement using VHDL,the successful preparation of the design process,and in MAX+PLUS II software environment,the preparation of procedures for VHDL simulation,obtained very good results.Lastly,the frequency synchronization of the whole discussion of the hardware design and gives the circuit schematics and PCB plans.All of a synchronous digital frequency of each module,is a more detailed design and integrity of the process design and simulation results.
Keyword:FPGA、Cymometer、VHDL、MAXPLUSⅡ