提出一种在多用途步进电机运动控制系统中应用现场可编程门阵列(FPGA)实现多台步进电机可变细分脉冲分配器的方法.按照运动控制系统的多用途特性要求和可逆循环计数寻址EPROM的思想设计可变细分控制策略,将控制步进电机运转的矩形脉冲波通过细分代码转换成阶梯近似、幅值恒定的正弦、余弦波.利用Verilog HDL硬件描述语言,并运用MAX+plus Ⅱ开发软件,在单片FPGA上实现了多台步进电机的脉冲分配器,负责细分代码的生成与输出,并在FPGA片内集成了大部分的MCU外围接口电路,包括MCU的译码电路、键盘和中断接口电路,使MCU软件结构和外围电路大为简化.结果表明,系统扩展方便,可移植性高,具有广泛的适应性.
Used Field Programmable Gate Array (FPGA),we posed a way of realizing stepping motors' pulse-distributors in the Motion-controlled System. The design was based on the requirement of Multi-purpose characteristic and the method of Cycle-count EPROM Address. By means of the Hardware Description Language —— Verilog HDL and the developing software—— MAX+plus Ⅱ, we realized several stepper motors' pulse-distributors in a chip of FPGA. The pulse-distributors took charge of the code generating and output. The most of MCU interface circuits were also integrated in FPGA, including the decoding circuit, the keyboard interface and the interrupt interface. It makes the software structure and the peripheral of MCU become greatly simplified. The design proved a system convenient to extend,transplant and with wide adaptability.