1、 毕业设计(论文)毕业设计(论文) I 论 文 摘 要 本文主要用 AT89C51 单片机与 DAC0832 构成的函数信号发生器, 可产生方 波、三角波、正弦波,具有线路简单、结构紧凑、性能优越等特点。本函数信号 发生器可以由程序控制改波形的周期,以及不同波形的切换。用 ADC0809 实时 对其波形电压测量。输出波形的幅值可以在 05V 可以调节。对于输出电压的 控制,主要是用 UA741 放大器对其信号放大来实现的。输出波形幅值的大小, 由 ua741 接负反馈电阻来调节,从而达到了输出波形幅值在 0-5V 可调。对于显 示部分,本设计采用四位共阳数码管实时显示当前波形的频率,以及在按键
2、的切 换下可以显示测量的波形的电压幅值。文章给出了源代码,并通过 proteus 软件 仿真测试, 然后画出 PROTEL 原理图和 PCB 板图。 对应着 PCB 板图焊接实物电 路,并下载程序做硬件调试。用示波器观察其波形。最终其性能指标达到了设计 要求。 关键词关键词:单片机;DAC0832;ADC0809;放大器;信号发生器。 II Abstract This article mainly basede on the AT89C51 microcontroller and the DAC0832 function of signal generator produces a squar
3、e wave, triangle wave, sine wave, with simple lines, compact structure, superior performance characteristics. Signal generator of the function can be changed by the program control period of the waveform, and waveform switching. Using ADC0809 real-time to its waveform voltage measurement. The amplit
4、ude of the output waveform can be adjusted in the 0-5V. For the control of output voltage, to achieve the UA741 amplifier on signal amplification.The size of the output waveform amplitude ua741 to the negative feedback resistor to regulate so as to achieve the output waveform amplitude in the 0-5V a
5、djustable. Display section, the design uses four common anode digital tube real-time display of the frequency of the current waveform and the voltage amplitude of the measured waveform can be displayed in the key switch. The article gives the source code, proteus software simulation testing, and the
6、n draw the the PROTEL schematic and PCB plans. Corresponds to the PCB plans to weld the physical circuit, and download the program to do hardware debugging. Observe the waveform with an oscilloscope. Ultimately, its performance meets the design requirements. Key Words:Microcontroller; DAC0832; ADC0809; amplifier; signal generator. III 目 录 第一章 绪论 1 1.1 单片机概述 . 1 1.2 信号发生器的分类. 1 1.3 研究内容. 1 第二章 方案的设计与选择 2 2.1 方案与比较. 2 2.2 设计原理. 2 2.3 设计思想. 3 2.4 设计功能. 4 第三章 硬件设计 5 3.1 硬件原理框图. 5 3.2 主控电路. 6 3.3 显