1、摘 要 在科学研究、工程教育及生产实践中,常常需要用到低频信号发生器。本 文主要介绍一种以单片机为核心的超低频任意函信号发生器。 该信号发生器由存 储模块、按键模块、LED 显示模块、D/A 转换模块组成,它采用数字波形合成技 术,通过硬件电路和软件程序相结合,可输出自定义波形,如正弦波、三角波、方 波和锯齿波及其他任意波形。 文中详细介绍了硬件电路设计的原理和软件编程的 上设计思想以及实验调试过程。实验结果表明,该信号发生器输出的波形的频率 和幅值在一定范围内可任意改变, 与传统信号发生器只有固定的几种输出波形相 比,具有输出波形的任意化和低频精度高的特点。它还具有的特点是价格低、性 能高,
2、在低频范围稳定性好、操作方便、体积小、耗电少等。 关键词:单片机 AT89C51; DAC0832; 低频信号; 发生器 ABSTRACTABSTRACT In scientific research, engineering education and practice of production, often need to use low-frequency signal generator. In this paper, introduces a ultra-low frequency arbitrary function signal generator to SCM as the
3、core. The signal generator is made of the memory modules, the key modules, LED display modules, D/A converter modules,it uses date waveform synthesis technology,through hardware Circuit and software Procedures is combined,custom Waveform can be customized, such as sine wave, triangle wave, square wa
4、ve and sawtooth wave and other arbitrary waveform. In this paper ,detail introduces the principle of the design of hardware circuit and the mind of the design of software programming and the process of experiment debug.The results of experiment show that,the output waveforms frequency and amplitude of the signal generator can be arbitrarily changed in a certain range,compared With the traditional signal generator Only have a few fixe output waveform,with the characteristics of output waveform