欢迎来到天天文库
浏览记录
ID:56810804
大小:862.50 KB
页数:84页
时间:2020-07-12
《等精度频率相位数字测量仪.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、摘要频率、相位差检测是电子测量领域的最基本也是最重要的测量之一。频率信号抗干扰能力强、易于传输,可以获得较高的测量精度,所以测频率测相位差方法的研究越来越受到重视。本课题的等精度数字频率计设计,采用当今电子设计领域流行的EDA技术,以CPLD为核心,配合AT89C51单片机,实现了0.1Hz~1MHz信号频率的等精度频率测量及分辨力为0.1的相位测试。设计中用一块复杂可编程逻辑器件CPLD芯片EPM7128SLC84-15完成各种时序逻辑控制、计数功能。在Max+plusⅡ平台上,用VHDL语言编程完成了CPLD的软件设计、编译、调试、仿真和下载。用AT89C51单片机作为系
2、统的主控部件,实现整个电路的测试信号控制、数据运算处理、键盘扫描和控制数码管的显示输出。系统将单片机AT89C51的控制灵活性及CPLD芯片的现场可编程性相结合,不但大大缩短了开发研制周期,而且使本系统具有结构紧凑、体积小,可靠性高,测频范围宽、精度高等优点。本文详细论述了系统自上而下的设计方法及各部分硬件电路组成及单片机、CPLD的软件编程设计。达到了较高的测量精度和测量速度。关键词:频率计;相位差;复杂可编程逻辑器件;单片机AbstractInthefieldofelectronicmeasurement,thefrequencyandphasedifferenceche
3、ckingisoneofmostfundamentalandcriticallyimportantmeasuringmethods.Becausefrequencysignal,whichiseasilytransported,hasstrongresistancetothedisturbanceandcanbemeasuredwithhighprecision,researchonthemethodbymeasuringfrequencyandphasedifferencehavemoreandmoresignificanceintherealapplication.Wit
4、hthehelpofCPLDandcooperatingwiththesinglechipcomputerAT89C51,thedigitalfrequencydesigninourprogramhaverealizedtheprecisionmeasurementof0.1Hz~1MHzsignalfrequencybyadoptingthecurrentEDAtechniqueprevailingintheelectronicdesigns.Duringthedesign,achipEPM7128SLC84-15inCPLDfulfillstiminglogiccontr
5、olandcountfunction.UndertheflatofMax+plusⅡ,throughVHDLlanguageCPLDsoftwaredesign,compilation,debug,simulationanddownloadcanbecarriedout.ByuseoftheAT89C51singlechipcomputerasthemaincontrollingparts,theAT89C51realizestestsignalcontrolkeyboardscanandoutputdisplayofLED.Thesystemcombinesthecontr
6、olflexibilityofAT89C51withprogrammableperformanceofCPLD,sonotonlycanitshortentheperiodofthedevelopmentandresearch,butalsohastheadvantagesofcompactstructurelittlevolumehighreliabilitywidescopeandhighprecision.Thispaperhasparticularlydescribedthetop-to-bottomdesignmethodofthesystem,thecircuit
7、compositeofthehardwareandthesoftwareprogramdeviceofCPLDandsinglechipcomputer.UnderthetestenvironmentofthesystemdevelopedbyGW48-CKEDAexperiment,theprecisionandvelocityofthemeasurementhavebeenobtainedafterthesimulationandthetestofthehardware.KeyWords:Frequ
此文档下载收益归作者所有