The Design of USB Driver Based on μC/OS-Ⅱ Operating System

Author
ZhaoXinRan
Advisor
LiShuHua , ZhiMin
School
Inner Mongolia Normal
Major
Applied Computer Technology
Classification
TP334.7 Interface devices,plug-in
Degree
Master's thesis
Year
2009
Downloads
176
Citations
1

Request the full text

Abstract

USB (Universal Serial Bus) is a very important bus structure. Its lots of advantages, just as plug and play, hot plug and small volume of the interface have hugely changed the development of the technology of connecting computers to external equipments.μC/OS-Ⅱis an open-source, complete, portable, curable, well customizable real-time embedded operating system, which provides task management, time management, memory management, as well as communication and synchronization functions between the mission. It can be easily ported to a variety of microprocessors. SAMSUNG’s S3C44B0X is the widely used SOC which is based on the ARM7TDMI core and it has a high-performance, low power consumption and low cost characteristics of embedded applications for many industries to provide cost-effective solutions.This issue uses S3C44B0X processor and the external interface components for designing embedded hardware test platform. On this hardware platform, we implement the USB communication control, keyboard management, LCD display, real-time operating systemμC/OS-Ⅱporting and other functions. According to standards of low cost, little consumption and fast speed, this paper has built a USB slave system with PDIUSBD12 chip as slave controlling chip. This system completes the enumeration, configuration and other functions of USB equipment, fulfills the design and application of USB core drive program and USB keyboard drive, and finally implements human interface device protocol on this system. As a major context for basic designing and developing of system software,μC/OS-Ⅱreal-time operating system is used for multi-task scheduling management. System program uses C language.In order to improve real-time and efficiency of system, part of the procedure cross-uses of C language and assembly language. After designing and testing, hardware and software have achieved what was set in the beginning. The test result indicated that USB drive program together with the system can be run successfully in context ofμC/OS-Ⅱoperating system and related running situation, then carries out USB keyboard testing and reading operation, hence, meeting the original design purpose of embedded USB slave system module.The completion of the subject provides a theoretical foundation and practice for achieving the USB data communication under non-PC machines. It has a wide range of practical application value.

Table of contents

Chinese Abstract 4-5 ABSTRACT 5-9 first chapter 9-12 the background and significance of the research 1.1 9-10 1.2 research content 10-12 second chapter of the embedded system architecture design 12-20 2.1 Embedded System Overview 12 2.2 overall system architecture and sub-module design 12-20 2.2.1 hardware system overall architecture 12-13 2.2.2 embedded processor S3C44B0X 13 2.2.3 USB controller chip 13-14 the the 2.2.4 serial communication module 14-15 2.2.5 ZLG7289 chip 15-17 2.2.6 LCD display module 17-18 2.2.7 FLASH module 18-20 USB interface protocol and works 20-33 USB 3.1 structure 20-22 3.1.1 USB system described 20 3.1.2 USB system software and hardware components 20-21 3.1.3 USB mechanical and electrical characteristics 21-22 3.2 USB communication protocol 22-33 the 3.2.1 binary number sequence - Domain 22-25 3.2.2 basic data unit - package 25-27 3.2.3 type of data transmission 27-30 3.2.4 USB device requests and standard descriptors 30-33 Chapter USB core driver design 33-48 4.1 PDIUSBD12 chip firmware programming 33-37 4.1.1 PDIUSBD12 Introduction 33 4.1.2 PDIUSBD12 endpoint description and command word 33-36 4.1.3 ARM connection with PDIUSBD12 36-37 4.2 USB driver implementation 37-48 4.2.1 hardware abstraction layer and command interface layer 37-39 4.2.2 fault 39-44 4.2.3 USB protocol layer 44 4.2.4 host enumeration process 44-48 USB keyboard-driven design Chapter μC/OS- Ⅱ 48-58 the 5.1 μC/OS- Ⅱ Introduction 48 5.2 ARM-based μC/OS- Ⅱ transplantation 48-56 5.2.1 transplantation conditions 49-50 5.2.2 porting process 50-55 5.2.3 transplantation test 55-56 5.3 keyboard ΜC/OS- Ⅱ USB-based drive design 56-58 5.3.1 interrupt processing 56 5.3.2 multi-task communication 56-58 Chapter VI Conclusion 58-59 the References 59-61 Appendix 1 61-62 Appendix 2 62-63 Appendix 3 63-64 Appendix 4 64-65 Appendix 5 65-66 Acknowledgements 66

Related dissertations

  1. Design and Implementation of Ethernet Transfer Based on ARM
    LiMingJian ·Dalian University of Technology ·2013 ·Master's thesis
  2. Process Monitoring and Fault Diagnosis System and Application Based on ARM
    DengYanFei ·Nanchang University ·2013 ·Master's thesis
  3. Embedded Web Monitoring System Based on ARM and μC/OS-Ⅱ
    LvYiHui ·Nanchang University ·2012 ·Master's thesis
  4. Research and Design of the Dormitory Safety System Based on ARM and μC/OS-Ⅱ
    LiuJun ·Wuhan University of Technology ·2012 ·Master's thesis
  5. The Development of Indoor Invironment Monitoring System Based on Embedded
    YangChenWei ·Nanhua University ·2012 ·Master's thesis
  6. Design of Portable Flue Gas Analyzer Controller Based on ARM
    LiChao ·Xi'an Technological University ·2012 ·Master's thesis
  7. Research and Application of Temperature Nolinear Control Technology Based on ARM
    GuoWenJuan ·Chongqing University of Technology ·2012 ·Master's thesis
  8. The Call System Design of Ward Based on LM3S1138MCU
  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