基于fpga和锁相环4046实现波形发生器.doc

约44页DOC格式手机打开展开

基于fpga和锁相环4046实现波形发生器,基于fpga和锁相环4046实现波形发生器页数:44字数:17309摘要本设计采用fpga和锁相环4046实现波形发生器。系统由波形产生模块和可调频率的时钟产生模块,数模转换模块和显示模块四部分组成。波形产生模块完成三种波形的产生,并根据控制信号完成选定波形的输出。可调频率的时钟产生模块能够产生具有不同频率的方波clk...
编号:106-63265大小:12.73M
分类: 论文>其他论文

内容介绍

此文档由会员 cnlula 发布

基于FPGA和锁相环4046实现波形发生器


页数:44 字数:17309

摘 要

本设计采用FPGA和锁相环4046实现波形发生器。系统由波形产生模块和可调频率的时钟产生模块,数模转换模块和显示模块四部分组成。波形产生模块完成三种波形的产生,并根据控制信号完成选定波形的输出。可调频率的时钟产生模块能够产生具有不同频率的方波clk,用此方波作为时钟完成输出波形频率的调整。显示模块用于显示输出波形的频率。数模转换模块将波形产生模块输出的数字信号转换为模拟信号;并完成滤波以及放大等功能。此设计的特点在于结合了直接数字频率合成技术和锁相技术各自的优点,同时利用了FPGA的强大处理能力使系统易于实现,结构简单。本设计能产生正弦波,三角波,占空比可调的方波以及它们的线性组合;频率在100Hz~20KHz之间能以100Hz为步进进行调整;幅度可调范围为0~5V。



关键词:正弦波;三角波;占空比可调的方波;频率可调;FPGA;锁相环4046


Abstract

The system is designed to construct an Arbitrary Waveform Generator based on DDFS,with a PLL4046 and FPGA as the key,complimented by necessary analog circuit,so the system is very simple and convenience to realize.In the design ,there are four main module.The first module is oscillator,the modules are responsible for the formation of oscillogram and prefer waveform to output,in other words it can form square waveform,sinusoid waveform and delta waveform and output one kind waveform or the linear combination of several kind waveform;so this module is the key of the system.we use FPGA to realize this module,because FPGA have enough speed and logic unit to use ,and because of its programmable attribute,we can write procedure to complete our design,it is very convenience and reliable.The second module is the control of frequency.in this module,PLL(Phase Lock Loop)4046 plays a key role,iwhich realioze the change of frequency.In fact this module is also the key of the system,if there is not this module ,the frequency of the system can’t be changed and the frequency of waveform can’t be changed,too.PLL4046 have many function,for example:multiply frequency ,modulation.now we use it to multiply frequency,so the range of system frequency is very wide and having high definition.The third module is the digital-to-analog module.Obviously,it change the digital signal which is from the output port of FPGA into analogy signal by DAC0832,at the same time amplifer is used to amplify analogy signal and control of its amplitude range. The last module is demonstration module,its duty is to display the frequency of waveform.Then,by cascading every module,this system is realized. At last,this system can form square waveform,sinusoid waveform and delta waveform and linear combination of them.The frequency can be adjusted from 100Hz to 15KHz,its interval is 100Hz.It can gratify the request of the design.



Keywords::sinusoid waveform;delta waveform ;square waveform;FPGA;PLL4046


目 录

引言………………………………………………………………………………………1
1 设计任务……………………………………………………………………………1
1.1 基本要求………………………………………………………………………………1
1.2 发挥部分………………………………………………………………………………1
2 方案论证与比较……………………………………………………………………1
2.1 常见信号源制作方法原理……………………………………………………………1
2.2 常见信号产生电路……………………………………………………………………3
3 系统电路的设计……………………………………………………………………4
3.1 系统框图及说明………………………………………………………………………4
3.2 主要电路设计说明……………………………………………………………………6
3.2.1晶体振荡电路…………………………………………………………………………6
3.2.2倍频电路………………………………………………………………………………6
3.2.3数模转换和放大滤波电路……………………………………………………………7
3.2.4数码管显示电路………………………………………………………………………8
3.2.5 输入去抖电路…………………………………………………………………………9
3.3 主要软件设计说明……………………………………………………………………10
3.3.1前端核心软件设计……………………………………………………………………10
3.3.2波形产生模块软件设计………………………………………………………………12
3.4 主要元器件介绍………………………………………………………………………15
3.4.1FPGA介绍……………………………………………………………………………15
3.4.2锁相环4046介绍……………………………………………………………………16
3.4.3VHDL介绍……………………………………………………………………………19
3.4.4MAX+PLUSII介绍…………………………………………………………………………20
4软件仿真与硬件调试与测试 ……………………………………………………20
4.1 软件部分仿真…………………………………………………………………………20
4.2 硬件调试………………………………………………………………………………22
4.3 硬件电路测试…………………………………………………………………………22
4.4 误差分析………………………………………………………………………………23
5 工程设计………………………………………………………………………………23
6 制作……………………………………………………………………………………24
7 结论……………………………………………………………………………………25
谢辞………………………………………………………………………………………26
参考文献…………………………………………………………………………………27
附录………………………………………………………………………………………28