预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共40页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

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

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

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

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

摘要 在信号发生器的设计中,传统的用分立元件或通用数字电路元件设计电子线路的方法设计周期长,花费大,可移植性差。本设计是利用EDA技术设计的电路,该信号发生器输出信号的频率范围为20Hz~20KHz,幅度的峰-峰值为0.3V~5V两路信号之间可实现0°~359°的相位差。 侧重叙述了用FPGA来完成直接数字频率合成器(DDS)的设计,DDS由相位累加器和正弦ROM查找表两个功能块组成,其中ROM查找表由兆功能模块LPM_ROM来实现。而通过设定不同的累加器初值(K1)和初始相位值(K2),可以调节两路相同频率正弦信号之间的相位差,从而产生两路数字式的频率、相位和幅值可调的正弦波信号,最后通过MAX+plusII演示仿真结果。 与传统的频率合成方法相比,DDS合成信号具有频率切换时间短、频率分辨率高、相位变化连续等诸多优点。使用单片机灵活的控制能力与FPGA器件的高性能、高集成度相结合,可以克服传统DDS设计中的不足,从而设计开发出性能优良的DDS系统。 关键词:单片机,现场可编程逻辑门阵列,直接数字频率合成,正弦信号发生器,硬件描述语言 Abstract Inthedesigningofthesignalgenerator,thetraditionalmethod,whichdesignselectroniccircuitsusingdiscretecomponentsorgeneraldigitalcircuitscomponents,takesalongtimewithhighcost,what’smore,thetransplantingabilityofitisunsatisfactory.Inthisdesign,thecircuitisdesignedbymeansofEDA.Itsoutputfrequencyrangeis20Hzto20KHzwithanoutputamplituderangeof0.3Vto5V(P-P),andthephasedifferencebetweentwooutputsofthetwosinesignalscanbemodulatedfrom0°to359°. ThethesisemphasizingdiscussesthedesigningofDDSbasingonFPGA.DDSismadeupofthephraseaccumulatorandsineROMlooking-uptable,whichisrealizedbyfunctionalEABchip.Andthroughsettingdifferentinitialaccumulatorvalue(K1)andinitialphrasevalue(K2),thedifferenceofphrasebetweenthetwosinesignalscanbechanged.Asaresult,twoserialsofsinesignalswithchangeabledigitalfrequency,phraseandmagnitudeareproduced.Atlast,wecanshowthetotalcourseandresultwithMAX+plusII. Comparedwithtraditionalmethodsoffrequencysynthesizing,directdigitalfrequencysynthesizing(DDS)haslotsofadvantages,suchasshorttimeofquickfrequencyexchanging,highfrequencyresolution,continuousphasechanging,etc.Micro-controlunithasischaracterizedby.ManydrawbackscanbeovercomeandagoodDDSsystemwithgoodperformancecanbedevelopedaftercombiningtheflexiblecontrolcapabilityofmicro-controlunitwithhighperformanceandintegrationoftheFPGAdevicesinthesamesystem. Keywords:MCU,FPGA,DDS,ROMsinewavegenerator,VHDL 目录 TOC\o"1-3"\h\zHYPERLINK\l"_Toc106604287"摘要 PAGEREF_Toc106604287\hI HYPERLINK\l"_Toc1