1、 I 摘要 信号发生器是一种常用的信号源,广泛地应用于电子电路、自动控制系统和 教学实验等领域。目前使用的信号发生器大部分是函数信号发生器,且特殊波形 发生器的价格昂贵。所以本设计使用的是 AT89C51 单片机构成的发生器,可产生 三角波、方波、正弦波等多种特殊波形和任意波形,波形的频率可用程序控制改 变。在单片机上加外围器件距阵式键盘,通过键盘控制波形频率的增减以及波形 的选择,并用了 LCD 显示频率大小。在单片机的输出端口接 DAC0832 进行 D/A 转换,再通过运放进行波形调整,最后输出波形接在示波器上显示。本设计具有 线路简单、结构紧凑、价格低廉、性能优越等优点。 在介绍 DA
2、C0832 芯片特性的基础上,论述了采用 DAC0832 芯片设计数字函数 信号发生器的原理以及整机的结构设计。对其振荡频率控制、信号输出幅度控制 以及频率和幅度数显的实现作了较详细的论述。 该函数信号发生器可输出三角波, 方波和正弦波。 关键词: 信号发生器 单片机 波形调整 II Abstract Signal-generator is a kind of signal source in common use, broadly applied at the electronics electric circuit, auto control system and teaching exp
3、eriment etc. Currently used mostly function signal generator signal generator, waveform generator and a special price of expensive . So the dissertation is usage of the AT89s51 single-chip microcomputer constitute of wave-form generator, which can generate triangle wave, square wave, sine wave etc v
4、ariety wave-form, the period of wave can be controlled by procedure, at outer circle spare part of the machine, plus independence type keyboard , which can control wave increase or decrease of form-frequency and the choice of wave-form, at the same time LED display frequency size. The output of the machine connect DAC0832 to carry on a DA conversion,again pass operation amplifier to put an end exportation wave-form. This design has advantage of simple circuit, tightly packed structure, cheap pr