Design of Image Acquisition System Based on USB Interface
- Author
- WuZuo
- Advisor
- YuanXiangHui
- School
- Chongqing University
- Major
- Instrument Science and Technology
- Classification
- TP274.2 Data collection and processing systems
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 1,369
- Citations
- 18
Abstract
The acquisition and processing of image signal are used widely in the fields of scientific research, industrial and agricultural production, medicine and sanitation, public security and so on. And these works can’t be completed without a set of high-speed image acquisition system. Meanwhile image acquisition is the basis of image processing, compressing and recognizing, so the research on image acquisition system is very important and valuable. In order to acquire image, a kind of high-speed computer interface supporting long time and high throughput data transferring is needed. USB 2.0 interface is a computer interface that meets the need of image acquisition. In addition, USB interface has the advantages of high transfer-rate, hot plug and play, less resource requirement, being easily extended and used. At present, many peripheral devices of computer use USB interface to accomplish data communication with computers. The research of “Image Acquisition System Based on USB Interface”is to design a high-speed image acquisition card acquiring and processing image data, and then transferring the data to computer by USB2.0 interface, to display and store the data on computer. The hardware circuit of the system was designed and PCB board was produced. The software of the card was developed too. The image acquisition card contains the following five parts: CMOS image sensor circuit, CPLD control circuit, SRAM storage, digital signal processor and data transferring part based on USB 2.0 interface. This dissertation compared USB interface with other computer interfaces, summarized the advantages of USB interface, and studied the USB 2.0 protocol. For the hardware circuit design, the conceptual scheme of image data acquisition system was proposed, and then the principle of image acquisition card was demonstrated. Lastly, it’s expatiated that the main chips used in the acquisition system, the main modules of hardware circuit, the CPLD logic design and the PCB design etc. For the software design, the development of DSP program in the acquisition system was introduced. At the same time, the design scheme of CY7C68013’s firmware was given. And the firmware was developed. It’s discussed based on firmware design that the design method, developing structure, main program, initial function, and endpoint configure and GPIF design of CY7C68013 firmware program. WDM driver is the software interface to access and control hardware, and application provides users with interface and the USB data transferring result. So the development of WDM driver and the application of the acquisition system were introduced. Lastly, the data transferring results between the application and DSP by USB interface were demonstrated.
Table of contents
Chinese Abstract 4-6
Abstract 6-12
1 Introduction 12-16
1.1 Introduction 12
1.2 comparison of various computer interface 12-13
1.3 USB interface, the development history and current situation 13-15
1.4 topics significance 15
1.5 research topics and main tasks 15-16
2 USB 2.0 protocol describes 16-30
2.1 Introduction 16
2.2 USB system structure 16-17
2.2.1 USB host 16-17
2.2.2 USB devices 17
2.3 USB bus physical connections and electrical features 17-19
2.3.1 USB connector 17-18
2.3.2 USB cable 18
2.3.3 USB device speeds identification 18-19
2.4 USB data encoding / decoding 19
2.5 USB packet format 19-21
2.5.1 packet 19-20
2.5.2 token packet 20
2.5.3 packet 20
2.5.4 handshake packet 20-21
2.6 USB of iN, OUT transaction processing 21-22
2.6.1 IN transaction processing 21
2.6.2 OUT transaction processing 21 - 22
2.7 USB data transfer 22-25
2.7.1 control Transmission 22-23
2.7.2 block Transfer 23-24 <br / > 2.7.3 synchronous transmission 24
2.7.4 interrupt transfers 24-25
2.8 USB device 25-27
2.8.1 USB device Status 25
2.8.2 device descriptor 25-27
2.8.3 USB standard device request 27
2.9 chapter Summary 27-30
3 acquisition system hardware circuit design 30-50
3.1 Introduction 30
3.2 acquisition system Principles 30-31
3.3 DSP chip TMS320VC5416 31-34
3.3.1 DSP brief 31
3.3.2 TMS320VC5416 chip 31-32
3.3. 3 TMS320VC5416 PGE160 pin assignment 32-33
3.3.4 host Interface (HPI) 33-34
3.4 USB chip 34-36 <br / > 3.4.1 USB chip selection 34
3.4.2 USB controller CY7C68013 34-36
3.5 CMOS image sensor OV7620 36-38
3.5.1 CMOS image sensor 36-37
3.5.2 OV7620 introduction 37-38
3.6 hardware design 38-47
3.6 .1 OV7620 connection with CPLD EPM7128 38-39
3.6.2 CPLD and DSP interface 39-40
3.6.3 EPM7128 's internal logic circuit design 40-43
3.6.4 TMS320VC5416 peripheral circuits 43-45
3.6.5 TMS320VC5416 connection with CY7C68013 45-46
3.6.6 CY7C68013 peripheral USB interface circuits and circuit design 46
3.6.7 power Module design 46-47
3.7 PCB design 47-50
3.7.1 power , to design 48
3.7.2 decoupling capacitor design 48-49
3.7.3 electromagnetic compatibility (EMC) design 49-50 < br /> 4 DSP programming 50-58
4.1 DSP program development processes and tools 50-51
4.1.1 DSP program development process 50 - 51
4.2.2 CCS integrated development environment 51
4.2 prepare the linker command file 51-52
4.3 DSP program development 52-58
4.3.1 memory-mapped registers (MMR) initial 52-53
4.3.2 interrupt Service Routine (ISR) 53-55
4.3.3 HPI port control 55-58
5 USB firmware programming 58-70
5.1 firmware role 58-59
5.2 registers , Buffer area and descriptors defined 59-60
5.2.1 register and buffer definition 59
5.2.2 descriptor definition 59-60 < br /> 5.3 USB interrupt 60-61
5.4 firmware design ideas and firmware architecture 61-63
5.5 main 63-64 <br / > 5.6 initialization function 64
5.7 endpoint configuration and data transfer 64-65
5.8 I ~ 2C interface control 65-66
5.8 I ~ 2C interface control 66-70
6 USB driver and application design 70-82
6.1 WDM Overview 70
6.2 WDM driver layered program 70-72
6.3 I / O request packet (IRP) 72
6.4 WDM drivers composition 72-73
6.5 USB device driver programming interface 73-74
6.6 application design 74-78
6.6.1 USB device drivers and applications for communication between 74-75
6.6.2 application 75-78
6.7 USB interface data transmission result 78-82
7 Conclusion 82 - 84
7.1 the main contents 82-83
7.2 designed to improve and perfect 83
7.3 development and Prospect 83-84 <br / > Thanks 84-86
References 86-88
during master Appendix authors of papers published 88-89
originality statement 89
dissertation copyright attorney 89
Related dissertations
- Multifunctional Position Detection and Integration Method Research of Permanent Magnet AC Servo System
- Design and implementation of the short range active defense system in the central controller based on DSP
- Industrial Intelligent Camera Design Based on DSP
- Design and implementation of intelligent control system of the pellet formula of traditional Chinese medicine pharmacy
- The10kV5Mvar Cascade STATCOM Device Research and Development
- Research for Optimization Algorithm of the Power Factor Compensation and Intelligent Controller
- System Design on Portable Four-channel Data Acquisition
- Design of Electrical Resistance Tomography Based on Parallel Data Acquisition
- A Radiation-tolerant CMOS Image Acquisition System
- The Design and Implementation of USB Image Transmission System Base on Android
- Study on System of Image Acquisiton and Transmission Based on Sopc
- Research on the Measurement System of LED
- Design of Data-Acquisition System for Micro Fiber Optic Spectrometer Based on Stm32
- Research on the Optical Fabry-pérot Cavity Demodulation System Based on Interference of Polarized Lights
- The Research and Design of Digtal Image Acquisition System Based on DSP+CPLD
- Research & Implementation Data Acquisition and Hard Disk Storage System Based on DSP
- Optimizing of Data-acquisition System for Laser Electronic Whiteboard and Realization of USB Interface
- The Update and Experiment for FMT System Based on the WINDOWS
- Control Technology Based on DDS Signal Generator under the Design and Implementation
- The Design of High-Speed Digital Image Acquisition System Based on OV7640