资源描述:
《基于单片机的数字频率计的设计与实现.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、基于单片机的数字频率计的设计与实现摘要随着电子信息产业的发展,信号作为其最基础的元素,其频率的测量在科技研究和实际应用中的作用日益重要,而且需要测频的范围也越来越宽。传统的频率计通常采用组合电路和时序电路等大量的硬件电路构成,产品不但体积较大,运行速度慢,而且测量范围低,精度低。因此,随着对频率测量的要求的提高,传统的测频的方法在实际应用中已不能满足要求。因此我们需要寻找一种新的测频的方法。随着单片机技术的发展和成熟,用单片机来做为一个电路系统的控制电路逐渐显示出其无与伦比的优越性。本文阐述了以AT89C51单片机为控制器件的频率测量方法,并用汇编语言进行设计,采用单片机智能控制,结
2、合外围电子电路,用以实现高低信号频率的测量。本文设计的是一个简易数字频率计,被测信号可以是正弦波、三角波、方波。首先,我们把待测信号经过放大整形;然后把信号送入单片机的定时计数器里进行计数,获得频率值;最后把测得的频率数值送入显示电路里进行显示。本文从频率计的原理出发,介绍了基于单片机的数字频率计的设计方案,选择了实现系统得各种电路元器件,并对硬件电路进行了仿真。关键词 单片机;频率计;测量DesignandimplementationofDigitalFrequencyMeterBasedonSingleChipMircrocomputeAbstractAlongwiththede
3、velopmentofelectronicinformationindustry,signalasthebasicelements,thefrequencymeasurementinscientificresearchandpracticalapplicationisincreasinglyimportant,butalsoneedthescopeoffrequencymeasurementisbecomingmoreandmorewide.Thetraditionalfrequencyplanusuallyadoptscombinationalcircuitsandtheseque
4、ntialcircuitsofthehardwarecircuitstructure,productnotonlylargesize,speedisslow,andmeasuringrange,andlowaccuracyoflow.Therefore,asforfrequencymeasurementrequirements,thetraditionalmethodoffrequencymeasurementinpracticalapplicationalreadycannotsatisfyrequirements.Therefore,weneedtofindanewmeasuri
5、ngmethodoffrequency.Alongwiththedevelopmentoftechnologyandmature,useasingleshipasacircuitsystemofcontrolcircuitshownitsincomparableadvantages.Inthispaper,withAT89C51microcontrollertocontrolthefrequencyofmeasurementdevicesandassemblylanguagedesign,intelligentcontrolusingsinglechip,combinedwithth
6、eexternalelectroniccircuit,canbehighandlowfrequencymeasurements.Thispaperdesignsasimpledigitalfrequency,themeasuredsignalcanbesinewave,squarewave.Firstly,therectangularpulse,whichthemeasuredsignalisamplifiedandreshaped,isusedascontrolthrottlevalve.Then,thefrequencycountercountsthenumberoftheper
7、iodsusingtheinternaltimer/counterofsignalischipsoastogainthefrequencyvalueofmeasuredsignal.Finally,thefrequencyvalueofmeasuredsignalisdisplayedthroughstaticdisplaycircuits.Fromtheanalysisoftheory,andintroducesthedigitalfrequencypl