ABB UFC718AE101 使用通道通过UBS连接器传输数据
销售经理:刘锦玉
手机:15359273791 18059259367
邮箱:sales1@xrjdcs.com 18059259367@163.com
公司宗旨:打造优良的品质,塑造优良的服务。
经营理念:“诚信、务实”是我们不变的经营理念
公司目标:我们的目标就是给您一样的产品,不一样的是优势的价格与用心的服务
只要您有任何找不到的型号,都可以找我们
- 销售经理:刘锦玉
- 手机:15359273791 18059259367
- 邮箱:sales1@xrjdcs.com
描述
1 相位累加器
对于利用FPGA设计DDS信号源,相位累加器是决定DDS电路性能的一个关键部分。相位累加器是由N位累加器和N位寄存器级联构成,每来一个时钟脉冲,相位寄存器采样上个时钟周期内相位累加器的值与频率控制字K之和,并作为相位累加器在这一时钟周期的输出。由式(2)可知,相位累加器的位数N越大,得到的频率分辨率越小,但在较高的工作频率下,会产生较大的延时不能满足速度的要求。在时序电路中,通常采用流水线技术来提高速度,代价是增加寄存器的数量,多占了FPGA的资料。综合考虑,采用32位累加器,四级流水线结构。
2.1.2 相位-幅度变换器
相位-幅度变换器是由ROM构成,它把相位累加器的输出的数字相位信息变换成正弦波值。在FPGA中,ROM一般是由EAB来实现,并且ROM表的尺寸与地址位数或数据位数成指数增加的关系,因此相位-幅度转换器的设计是影响DDS性能的另一个关键,在满足信号设计指标要求的前提下,主要在于减少资源开销。考虑到本设计只需要输出正弦信号,正弦波信号关于点(π,0)奇对称,只需存储1/2周期的波形数据,又根据在左半周期内,波形关于直线x=π/2成偶对称,因此只需要存储1/4周期的正弦函数值,就可以通过适当的变换得到整个正弦码表,这样可以节约3/4的资源。
2. 2 低通滤波模块
DDS有一个明显的缺点,即输出频率越接近Nyquist带宽的高端,采样点数越少,其输出的杂散干扰就越大。输出波形具有大量的谐波分量和系统时钟干扰。为得到所需频段内的信号,需要在DDS输出端加一滤波器来实现,而低通滤波器能较好地滤除杂波,平滑信号,所以低通滤波器的设计尤为重要,滤波特性的优劣对输出信号的性能起重要的影响。
为取得较好的滤波效果,滤波器采用了由四选一模拟开关和精密运算放大器分段滤波的方式:采用巴特沃斯有源低通滤波器,该滤波器通带内幅度很平坦,滤波电路为二阶巴特沃斯低通滤波电路,滤波器频段参数的选择由FPGA输出的控制信号nINH,S0,S1控制模拟开关的选通实现。
1 Phase accumulator
For the design of DDS signal source using FPGA, the phase accumulator is a key part to determine the performance of DDS circuit. The phase accumulator is composed of an n-bit accumulator and an N-bit register cascade. For each clock pulse, the phase register samples the sum of the value of the phase accumulator and the frequency control word K in the previous clock cycle, and acts as the output of the phase accumulator in this clock cycle. As can be seen from formula (2), the larger the bit N of the phase accumulator, the smaller the frequency resolution, but at a higher operating frequency, a larger delay will be generated which cannot meet the requirements of speed. In sequential circuits, pipelining technology is usually used to improve speed, at the cost of increasing the number of registers, which accounts for more data in FPGA. Overall consideration, the use of 32-bit accumulator, four-stage pipeline structure.
2.1.2 Phase-amplitude converter
The phase-amplitude converter is composed of ROM, which converts the digital phase information of the output of the phase accumulator into a sine wave value. In FPGA, ROM is generally implemented by EAB, and the size of ROM table increases exponentially with the address bits or data bits, so the design of phase-amplitude converter is another key to affect the performance of DDS, which is mainly to reduce resource overhead under the premise of meeting the requirements of signal design indicators. Considering that this design only needs to output sinusoidal signal, sine wave signal about the point (π, 0) odd symmetry, only need to store 1/2 cycle waveform data, and according to the left half cycle, waveform about the line x=π / 2 even symmetry, so only need to store 1/4 cycle sine function value, you can get the whole sine code table through appropriate transformation. This saves three quarters of the resources.
2. 2 Low-Pass filtering module
DDS has an obvious disadvantage, that the closer the output frequency is to the high end of the Nyquist bandwidth, the fewer the sampling points, and the greater the stray interference of its output. The output waveform has a lot of harmonic components and system clock interference. In order to obtain the signal in the required frequency band, it is necessary to add a filter to the output end of DDS, and the low-pass filter can better filter the clutter and smooth the signal, so the design of the low-pass filter is particularly important, and the filter characteristics have an important impact on the performance of the output signal.
In order to achieve a better filtering effect, the filter is segmented by a four-choice analog switch and a precision operational amplifier: Butterworth active low-pass filter is adopted, the amplitude of the filter is very flat, and the filter circuit is a second-order Butterworth low-pass filter circuit. The selection of filter frequency band parameters is realized by nINH, S0, S1 control signal output by FPGA to control the gating of analog switch.