The Design of Data Acquisition System Based on USB
- Author
- WangDong
- Advisor
- WangFuDong
- School
- Suzhou University
- Major
- Control Theory and Control Engineering
- Classification
- TP274.2 Data collection and processing systems
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 587
- Citations
- 4
Abstract
As the demand to data acquisition is more and more hign in modern industry field,the traditional method which mainly makes use of data acquisition card has not adapted to the hign requirement of modern data acquisition because of the low transmission speed、incovenient installation、weak ability of anti-jamming and other problems.USB(Universal Serial Bus) has many advantages,such as hign transmission speed、sustaining hot plug and few transmission lines.So the application of USB in data acquisition system can be the solution of the deficiency of traditional data acquisition system,and it will has widely application value.Aiming to the need of hign speed data acquisition system,we design a data acquisition system based on USB in this paper.The design work of this system consists of hardware design and software design.In hardware design,the AT89C5131 MCU of ATMEL company is apllied as microcontrollers to receive digital datas converted from A/D.Meanwhile,the USB controller in the MCU can realize the USB data communication between MCU and PC.The main difficulty in the design work is the software design.The design of firmware program、USB drive program and user program are included in the software design.The firmware program is developed through the software of Keil C,and the USB diver program is generated automatically by DriverWorks and modified appropriately;Through the design of firmware program and USB drive program, the MCU can be identified as USB slave device by the host PC, and the datas collected can be transmitted to PC by USB data wire.The user program of PC is developed by VC++,and the USB data acquisition interface is designed by MFC to display the wave form of the datas collected.In the end of this paper,we test the system,and the wave forms of the inputting random signals can be displayed on the data acquisition interface designed.The practice work indicates that the design work of this system has received initial success,and the USB data acquisition function can be realized by the system.
Table of contents
Abstract 3-4
Abstract 4-10
first chapter 10-13
1.1 research significance 10
1.2 subject background 10-11
1.3 domestic and international status quo 11-12
1.4 research content 12-13
USB protocol specifications 13-23
USB 2.1 development process 13
2.2 USB 2.0 architecture 13-15
2.2.1 USB host controller / root hub (Host controller / Root hub) 14-15
2.2.2 USB hub (USB of hubs) 15
2.2.3 USB devices (USB devices) 15
2.3 USB bus physical interface 15-16
2.4 USB 2.0 data traffic 16-18
2.4.1 USB logic structure 16-17
2.4.2 USB data transfer types 17-18
2.5 USB device structure 18-21
2.5.1 USB device status 18
2.5.2 USB standard requests 18-20
2.5.3 USB device descriptor 20-21
About
2.6 USB OTG 21-23
2.6.1 USB OTG generation 21-22
2.6.2 USB OTG mechanical properties 22
2.6.3 support USB OTG chip 22
2.6.4 Embedded USB data acquisition system 22-23
Chapter III system hardware design 23-42
3.1 overall system design 23-24
3.1.1 the practical application of system design 23-24
3.1.2 of this subject experimental design 24
3.2 USB control circuit 24-35
3.2.1 USB control chip selection 24-25
3.2.2 AT89C5131 microcontroller features and structure 25-27
3.2.3 AT89C5131 package and pin description 27-28
3.2.4 AT89C5131 built-in USB controller 28-34
3.2.5 AT89C5131 USB interface circuit 34-35
3.3 the A / D conversion circuit 35-38
3.3.1 A / D conversion device 35-37
3.3.2 A / D converter interface circuit 37-38
3.4 external memory interface circuit 38-39
3.4.1 External memory 38-39
3.4.2 external memory interface circuit 39
3.5 system peripheral circuit 39-41
3.6 Summary 41-42
the fourth chapter of the system software to achieve 42-73
4.1 firmware 42-60
4.1.1 firmware tasks 42
4.1.2 firmware design structure 42-44
4.1.3 USB descriptor definition 44-49
4.1.4 initialization procedure 49-53
4.1.5 USB task handler 53-55
4.1.6 device enumeration process 55-56
4.1.7 data acquisition program 56-60
4.2 USB driver 60-68
4.2.1 WDM driver introduced 60-62
4.2.2 USB driver structure 62-63
4.2.3 USB data acquisition system drivers 63-68
4.3 application design 68-72
4.3.1 driver and application communication 68-69
4.3.2 USB data acquisition system application design 69-72
4.4 Summary 72-73
Chapter V Conclusion 73-76
5.1 system test results 73-74
5.2 summarize 74-75
5.3 Looking 75-76
References 76-78
papers published during the master's degree 78-79
thank 79-80
Appendix 1 USB register description 80-85
Appendix 2 system hardware board 85-86
Appendix 3 waveform mapping function program code 86-89
Related dissertations
- Research on USB Protocol and USB Interface Drivers
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- CCD Data Acquisition System Implementation Based on FPGA
- Research of Data Acquistion System Based on FPGA
- Research on the Digital Broadband Electromagnetic Tomography System
- Data acquisition System Design of Active Optical Fiber AC Current Transformer
- Research on Wireless Sensor Network in Automobile Comprehensive Performance Testing System
- Design and Implementation of Multi-channel Analog and Digital Data Hybrid Acquisition Device
- Design and Implementation of TEM High-speed Acquisition System Based on FPGA
- The Reseach of Isolation Technology in the Multi-channel Data Acquisition System
- The Motor Parameter Measurement System Based on Soft Measurement Technology
- The Research and Design of Data Acquisition System Based on USB
- Realization of Data Acquisition and Monitoring Systerm Based on Can Bus in Production Line
- High Definition Multichannel Analog Signal Input/Output System
- Research on Isolated Multi-Channel Data Acquisition and Control Equipment
- Design of the High Speed Data Acquisition System Based on USB2.0
- Study of Data Acquisition System for Greenhouse Based on MCU
- Design and Implementation of High-speed Data Acquisition System Based on FPGA
- CANopen gate winding hoist machine experiment platform based on design and research
- Study of Data Transmission System Based on USB2.0and FPGA