基于单片机原理的 波形发生器 摘要:本系统采纳单片机 C8051 为控制核心,输出数字量,然后由 DAC0832 把数字量转换成模拟量;但是输出的是电流,需要用运放(OP07),把电流转换成电压量。显示利用的是 LCD1602 的液晶,显示其波形,幅值。按键应用的是独立按键,用来波形的切换,幅值,频率的调解。其运算核心,我们通过 MATLAB 对正弦波,三角板,正弦波进行采样,得到一组组数据,然后同过数组存储;利用中断对数组进行扫描。其频率的调解就是调节其中断间隔的时间,幅值就是调节其数字的大小(同时乘以某个小于 1的数)。为了波形的合成,我们采纳的点的个数都是 20 个。关键词:AT-89C51 DAC0832 独立按键 OP07The Design of Waveform Generator Based on 51Abstract:This system adopts single-chip C8051 as the control core, digital output, and then by DAC0832 convert digital to analog; But the output is current, the need to use operational amplifier (OP07), the amount of current into a voltage. Display using the LCD1602 LCD, display the waveform amplitude. Key applications is independent, switch to waveform, amplitude, frequency of mediation. Its core operation, we use MATLAB to sine wave, triangle, the sine wave samples, groups of data, and then with an array of storage; Using the interrupt for scanning array. The frequency of mediation is to adjust one interval time, amplitude is adjusting the size of its digital (multiplied by a certain number of less than 1) at the same time. For the waveform synthesis, we adopt the number of points is 20.Keywords:AT-89C51 DAC0832 Separate button OP07一、题目要求及分析设计任务:设计制作一个波形发生器,该波形发生器能产生正弦波、方波、三角波和由用户编辑的特定形状波形。示意图如下:图 1 设计要求图设计要求:1.具有产生正弦波、方波、三角波三种周期性波形的功能;2.用键盘输入编辑生成上述三种波形(同周期)的线性组合波形,以及由基波及其谐波(5 次以下)线性组合的波形。3.具有波形存储功能。4.输出波形的频率范围为 100Hz~20kHz(非正弦波频...