The Design and Implementation of USB Host System Based on μC/OS-Ⅱ

Author
DingZhan
Advisor
LiuWenJie
School
Suzhou University
Major
Control Theory and Control Engineering
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2008
Downloads
142
Citations
1

Request the full text

Abstract

Society With the vigorous development of mobile devices , the USB interface technology is more and more people are concerned about . The embedded system is a combination of the underlying hardware , real-time operating system and application software dedicated computer system in the economic, social and people's daily life has been more widely used . Therefore , based on the research and development of embedded USB host controller gradually put on the agenda, as the development of popular one . μC/OS- Ⅱ system as a new kind of embedded real-time operating system , its free open source -oriented small and medium-sized applications can seize , the salient features of the multi-tasking and better portability , in all kinds of embedded devices has been widely used . In view of the above characteristics , the μC/OS- Ⅱ system as this subject of the underlying hardware and software design and development environment . The main objective of this paper is : In order to solve between USB devices can not communicate directly with the problem , the research design developed based on ARM core processor based embedded μC/OS- Ⅱ kernel USB host controller This article details the USB host controller. The system implements the USB core driver , host controller driver and the user program to support Mass Storage Device Class protocol established in the system streamlined the FAT file system , able to use this system to read the file in the FLASH flash drive data into the PC via the RS-232 interface . This topic using the the Samsung company S3C44BOX chip - based MCU , use the Cypress company SL811HS chip as the main controller chip , low cost , low power consumption , high speed USB host controller build standard . Software on the system to complete the USB host controller driver core driver and user software design , device enumeration and configuration functions and Mass Storage Class protocol and FAT file system . The topic after a few months of the hardware and software design and debugging , has achieved initial design goals . The test results show that : the circuit module and the USB driver correctly run under μC/OS- Ⅱ operating system and operating environment , the successful U disk read and write operations from detection and , to a USB host function module design requirements.

Table of contents

Abstract 3-4 Abstract 4-9 The first chapter 9-12 1.1 Introduction 9-10 1.2 research significance 10-11 1.3 research content 11-12 Chapter ΜC/OS- Ⅱ system analysis and improvement 12-29 2.1 ΜC/OS- Ⅱ features 12-13 2.2 ΜC/OS- Ⅱ task management and scheduling 13-18 2.2.1 μC/OS- Ⅱ task 13-15 2.2.2 μC/OS- Ⅱ task scheduling 15-17 2.2.3 μC/OS- Ⅱ real-time analysis 17-18 2.3 ΜC/OS- Ⅱ in the interrupt and clock 18-20 2.4 ΜC/OS- Ⅱ communication between tasks 20-24 2.4.1 event control block 20-21 2.4.2 Semaphore 21-22 2.4.3 Mailbox 22-23 2.4.4 message queue 23-24 2.5 ΜC/OS- Ⅱ improvements 24-28 2.5.1 Interrupt Handling Improvements 24-25 2.5.2 Interrupt DISPATCH 25-26 2.5.3 Improvements to the system clock interrupt 26-28 2.6 Chapter Summary 28-29 Chapter ΜC/OS- Ⅱ transplant 29-40 3.1 ΜC/OS- Ⅱ system architecture 29-30 3.2 ΜC/OS- Ⅱ porting requirements 30-31 3.3 portable implementation 31-39 3.3.1 compiler associated with the data type 31-33 3.3.2 operating system-related functions 33-36 3.3.3 associated with the processor function 36-39 3.4 Summary 39-40 Chapter USB interface protocol and operating principle of 40-57 4.1 USB interface, the history and characteristics of 40 4.2 USB interface protocol specification analysis 40-56 4.2.1 USB data flow model 40-42 4.2.2 binary number sequence - Domain 42-45 4.2.3 basic unit of data - packets 45-47 4.2.4 Data transfer type 47-52 4.2.5 USB standard device descriptor 52-54 4.2.6 dataflow model 54-56 4.3 Chapter Summary 56-57 Chapter embedded USB host controller hardware design 57-76 5.1 embedded USB host core chip 57-59 5.2 system power supply circuit design 59-60 5.3 Reset and clock circuitry 60-61 5.4 memory circuit design 61-65 5.4.1 FLASH memory circuit 62-63 5.4.2 SDRAM memory circuit 63-65 5.5 SL811HS embedded USB host interface chip and its peripheral circuit design 65-72 5.5.1 SL811HS functional modules and features 65-67 5.5.2 SL811HS pinouts 67-68 5.5.3 SL811HS timing 68-69 5.5.4 SL811HS relevant registers 69-71 5.5.5 SL811HS peripheral circuit design 71-72 5.6 serial interface circuit 72-73 5.7 JTAG test port circuit 73 5.8 keyboard, LED display circuit 73-74 5.9 system, the actual circuit board 74-75 5.10 Summary 75-76 Chapter embedded USB host controller implementation 76-101 6.1 对 SL811HS of access and operation 76-79 6.1.1 SL811HS read / write data 77-78 6.1.2 SL811HS read / write bulk data 78-79 6.1.3 SL811HS initialization 79 6.2 USB descriptors to obtain 79-81 6.3 USB enumeration achieve 81-85 6.4 SETUP, IN, OUT three transaction realization 85-91 6.4.1 Transfer Function Construction 86-88 6.4.2 to send / receive the first packet of the command word definition 88-90 6.4.3 Start send / receive packets 90 6.4.4 query wait 90-91 6.4.5 Affairs handshake packet information 91 6.5 USB transfer function of the realization 91-93 6.5.1 realize USB control transfer 91-93 6.5.2 realize USB bulk transfer 93 6.6 MASS STORAGE class protocol 93-95 6.7 FAT file system 95 6.8 system running the test 95-100 6.8.1 ADT IDE integrated development environment 95-96 6.8.2 running tests 96-100 6.9 Chapter Summary 100-101 Chapter VII Conclusion and Outlook 101-103 7.1 Conclusion 101 7.2 USB Host Technology Foresight 101-103 References 103-105 papers published during the master 105-106 Appendix 106-111 Thanks 111-112 detailed summary 112-114

