单片机正弦信号发生器示列

摘 要
本系统采用AT89S51单片机为核心,辅以必要的模拟,数字电路,构成了一个基于DDS技术的正弦波信号发生器。该软件系统采用4*4键盘操作,以菜单形式进行显示,操作方便简单,软件增加了许多功能。它通过启动DDS,把内存缓存区的数据读出送到DDS后输出相应的频率,并把数据转换为BCD码,通过液晶显示器进行显示。该系统体积小、稳定度、精度极高,方便携带,适用于当代的尖端的通信系统和精密的高精度仪器以及高频无线传输系统等。
关键词:直接数字频率合成(DDS)、AD9851、VCO
Sinusoidal Wave Signal Generator
[Abstract ] By using the AT89S51 as its core and combining the necessary analog and digital circuits, a sinusoidal wave signal generator is built based on the DDS technology. The software utilized in the system can be operated with a 4X4 keyboard, displayed in a menu and hence makes the system easy to use. Through booting up the DDS, reading the data from the buffer of the memory and transmitting them to DDS modules, a relevant frequency output combining the BCD code generated at the same time can be obtained and displayed on a LCD screen. The system is suitable for using in modern communications systems and high accuracy instruments with the aid of its small size, portability, stability and high accuracy.
一. 方案比较与论证
1. 常见信号源制作方法
方案 一 :采用模拟分立元件或单片压控函数发生器MAX038,可产生正弦波,方波,三角波,通过调整外部元件可改变输出频率,但采用模拟器件由于分散性太大,即使使用单片函数发生器,参数也揶揄外部元件有关,因而产生的频率稳定度较差,精度不高,抗干扰能力较低成本较高。
方案 二 :采用锁相式频率合成方案,锁相式频率合成是将一个高稳定度和高精度的标准频率经过加减乘除的运算产生同样稳定度和精确度的 大量离散频率的技术,它在一定程度上解决了既要频率稳定精确,又要频率在较大范围内可变的矛盾,但频率受VCO可变频率范围响,高低频率比不可能作得很高。
方案 三:采用DDS,即直接数字频率合成,其原理方框图如图1所示,
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43708988/article/details/108218929