计算机工程与应用 ›› 2014, Vol. 50 ›› Issue (20): 244-248.

• 工程与应用 • 上一篇    下一篇

基于ROM的FPGA多通道PWM调速策略研究

杨剑锋,张  峰,张  翠   

  1. 兰州交通大学 自动化与电气工程学院,兰州 730070
  • 出版日期:2014-10-15 发布日期:2014-10-28

Strategy of speed-controlled signal of multi-channel PWM based on ROM of FPGA

YANG Jianfeng, ZHANG Feng, ZHANG Cui   

  1. College of Automation & Electrical Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
  • Online:2014-10-15 Published:2014-10-28

摘要: 针对目前机电一体化系统中PWM信号通道多和难同步的问题,提出一种基于ROM的FPGA多通道PWM发生器的设计方法。利用FPGA内部ROM资源,通过软件的方法根据需要产生多路PWM信号。多路PWM发生器通过采用同一时基,可实现PWM信号的严格同步和不同调制策略。采用的FPGA数据采集速度达到1 MB/s,独有的NiosII核软处理器可以实现DSP的功能,可以完成复杂的数据处理。设计方法在机械臂控制系统中进行了实际的应用,初步设计了硬件电路并利用quartus II和modelsim给出了仿真结果。实验结果表明设计方案能很好满足系统功能和性能要求,同时设计又具有开放性,可以在此基础上进行扩展。

关键词: 脉冲宽度调制(PWM), 只读存储器(ROM), 现场可编程门阵列(FPGA), 多通道

Abstract: Aimed at the problem of the present situation of multi-channel PWM signal and difficult synchronization of the mechatronics system, it puts forward a design method of multiplex PWM generator based on ROM of the FPGA. Using ROM resources of the FPGA, it is needed that generating multiplex PWM signal through the method of using software. By using the same time base, multi-channel PWM generator can realize strict synchronization and different modulation strategy of PWM signal. The speed of FPGA data acquisition can reaches 1 MB/s, unique NiosII nuclear soft processor can realize the function of DSP, which can complete the complicated data processing. The method is actual applied in the control system of the robot arm, it preliminarily gives the hardware circuit and the simulation result with the quartus II and modelsim. The experimental results show that the design can well satisfy the system function and performance requirements, the design also is open, it can be extended.

Key words: Pulse Width Modulation(PWM), Read-Only Memory(ROM), Field-Programmable Gate Array(FPGA), multiplex