基于fpga的等精度数字频率计设计.doc
上传人:天马****23 上传时间:2024-09-13 格式:DOC 页数:58 大小:1.7MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

基于fpga的等精度数字频率计设计.doc

基于fpga的等精度数字频率计设计.doc

预览

免费试读已结束,剩余 48 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

兰州交通大学毕业设计(论文)PAGE\*MERGEFORMAT52摘要频率是常用的物理量,工程中很多物理量的测量,如时间测量、速度控制等,都可转化为频率测量。此外,还经常遇到以频率为参数的测量信号,例如流量、转速等。所以频率测量方法的研究越来越受到重视。基于传统测频原理的频率计的测量精度将随被测信号频率的下降而降低,在实用中有较大的局限性,而等精度频率计不但具有较高的测量精度,而且在整个频率区域能保持恒定的测试精度。本课题设计的等精度数字频率计是采用当今电子设计领域流行的EDA技术,以FPGA为核心,配合STC89C51单片机。同时,采用等精度测频原理,实现了0.01Hz--50MHz信号频率的等精度频率测量。此外,该系统还实现测量周期、脉宽、占空比等功能。设计中用一块FPGA芯片EP2C5Q208C8完成各种时序逻辑控制、计数功能。在OuartusII平台上,用VHDL语言编程完成FPGA的软件设计、编译、调试、仿真和下载。用STC89C51单片机作为系统的主控部件,实现整个电路的测试信号控制、数据运算处理、键盘扫描和控制数码管的显示输出。系统将单片机STC89C51的控制灵活性及FPGA芯片的现场可编程性相结合,不但大大缩短了开发研制周期,而且使本系统具有结构紧凑、体积小,可靠性高,测频范围宽、精度高等优点。关键词:频率计;EDA技术;FPGA;单片机AbstractFrequencyiscommonlyusedphysicalquantity,lotsofmeasurementofphysicalquantityintheproject,suchasthemeasurementoftime,thecontrolofvelocity,canbechangedintothemeasurementoffrequency.Besides,themeasuredsignalwithafrequencyparameter,suchastherateofflow,therotationalspeed,isoftenencountered.Sotheresearchofthemethodofmeasuringfrequencyhasbecomemoreandmoresignificantintherealapplication.Accordingtotheprinciplesoftraditionalfrequencymeasurement,themeasurementaccuracyoffrequencyHYPERLINK"javascript:showjdsw('jd_t','j_')"meterwilldecreasewiththesignalfrequencydecrease.butithasmorelimitationsintherealapplication,equalprecisionfrequencymeternotonlyhashighaccuracy,butalsomaintainsconstanttestaccuracyinthewholefrequencyregion.WiththehelpofFPGAandcooperatingwiththesinglechipcomputerSTC89C51,Thedigitalfrequencydesigninourprogramhasrealizedtheprecisionmeasurementof0.01Hz-50MHzsignalfrequencybyadoptingthecurrentEDAtechniqueprevailingintheelectronicdesignsandusingtheprincipleofmulti-periodsynchronyfrequencymeasurement.Besides,thesystemcancompletethecycle,pulsewidth,dutycyclemeasurementfunction.Inthisdesign,usinganFPGAchipEP2C5Q208C8completesavarietyoftemporallogiccontrolandcountingfunction.IntheplatformofOuartusII,usingVHDLlanguagecompletesFPGAsoftwaredesign,compiler,debugging,simulation,anddownload.ByuseoftheSTC89C51singlechipcomputerasthemaincontrollingparts,thecontr