资源描述:
《基于单片机的信号发生器设计与实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于单片机的信号发生器设计与实现摘要信号发生器是许多测试和实验中不可缺少的工具,在信息与通信、雷达信号处理、测量及控制、教学等领域应用十分广泛。随着电子科学与技术的发展,对信号的频谱纯度、频率分辨率、频率的输出范围等提出的要求越来越高,然而用传统的频率合成方法研制的信号发生器在精度、功能等方面均存在较多的缺陷和不足,很大程度上不能够满足要求。本文正是针对这一问题,设计并开发基于直接数字合成(,)技术的高性能、高精度的信号发生器。用单片机控制芯片完成信号的产生及控制,所产生的信号具有频率的分辨率较高、切换频率时的相位连续
2、、频率的切换速度较快、输出相位的噪声很低等诸多优点。本设计主要有以下几大模块构成:单片机及其接口模块、模块、按键模块、液晶显示模块、幅度调节模块,能够实现通过键盘输入选择正弦波、方波、三角波三种波形,并通过液晶屏显示其频率值和示意波形等功能。最后,应用单片机和技术研制了一个现实可用的信号发生器,并给出了基于单片机和技术的信号发生器的电路原理框图,下的电路图,设计过程和软件流程图。测试结果表明:本信号发生器达到了预期的设计要求,其性能和各种指标明显好于传统的信号发生器。关键词:单片机信号发生器BasedonSCMSign
3、alGeneratorDesignandImplementationAbstractSignalgeneratorisanindispensabletoolinmanytestsandexperiments,andithasveryextensiveapplicationininformationandcommunication,radarsignalprocessing,measurementandcontrol,teaching,andotherareas.Astheelectronicscienceandtech
4、nologydevelopment,thespectrumofthesignalfrequencyresolution,purity,theoutputofthefrequencyrangeofthedemandsofmoreandmorehigh,buttousethetraditionalfrequencysynthesismethoddevelopedinprecision,functionsignalgeneratorwhichhavemanydefectsandtheinsufficiency,largely
5、can'tmeettherequirements.Thispaperistosolvesuchaproblem,designanddevelophighperformance,highprecisionofthesignalgeneratorbasedondirectdigitalsynthesistechnologyWithsingle-chipmicrocomputercontrolchipssignalisproducedandcontrol,theresultingsignalhasahigherfrequen
6、cyresolution,switchingfrequencyofthephaseofthecontinuous,frequencyswitchingspeedandoutputofthenoiseislowphasemanyadvantages.Thisdesignbasicallyhasthefollowingafewbigblocks:SCManditsinterfacemodule,modules,keymodule,liquidcrystaldisplaymodule,amplitudeadjustmentm
7、odule,canrealizethroughthekeyboardinputchoosesinewave,squarewave,trianglewavethreewaveform,andthroughtheLCDshowsitsfrequencyvalueandsignalwaveformetc.Function.Finally,theapplicationofthesinglechipmicrocomputerandtechnologydevelopedarealityoftheavailablesignalgen
8、erator,andgivethetechnologybasedonsinglechipmicrocomputerandthesignalgeneratorcircuitprinciplediagram,thecircuitdiagram,designprocessunderandsoftwareflowchart.Testres