1、 I 摘要 本文首先介绍了信号发生器的发展以及直接数字频率合成技术(DDS)的现状 和发展趋势, 然后介绍了 DDS 的原理结构及其主要构成部分。 再根据系统的要求, 比较合理地采用了 DDS 技术,以单片机 AT89S52 和 AD9850 芯片为核心,设计了 一种结构简单性能优良的信号发生器。最后详细分析了该信号发生器的系统结构, 软硬件设计和具体电路实现。信号发生器的硬件部分包括三个模块,分别是单片机 主控制模块,DDS 模块和信号频率显示模块。软件部分主要开发基于单片机 AT89S52 的数据处理和控制程序,以及信号发生器的外部通信程序。最终完成实 验电路板的制作,并通过电路板的调试,
2、实现电路工作正常。根据系统的最终测 试结果可知该信号发生器具有输出信号波形精度高,频带宽等特点。 关键词:信号发生器;DDS;AT98S52;AD9850;频率; II ABSTRACT This article describes the development of the signal generator, the status and development trends of direct digital frequency synthesis (DDS) technology at first, then introduces the principle of DDS struct
3、ure and its main components. According to system requirements, more rational use of DDS technology, single-chip AT89S52 and AD9850 chip as the core, has designed a simple structure and excellent performance of the signal generator. Finally, there is a detailed analysis of the signal generator system
4、 architecture, hardware and software design and specific circuit implementation. The hardware portion of the signal generator consists of three modules, namely, single-chip main control module, DDS module and signal frequency display module. Some of the major software development based on MCU AT89S5
5、2 data processing and control procedures, as well as external communication signal generator program. Completing the pilot circuit board production, and through the debug board to realize the circuit is working properly. According to the results of final test, the system shows that the output signal
6、 waveform signal generator has high accuracy, bandwidth and other characteristics. Keywords: Signal Generator; DDS; AT98S52; AD9850; Frequency III 目录 摘要 I ABSTRACT II 第 1 章 绪论 1 1.1 课题背景 1 1.2 课题的主要研究目的和意义 1 第 2 章 DDS 简介 .3 2.1 DDS 结构 3 2.2 频率预置与调节电路 4 2.3 累加器 4 2.4 控制相位和控制波形的加法器 5 2.5 波形存储器 5 2.6 D/A 转换器 .5 2.7 低通滤波器 6 第 3 章 系统整体设计方案 7 3.1 系统设计原理 7 3.2 总体设计框图 7 第 4 章 系统各模块组成 8 4.1 单片机控制模块 8 4.1.1 AT89S52 单片机介绍 .8 4.1.2 AT89S52 功能特性描述 .8 4.1.3 时钟电路 11 4.1.4 复位电路 11 4.2 按键控制模块 12 4.3 LCD 显示模块