USB2.0 interface controller chip firmware Design and Implementation
- Author
- LiZuo
- Advisor
- LiGuangJun
- School
- University of Electronic Science and Technology
- Major
- Signal and Information Processing
- Classification
- TP334.7 Interface devices,plug-in
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 500
- Citations
- 2
- Universal Serial Bus
- Firmware
- Flash Memory
- Bulk-Only transport protocol
- Small Computer System Interface
Abstract
Universal Serial Bus (USB) is a new type of serial bus which connects peripherals to computers. Since its advent, USB has rapidly become a standard interface between personal computers (PCs) and peripherals for its high transfer speed and applicability. All PCs on market today support USB interface with no exception, while many peripherals are found with only USB interfaces. It is predictable that USB will be more and more popular with its transfer speed and applicability being increased.Firmware is very important in a USB device project, which affects the transfer speed of USB directly.This dissertation puts forward a new solution on the firmware’s design of flash memory disk based on studying USB2.0 protocol, mass storage class and Small Computer System Interface (SCSI) command sets thoroughly. This dissertation describes the key technologies during the realization of firmware being designed.And a complete record of procedures and results through the firmware being debugged are shown, which testifies that the firmware of USB2.0 Interface Controller ASIC achieves the desired sights.In accordance with the Master-Slave architecture in USB 2.0 protocol, the workflow of the firmware is implemented based on interrupt pattern. The firmware program includes three sections: initialization microcontroller and all the peripheral circuits; interrupt service routine, which triggers interrupts and executes the interrupt; task module, which is called by the ISR.During the procedure of realization, main programme implements the initialization of system and waits for the occurrence of interrupt, the ISR calls the task module to execute the operation. The firmware analyzes the protocols and does not disturb the transfer of data. Thus, this procedure can not only guarantee the high transfer speed and good software structure but also simplify the design and test.Due to the strict timing requirements by USB protocol, the firmware must handle certain requests or status within valid periods. Hence during the debugging process, information sent by output program through the serial port can be used to assist debugging and to locate the problems. The debug goes in three steps: Firstly debugging
Table of contents
Chapter Introduction 12-15
1.1 USB technology development status and research significance 12-13
the 1.2 topics source of research goals 13
1.3 I did work 13-14
1.4 In this thesis, the organizational structure 14-15
Chapter II protocol analysis 15-30
2.1 the USB2.0 protocol analyzer 15-23
2.1.1 USB system structure 16-19
2.1.2 USB data transfer 19-21 <br / > 2.1.3 USB devices 21-23
2.2 Mass Storage Class specification describes the 23-27 2.2.1 Bulk-Only Transport Processes
24-26 < br /> the several transfers circumstances of 2.2.2 Bulk-Only the 26-27 2.3 SCSI command Introduction
27-30
Chapter USB2.0 interface control chip firmware design 30-39
3.1 firmware design and workflow 30-33
3.1.1 firmware design ideas 30
3.1.2 firmware workflow 30-32
3.1.3 firmware generally divided 32-33
3.2 USB2.0 interface control chip hardware About 33-39 < br /> Chapter USB2.0 interface controller chip firmware implementation 39-70 the
structure of the 4.1 firmware 39-40
4.2 firmware main layer implementation process 40-44
4.2.1 system power-up and initialization processing the 41-43
4.2.2 interrupt lookup table approach 43-44
4.3 USB standard request process 44-55
the 4.3.1 standard request lookup table the 46-47 4.3.2 Descriptor Table
47-48
4.3.3 configuration request processing 48-55
4.4 Bulk-Only Transfer processing layer process 55-60
the 4.4.1 Bulk_Out interrupt handling processes 57-58
4.4.2 Bulk_In interrupt handling process to achieve 58-60
4.5 SCSI command processing layer process 60-65
4.5. 1 Read (10) command processing 61
4.5.2 the Write (10) command processing 61-62
4.5.3 the Read Capacity command process 62
4.5.4 the Request Sense command processing process the 62-63 4.5.5 Inquiry command processing
63-64
4.5.6 Test Unit Ready command processing process 64
4.5.7 Mode Sense command processing 64-65
4.5.8 Mode Select command processing 65
4.6 flash processing layer implementation process 65-70
4.6.1 Block Erase operation 68-69
4.6.2 firmware pipeline processing Flash operation 69 - 70
Chapter USB2.0 interface controller chip firmware debug and test results 70-81
5.1 firmware debug platform and debugging tools nbsp the; 70-72
5.2 the the USB2.0 protocol processing layer firmware debugging methods the 72-74
5.3 disk management firmware debugging 74-78
5.4 system performance test 78-80 < br /> 5.4.1 Bulk-Only effective data transfer rate test 78-79
5.4.2 not load firmware U disk read and write speed test 79
5.4. 3 loading firmware U disk read and write speed test 79-80
5.5 summarizes 80-81
Chapter 6 Conclusions and Outlook 81-82
Acknowledgements 82-83
Reference 83-85
Appendix 85-90
the Appendix a career descriptor table 85 -88
Appendix II high-speed descriptor table 88-90
biography 90
Related dissertations
- The Reasearch and Application of NCUC-Bus and USB Conversion
- Record playback unit designed based on USB2.0 data
- The Control Logic and Software Design in Data Acquisition System for a Novel Patch-Clamp
- Research and design of remote data acquisition system based on USB interface
- Design of Portable Data Acquisition System Based on DSP
- USB-based data acquisition and control system development and research
- DSP and USB Application Studies in Wireless Digital Trans-receiving System
- The Design and Realization Method of Phonetic Acquisition System Based on USB2.0 Interface
- USB2.0 Applied in Mass Storage Cab Signal Recorder
- Research on Data Transmission Interface of Capsule Inspectors System Based on SCM and USB2.0
- Research and Design of Data Acquisition System Based on USB Interface
- Research on Technology of USB and Application in Digital Fiber Plug Gauge
- DSP Data Acquisition Board Based on USB Interface
- Universal remote operation of the master hand controller
- Design and Implementation of Portable Monitoring System for ECG Based on USB Interface
- Realizing Method of USB Channel Phonetic Data Acquisition System Based on DSP
- Development of Computerized Intermediate Frequency Therapy Apparatus and Control Center
- Design of Controller of GPIB Based on USB Technology
- USB bus - based data acquisition system design
- Research and Implementation of Embedded USB Application System