1、 本本 科科 毕毕 业业 设设 计计 题目: 基基 于于 DDSDDS 的的 函函 数数 发发 生生 器器 基于 DDS 的函数发生器 - I - 摘 要 一块 DDS 芯片中主要包括频率控制寄存器、高速相位累加器和正弦计算 器三个部分。频率控制寄存器可以串行或并行的方式装载并寄存用户输入的 频率控制码;而相位累加器根据频率控制码在每个时钟周期内进行相位累加 得到一个相位值;正弦计算器则对该相位值计算数字化正弦波幅度(芯片一 般通过查表得到) 。 DDS 芯片输出的一般是数字化的正弦波, 因此还需经过高 速 D/A 转换器和低通滤波器才能得到一个可用的模拟频率信号。 基于直接数字频率合成 (D
2、DS) 原理,利用 AT89C52 单片机作为控制器 件, 采用 AD9850 型 DDS 器件设计一个信号发生器。 给出了信号发生器的硬件 设计和软件设计参数,该系统可输出正弦波、方波,且频带较宽、频率稳定 度高,波形良好。该信号发生器具有更强的市场竞争力,在跳频技术、无线 电通信技术方面具有比较广阔的发展前景。 关键字:关键字:信号发生器;直接数字频率合成;AD9850 芯片;AT89C52 单片机。 基于 DDS 的函数发生器 - II - Abstract A piece of DDS chip mainly includes frequency control registers,
3、high-speed phase accumulators and sine calculator three parts. Frequency control register can serial or parallel way loaded and hosting the user input frequency control code; And phase accumulators according to the frequency control code in each clock cycle for phase accumulate get a phase value; In
4、 this phase is sine calculator value calculation digital sine wave amplitude (chip general through the look-up table get). The general is DDS chip output digital sine wave, and so is required to pass through the D/A converter and low-pass filter to get one of the available simulation frequency signa
5、l On the basis of direct digital synthesis (DDS) principle, a signal generator was designed using AT89C52 single chip machine as the control device and adopting AD9850 type DDS device. Hardware and software design parameters were given. The system can output sine wave, square wave with wide frequenc
6、y band, high frequency stability and good waveform. The signal generator has stronger market competitiveness with wider development prospect in frequency modulation technology and radio communication technology fields. Key words : signal generator; direct digital synthesis; AD9850; AT89C52. 基于 DDS 的函数发生器 - III - 目 录 摘 要 I Abstract . II 目 录 . III 1 引言 . 1 1.1 选题背景. 1 1.2 DDS 介绍 2 2 AD9850 介绍 6 2.1 芯片性能. 6 2.2 AD9850 的控制字及控制时序 . 7 2.3 管脚定义. 10 2.4 基于 AD9850 的模块原理图 . 10 3 总体设计方案 11 3.1 系统设