摘要: 为了产生各种不同形式的脉冲宽度调制(PWM)信号,提出一种基于现场可编程门阵列(FPGA)的脉冲宽度调制信号发生器。采用硬件描述语言Verilog设计底层模块,并在FPGA芯片内部嵌入一个NiosII软核处理器,使用软硬件协同的工作方式产生多路PWM信号。实验结果表明,该信号发生器的频率输出范围为1 Hz~4 MHz,占空比可调范围为1%~99%,任意两路信号间的相位差范围为1°~180°,达到预期效果。
关键词:
脉冲宽度调制,
占空比,
NiosII软核,
压控放大器,
相位累加器
Abstract: Aiming at solving problems such as how to generate various Pulse Width Modulation(PWM) signals, a PWM signal generator based on Field Programmable Gate Array(FPGA) is proposed in this paper. It uses Verilog to customize system peripherals, and a NiosII soft-core processor is embedded in the FPGA chip, which enables to generate multi-channel PWM signal through collaborative work of hardware and software. Experimental results show that the output range of its frequency is 1 Hz~ 4 MHz, adjustable range of duty cycle is 1%~99%, and phase range between two signals is 1°~180°, achieving the desired effect.
Key words:
Pulse Width Modulation(PWM),
duty ratio,
NiosII soft core,
voltage controlled amplifier,
phase accumulator
中图分类号:
郝建卫. 基于FPGA的脉冲宽度调制信号发生器[J]. 计算机工程, 2013, 39(2): 260-264.
HAO Jian-Wei. Pulse Width Modulation Signal Generator Based on FPGA[J]. Computer Engineering, 2013, 39(2): 260-264.