- 47
- 0
- 约7.73千字
- 约 11页
- 2017-08-11 发布于重庆
- 举报
波形发生器的设计与仿真(校级优秀)
波形发生器的设计与仿真
学生姓名:李芃博 指导老师:朱晓娟
(信息与控制工程学院 电子信息工程专业)
【摘要】:波形发生器是一种应用广泛的信号源。它输出的常规波形经常应用在电子电路的性能测试、参数测量,电子技术实验等科研领域。本文设计一种基于单片机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 power down.The waveform generator is simple, flexible, cost-effective and high intelligence.
【key words】:Waveform generator; DDS; SCM AT89C52; Digital to analog conversion
1绪论
1.1课题背景
波形发生器亦称函数发生器,作为实验用信号源,是现今各种电子电路设计应用中必不可少的仪器设备之一。随着电子测量以及很多部门对各种波形信号发生器的广泛需要以及电子技术的快速发展,促使信号发生器性能提高,种类增多。尤其随着70年代微处理器的崭露头角,更促使信号发生器向着智能化、自动化方向发展。信号发生器作为一种通用的电子设备,在科研、测控、通讯生产等领域都得到了非常广泛的运用。
1.2理论分析
直接数字频率合成(DDS,Direct Digital Synthesis)技术是一种先进的频率合成技术,其基本原理是基于奈奎斯特(Nyquist)采样定律,将模拟信号经采样量化后存入存储器的查找表中,通过寻址查找表的输出波形数据,再经过D/A转换以及滤波便可恢复原波形。基于
原创力文档

文档评论(0)