波形发生器的设计与仿真学生:芃博 指导老师:朱晓娟(信息与控制工程学院 电子信息工程专业)[摘要]:波形发生器是一种应用广泛的信号源。它输出的常规波形常常应用在电子电路的性能测试、参数测量,电子技术实验等科研领域。本文设计一种基于单片机 AT89C52 的波形发生器。系统根据查表法基本原理,采纳单片机查询片 ROM 波形函数表,并用 DAC0832 进行数模转换实现波形生成。双 D/A 数控电位器实现幅度控制。系统利用软件方式实现直接数字频率合成,并使用 LED 灯作为波形的输出显示。输出波形包括正弦波、方波、三角波信号以与上述三种波形线性组合波,可以进行波形幅值和频率的调节,并用采纳中断式键盘实现人机交互,串行 E2PROM(AT24C02)实现了波形数据的掉电保护功能。该波形发生器具有操作简便灵活,性价比高和智能化程度高等特点。[关键词]:波形发生器;数字频率合成;单片机 AT89C52;D/A 转换[abstract]:The Waveform generator is a widely used source.The conventional waveform of its output is often used in performance testing of electronic circuit,parameter measurement, electronic technology experiment and other research areas. This paper design a waveform generator based on SCM AT89C52.According to the basic principle of look-up table method,the system use the SCM to query the On-chip ROM waveform function table and use the DAC0832 chip to generate the waveform by digital to analog date conversion.The dual D/A digitally controlled potentiometers realize the waveform amplitude control.The system achieve the Direct Digital Frequency Synthesizer by programing as well as use the LED lamp to show the current waveform.Output waveforms include sine, squae, triangular wave signal and a linear combination wave of the above three kinds of waveforms. The amplitude and frequency of the waveform can be regulated.The user can control the waveform generator by using the interrupt-type keyboard. Serial E2PROM (AT24C02) realizes the waveform data protection against...