Research and Development of a Motion Controller Based on DSP and FPGA
- Author
- ZhangYu
- Advisor
- YouYouPeng
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Mechanical and Electronic Engineering
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 960
- Citations
- 16
Abstract
Recently, with the development of micro-electronics and power electronics, motion control system is developing towards generalization, intelligence and miniaturization. Now, motion controllers based on DSP and FPGA are becoming the main trend. They can easily be plugged-in PC to combine their motion control abilities with the information processing capabilities of PC, which have the advantages of powerful information processing capability, strong motion control ability and good openness. After investigating motion control technology, a motion controller based on DSP and FPGA with PCI interface was developed in the thesis.Firstly, the hardware of the motion controller is designed. The hardware design of the motion controller is discussed in detail, such as the peripheral circuits of the DSP and FPGA, the PCI bus interface circuits, the analog output circuits, the encoder input circuits and the interface circuits of general purpose I/O.In order to enhance the integration and the reliability, many function units are designed and implemented in a FPGA, including a PCI bus target device controller, dual port RAM, DDA interpolation circuits, DAC interface circuits, encoder signal processing circuits and digital I/O signal processing circuits.Based on improved digital PID and feed-forward control, a closed loop position servo controller is designed, and its parameters are also regulated. Experiment results showed that the servo controller can work well.Finally, PCI driver of the motion controller is developed with the WinDriver, and the design steps of the driver are discussed in detail.
Table of contents
Abstract 4-5
ABSTRACT 5-12
The first chapter 12-19
1.1 Introduction 12
1.2 open CNC system and its research status 12-15
1.2.1 open CNC system concept 12
1.2.2 Open CNC System and abroad Research 12-14
1.2.2.1 Global Open CNC System Research 12-14
1.2.2.2 Domestic Open CNC System Research 14
1.2.3 open CNC system architecture 14-15
1.3 Motion Controller Research 15-16
1.4 purpose of this study and content 16-19
1.4.1 Objective 16-17
1.4.2 research 17-19
Chapter II System Master Plan 19-24
2.1 System Function Index 19
2.2 System Hardware Planning 19-22
2.2.1 master unit 19-20
2.2.2 host communication interface 20-21
2.2.3 Motor-driven interface 21
2.2.4 encoder feedback signal interface 21
2.2.5 Input / Output switch interface 21
2.2.6 Extended Memory 21-22
2.3 system software planning 22-23
2.4 Summary 23-24
Chapter board hardware circuit design 24-37
3.1 DSP hardware design 24-27
3.1.1 DSP power circuit design 25
3.1.2 DSP power supply monitor and reset circuit design 25-26
3.1.3 DSP communicate with the peripheral circuit design 26-27
3.2 FPGA hardware design 27-29
3.2.1 FPGA power circuit design 27-28
3.2.2 FPGA configuration circuit design 28-29
3.3 PCI interface circuit design 29-31
3.3.1 PCI connector design 29-30
3.3.2 Power requirements 30-31
3.3.3 Physical Requirements 31
3.4 Motion control interface circuit design 31-35
3.4.1 motor drive circuit design 31-34
3.4.1.1 Analog output circuit design 31-33
3.4.1.2 Pulse output circuit design 33-34
3.4.2 encoder feedback signal interface circuit design 34
3.4.3 General Purpose I / O interface circuit design 34-35
3.5 Hardware Design Considerations 35-36
3.6 Summary 36-37
Chapter IV of the functional modules within the FPGA design 37-62
4.1 FPGA design principles 37-38
4.2 PCI bus target device interface controller design 38-53
4.2.1 PCI bus constitute 38-39
4.2.2 PCI bus command 39-40
4.2.3 PCI bus address space 40-42
4.2.4 PCI bus transaction 42-44
4.2.4.1 PCI bus read transaction 42-43
4.2.4.2 PCI bus write transaction 43-44
4.2.5 FPGA-based PCI bus target device interface controller design 44-50
4.2.5.1 finite state machine module design 44-48
4.2.5.2 Configuration module design 48
4.2.5.3 base address check module design 48-49
4.2.5.4 Parity module design 49
4.2.5.5 Latch module design 49-50
4.2.5.6 retry count module design 50
4.2.6 PCI bus target device interface controller timing simulation 50-53
4.3 dual-port RAM module design 53-54
4.4 fine interpolation circuit design 54-58
4.4.1 Introduction numeric integration method 55
4.4.2 hardware interpolator principle 55-56
4.4.3 fine interpolation module in the FPGA to achieve 56-58
4.5 encoder signal processing circuit design 58-60
4.5.1 four interpolated resolution to the circuit design and 59
4.5.2 reversible counter design 59-60
4.6 DAC interface circuit design 60-61
4.7 Input / output switch signal processing circuit design 61
4.8 Chapter Summary 61-62
Chapter position closed loop servo PID control algorithm design and debug 62-73
5.1 PID control system structure and principle 62-63
5.2 digital PID control 63-65
5.2.1 digital PID control algorithm 63-64
5.2.2 improved digital PID control algorithm 64-65
5.3 PID plus feedforward control 65-67
5.3.1 PID plus feedforward control advantages 65-66
5.3.2 velocity and acceleration feedforward control 66-67
5.4 PID controller in the system to achieve 67
5.5 controller parameter tuning 67-72
5.5.1 trial and error tuning step 68-69
5.5.1.1 with step signal tuning PID 68
5.5.1.2 with parabolic signal adjusting the feedforward parameters 68-69
5.5.2 PID parameter tuning 69-71
5.5.3 feedforward parameter tuning 71-72
5.6 Chapter Summary 72-73
Chapter PCI device driver design 73-80
6.1 WDM Device Driver Introduction 73-75
6.2 WINDRIVER Profile 75
6.3 WINDRIVER architecture 75-76
6.4 WINDRIVER generated using PCI Device Driver 76-79
6.5 Chapter Summary 79-80
Chapter Summary and Outlook 80-82
7.1 Full Summary 80-81
7.2 Research Prospects 81-82
References 82-85
Thanks 85-86
master's papers published during 86
Related dissertations
- 5D film motion experience platform motion control card design
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- The Design and Research of PCI Data Acquisition Card Based on FPGA
- The Design of Multi-channel Optic-electronic Signal Acquisition and Processing System
- The Rearch of MIC Bus Controller Based on FPGA
- The Study of the Movement Control Method in Load Sensing System Based on Fuzzy PID
- The Design and Research of Embedded Multi-axis Control System
- The Research on Ethernet_based Interface of Embeded Motion Control System
- Design on Motion Controller of the Underwater Vehicle
- The Research and Design of Dispensing Robot Motion Control System
- Design and Experiment of a Motion Control System Based on FPGA
- The research and design of a multi legged robot motion control system
- The Research on the Ptical Mirror Reflector Single CCD Panoramic Imaging System
- Research and Realization of FPGA-Based Serial Bus
- The Research and Implementation of the M-GNSS Positioning Receiver
- Design and implementation of universal software radio platform based on multi core DSP
- Research of Image Data Caching and Processing in Monitoring System
- Design and Implementation of the Hardware Platform for Broadband Digital Beamforming
- Design and Realization of Multi-antenna Attitude Measurement Receiver Based on GPS
- The Design of Electrical Power Disturbance Signal Generator with Multifunction