With the development of large-scale integrated circuit, micro-electronics, computer network and power electronics, motion control system has been developed to open motion control system with PC as the platform and DSP and FPGA as the core from the motion control system with SCM, microprocessor and ASIC as the core. This open motion controller with high-speed data processing capability of PC and DSP and FPGA peripheral expansion capabilities, not only has strong data processing ability, but also has modular, open and versatile features. This controller is the inevitable trend of future development. After investigating motion control system, a motion controller based on Ethernet, DSP and FPGA was designed in this paper.In the motion controller hardware circuit design, this paper details the design of DSP and FPGA external circuit, Ethernet interface circuit, pulse and analog output circuit, digital I/O circuit and the encoder circuit.In the motion controller software circuit design, this paper designs the PC interface program, Ethernet communication program, control algorithm program and FPGA program。Finaly, all programs were debugging and simulation. FPGA program and DSP program were downloaded to the chips to debug and run.The practice proved that the motion controller can well meet the real-time and precision of the system and verify the feasibility and stability of the system. |