基于AT89C51单片机的多功能函数信号发生器设计
时间:2025-05-15
时间:2025-05-15
海 南 师 范 大 学
本 科 生 毕 业 论 文
题目:基于AT89C51单片机的多功能函数信号发生器设计
姓 名: xx 学 号: xxx
专 业: 电子信息科学与技术 年 级: 2009 级 系 别: 电子系 指导老师: xxx
完成日期:
本科生毕业论文(设计)独创性声明
本人声明所呈交的毕业论文(设计)是本人在导师指导下进行的研究工作及取得的研究成果,除了文中特别加以标注和致谢的地方外,本论文中没有抄袭他人研究成果和伪造数据等行为 。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。
论文(设计)作者签名: 日期:
本科生毕业论文(设计)使用授权声明
海南师范大学有权保留并向国家有关部门或机构送交毕业论文(设计)的复印件和磁盘,允许毕业论文(设计)被查阅和借阅。本人授权海南师范大学可以将本毕业论文(设计)的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或其他复印手段保存、汇编毕业论文(设计)。
论文(设计)作者签名: 日期:
指 导 教 师 签 名: 日期:
目 录
1.引言………………………………………………………… 2
1.1课题研究背景………………………………………………2 1.2波形介绍……………………………………………………2
2.系统设计…………………………………………………… 4
2.1方案选择……………………………………………………4 2.2框图设计……………………………………………………4 2.3单片机模块…………………………………………………5
2.3.1单片机最小系统…………………………………………5
2.4按键控制电路设计…………………………………………8 2.5 D/A转换电路…………………………………………… 8
2.5.1 D/A转换的必要性…………………………………… 8 2.5.2 DAC0832的特性及应用……………………………… 8
2.6 LED显示电路…………………………………………… 10 2.7 运算放大器的特性及应用……………………………… 13
3.硬件设计……………………………………………………14
3.1整体的电路原理图……………………………………… 14 3.2元件清单……………………………………………………15
4.软件设计…………………………………………………… 16
4.1程序流程图………………………………………………… 16
4.2程序清单………………………………………………………17
5系统仿真及调试………………………………………………18
5.1系统仿真图……………………………………………………18 5.2系统调试………………………………………………………21
6 总结……………………………………………………………21 7 参考文献………………………………………………………23
基于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
上一篇:川中医药发〔2017〕52号
下一篇:南美采购商数据库(二)