A Research and Realization of USB Device Protocol Stack Based on Freescale MCU
- Author
- ZhangYiWei
- Advisor
- XuChao , LiZhengPing
- School
- Anhui University
- Major
- Electronics and Communication Engineering
- Classification
- TP334.7 Interface devices,plug-in
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 29
- Citations
- 0
Abstract
Nowadays, more and more digital devices use USB as the interface to communicate with the HOST. We can see these devices around us from needing only to transmit small amount data devices, such as mouse, keyboard and so on,to needing to transmit large amount data devices, such as digital camera, digital video and any other storage devices.The USB Interface has almost been used in every type of computer peripheral.This is because of that USB specification is been perfected constantly and USB interface has many advantages. In the current USB application, PC always plays the role of USB Host, and the USB drive in PC is available without any other operation. Many operation systems of PC have included almost USB Device classes’ driver program. But various USB devices need to be programed according to the USB specification. So this paper points to design a common USB device protocol based on FreeScale S08JS16MCU. The user only needs to call some API functions to realize USB transmission without knowing how to process the data in the bottom. Therefore, using this protocol stack can greatly reduce the developers’working capacity, effectively shorten the development time, reduce development risk and guarantee quality development.Firstly, this article introduces the current application of USB interface, and elaborates the theory of USB interface. It includes the Bus Topology, USB data flow model, and four transfer types and so on.Secondly, the article introduces the protocol’s framework, and then start to elaborate how to realize every function module, how to transfer the data between every module, how to transfer information by call-back function between every level, what data structures need to be established, what global variable needs to be set and the user of this protocol how to operate every function.At last, the article analyzes how to manage the memory of USB controller. And then we start to check the protocol by tracing the USB Bus enumeration process that is necessary and important for all USB devices.At the end of this article, detailed description about the disadvantages and improvement of this protocol is mentioned and the foreground of USB interface is prospected.
Table of contents
Summary 3-4
Abstract 4-6
directory 6-8
Chapter 1 Introduction 8-11 <br / > 1.1 subject background appear 8-10
1.1.1 USB technology 8-9
trends 1.1.2 USB is 9-10 <br / > the main contents of this thesis 1.2 10-11
the second chapter of the USB protocol outlined 11-32
2.1 USB communication system Overview 11-14 <br / > topology 2.1.1 USB system 11-12
2.1.2 USB master and slave structure 12-14
2.2 USB data communication structure 14 -22
2.2.1 the basic unit of data transfer package 14-18
2.2.2 data types and Features 18-22
2.3 USB protocol stack equipment and software framework 22-32
2.3.1 Universal USB firmware process 22-24
2.3.2 standard USB descriptors (Descriptor) 24 -28
2.3.3 standard USB device request command 28-32
Chapter generic USB device protocol stack implementation 32-53
3.1 USB protocol Overview 32-36
3.1.1 USB protocol framework introduced 32-33
3.1.2 USB device stack data structure 33-36 <br / > 3.2 USB controller drivers underlying implementations 36-43
3.2.1 device initialization 37-38
3.2.2 USB protocol stack interrupt jump function 38-43
3.3 standard USB devices to realize request command 43-49
3.3.1 data Structure 43-46
3.3.2 USB device processing Standards process request command 46-48
3.3.3 achieve access to a variety of USB device descriptor 48-49
3.4 USB bus processing to achieve universal event global variables 49-53
needed 3.4.1 event handler 49-50
3.4.2 required to achieve 50-53
Chapter IV verified by JS16 platform USB protocol stack 53-63
4.1 MC9S08JS16 MCU in the USB module 53-60
4.1.1 -chip voltage regulator VREG 53 -54
4.1.2 USB transceiver (XCVR) 54
4.1.3 serial Interface Engine (SIE) 54-55
4.1.4 USB RAM 55-60
enumerate 4.2 USB devices 60-63
Chapter summary and Outlook 63-65
5.1 Full summary 63
5.2 topics to be perfect place Outlook 63
5.3 USB interface applications 63-65
References 65-67 <br / > Thanks 67
Related dissertations
- Design and Implementation of GriDoc Management System
- Research of vehicle driver training management system
- The Study of PCIe Interface Encryption Card Driver under the Linux
- Embedded Linux-based USB Encryption Driver Design
- Development of Test Resource Interface Specification Inspection Equipment
- Research on the Driving Technoloy of the High Power and High Rate Electro-Optic Modulator RF
- Software and Hardware Design and Implement of the Driver of the Thermal Lithographic Module in High-speed Card Producing Equipment
- Based on the40Nm Process LVDS Design and Implementation
- A Two-stage Electrolytic Capacitor-less AC-DC LED Driver
- The Design and Implementation of LLC120W LED Driver
- Design of a Kind of Direct Current Servo Motor Driver
- Study and Implementation on Detection System of Generator Insulation Overheating Device
- Research on Planar Motor Motion Control System
- Design and Implementation of WinAM BSP Based on Car-Mounted System
- Lights Control and Test System Based on Qt
- Driver Mental Workload Evaluation and Application in Driver Assistance System
- Effect of Experience Factors on Driver Hazard Perception
- Study on the Limit Time of Safe Lane Change Based on Driver's Subjective Judgment
- The Study of Driving Decision-making on Characteristics and Influencing Factors
- Road-Experiment for Velocity Reduction Enhancement Based on Edge Rate Bars