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