![](https://csdnimg.cn/release/download_crawler_static/87985091/bg5.jpg)
基于 AT89C51 单片机的多功能函数信号发生器设计
作者:xx 指导老师:xx
(海南师范大学,电子系,海口,571158)
摘 要:信号发生器也叫做振荡器或是信号源,在现在的科技生产实践中有着广泛而重要的应用。
现在的特殊波形发生器在价格上不够经济,有些昂贵。而基于 AT89C51 单片机的函数信号发生器
可以满足此要求。根据傅里叶变换,各种波形均可以用三角函数的相关式子表示出来。函数信号
发生器能够产生多种波形,如三角波、锯齿波、矩形波、方波和正弦波。
本文通过在单片机的外围加上键盘,控制波形的种类和输出频率的大小,加上 LED 显示出相
应信息。单片机输出为数字信号,于是在输出端用 DAC0832 进行 D/A 转换,再通过两级运放对波
形进行调整。最终在示波器上显示出来。
关键词:信号发生器 AT89C51 D/A 转换 波形调整
The design of multifunction signal generator based on AT89C51
Author:Zhang qin Tutor:Professor Lin ji
(Department of Electronic, Hainan normal university,Haikou, 571158)
Abstract : Signal generator is also called source or oscillator. It has been widely used in production
practice or the field of science and technology. Now, the price of the special waveform generator is not
economic and some expensive. While the function signal generator based on AT89C51 can satisfy this
requirement. As we know, it can be represented with trigonometric function equation for kinds of
waveform curve. The one can produce various waveform, such as triangle wave, sawtooth wave,
rectangle wave, square wave and sine wave is often called function signal generator. Function signal
generator is broad-spectrum in circuit experiment and test equipment.
It can control the type and the output frequency of the waveform when the microcontroller are
equipped with the keyboard. Also when it coupled with the LED it can be displayed. It can be sure that it
is digital signal that come from the microcontroller. So we should add the DAC0832 on the output side
for D/A conversion. With the two levels of op-amp we can adjust waveform. Finally display on the
oscilloscope.
Keywords:signal generator, AT89C51, D/A conversion,wave adjust