1、 基于单片机的波形发生器基于单片机的波形发生器 摘要 本系统是基于 AT89C51 单片机的数字式低频信号发生器。采用 A T89C51 单片机作为控制核心,外围采用数字/模拟转换电路(DAC083 2)、运放电路(LM324)、按键和 8 位数码管等。通过按键控制可产 生方波、三角波、正弦波等,同时用数码管指示其对应的频率。其设 计简单、性能优好,可用于多种需要低频信号的场所,具有一定的实 用性。 各种各样的信号是通信领域的重要组成部分,其中正弦波、三角 波和方波等是较为常见的信号。在科学研究及教学实验中常常需要这 几种信号的发生装置。为了实验、研究方便,研制一种灵活适用、功 能齐全、使用方
2、便的信号源是十分必要的。 本文介绍的是利用 AT89C51 单片机和数模转换器件 DAC0832 产 生所需不同信号的低频信号源,其信号幅度和频率都是可以按要求控 制的。文中简要介绍了 DAC0832 数模转换器的结构原理和使用方法, AT89C51 的基础理论,以及与设计电路有关的各种芯片。文中着重介 绍了如何利用单片机控制 D/A 转换器产生上述信号的硬件电路和软件 编程。信号频率幅度也按要求可调。 本次关于产生不同低频信号的信号源的设计方案,不仅在理论和 实践上都能满足实验的要求,而且具有很强的可行性。该信号源的特 点是:体积小、价格低廉、性能稳定、实现方便、功能齐全。 关键词关键词 :
3、AT89C51 DAC0832 LM324 8 位数码管显示 AbstractAbstract Waveform The system is a digital signal generator based on single chip computer.At89c51 is used as a control microcontroller core.The system is composed by digital/analog comversion(DAC0832), imply circuit,button and nixie tube.It can generate the squa
4、re, triangle and sine wave,with nixie tube.The system can be used for a signal soure in the low-frequency signal soure.It is very practical. Various signals are an important part of correspondent area. In this area, sine wave, triangle wave and square wave are common signals. In science research and
5、 teaching experiment, we often need the occurrence equipment of these signals. In order to make the experiment and research easier, to develop a suitable, full functional and easily used signals source is essential. This paper introduces the low frequency sources of different signals that are produc
6、ed by AT89C51 SCM and DAC0832. Its signal range and frequency can be controlled by requirement. This paper briefly introduces the structure principle and usage of DAC0832, the basic theory of AT89C51 and various chips which relevant to design circuit. this paper emphasized how to use SCM to control the hardware circuit and software program of the signals above which produced by DAC0832. The signal frequency range also can be adjusted by requirement. This signal source design plan concerns on p