1、摘 要 函数发生器是一种用于产生标准信号的电子仪器,它广泛用于工业生产、科研和国防等各个领域中,所以论文选题具有一定的实用意义。 本文介在绍了函数发生器的基本概念及原理的基础上,采用 AT89C52单片机为核心,完成了简易的 DDS函数发生器的硬件设计和软件编程,并通过调试实现了其功能和主要技术指标。 在系统的硬件部分,设计了由单片机最小系统为核心、通过接口设计,扩展了 DAC转换模块、按键和 LED显示模块。 其中,采用两片 DAC0832实现了 全数字化的频率合成器 (简称 DDS)。 系统的软件设计是在 keil uVision4的集成开发环境下,采用 C语言完成了应用系统软件编程 ,包
2、括主程序、产生四种常用信号的程序、 按键功能和 显示子程序等电脑模块;模块化的编程使得程序 具有可读性和易于维护的特点。 关键词 信号发生器 ; AT89C52; DDS; 单片机 ABSTARCT Function generator is used to generate standard signals with electronic devices, it is widely used in industrial production, scientific research and national defense and other fields, so the thesis to
3、pic has some practical significance. Introduction This paper introduce the function generator in the basic concepts and principles, based on using AT89C52 microcontroller as the core, completing the DDS function generator simple hardware design and software programming, and through the commissioning
4、 function and to achieve its main technical indicators. Hardware in the system designed by the smallest single-chip system is the core interface design, extends the DAC conversion modules, buttons and LED display modules. Among them, using two DAC0832 enables a fully digital frequency synthesizer (r
5、eferred to as DDS). System software design is keil uVision4 integrated development environment, using C language to complete the application system software programming, including the main program, resulting in four common signal process, key features and display routines and other computer modules; modular programming makes the program readable and easy to maintain. Keywords signal; generator; AT89C52; DDS; single-chip