Related dissertations

  1. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  2. Embedded Fingerprint Identification System and Storage Technology
  3. The Designand Realization of Embedded USB Mass Storage System
    WangMeng ·Hebei University of Technology ·2013 ·Master's thesis
  4. CANopen gate winding hoist machine experiment platform based on design and research
  5. The Designand Implement of Fingerprint Access Controlsystem Based on ARM and Linux
    ShiWeiMing ·Zhejiang University of Technology ·2012 ·Master's thesis
  6. A Design and Implement of Data Acquisition and Storage System with Embedded UC/OS-Ⅱ Technique
    PengMin ·Southwest Jiaotong University ·2007 ·Master's thesis
  7. The Design of USB Host and Human-machine Interface in Loom’s Embedded Control System
    YaoDongDong ·Zhejiang University ·2007 ·Master's thesis
  8. Design of Data Acquisition System Based on USB and μCOS-Ⅱ
    WeiMaoQiang ·Dalian University of Technology ·2007 ·Master's thesis
  9. The Research of Household Remote Monitoring Based on Embedded Web Server
  10. Remote Monitor System for Oil Wells Working Condition Based on GPRS
  11. Engine Room Monitoring System Based on the Embedded Web Server
  12. Research and Design of Intelligent Video Surveillance System Based on ARM
  13. The Research and Design of Embedded Graphic Remote Monitor Terminal
    DengBoWen ·Harbin Engineering University ·2013 ·Master's thesis
  14. The Design of Embedded Network Video Surveillance System Based on ARM9
  15. Data Acquisition System of Cavern Based on Embedded Web Server
  16. Research and Design of Remote Monitoring System Based on ARM
    LinFeiLong ·Hunan University ·2014 ·Master's thesis
  17. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  18. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  19. The Study of Physiological Parameters Monitoring and Remote Wireless Alarming System Based on ARM
  20. Study on ARM-based Embedded Monitoring and Measuring System of Refrigerated Vehicle for Fresh-keeping of Fruit and Vegetable