The Design and Implementation of U Disk Read-Write System Based on TI 5409 DSPs
- Author
- YuDeJin
- Advisor
- ShiWenXiao
- School
- Jilin University
- Major
- Communication and Information System
- Classification
- TP333 Memory
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 678
- Citations
- 3
Abstract
Along with the popularization and development of USB (Universal Serial Bus), people have higher demands on USB. People hope that USB can be used in more extensive computer field, and slip the leash of PC. Now, development of USB host system based on embedded processor becomes leading edges of USB technology. Under such a background, author designed and developed the U disk read-write system based on TI TMS320VC5409 DSP processor and CH375 USB host/slave chip, and the core of the system is the USB host system.Now, most USB host systems based on embedded processor generally make use of ARM or singlechip system, and they hardly use DSP processor. If they used the DSP processor, the type usually was TI 2000. This U disk read-write system which is designed and developed in this article makes use of TI TMS320VC54X DSP processor.In addition, this U disk read-write system has much higher utility value, such as: it can realize mass storage for DSP system; it can realize software upgrade or data updating for DSP system; it can realize data exchange between DSP system and PC; we can grasp the method on developing driver of USB device; we can also make use of it as a USB device development system.In this article, first is the research about the theory and technology of embedded DSP processor system development and USB protocol. Then, on the basis of theory research and much experimental results, this article gives the scheme of USB host system which is based on TI TMS320VC5409 DSP processor and CH375 chip. Then, this article introduces the hardware platform and software system. Finally, this article realized the U disk read-write system.This USB host system uses TMS320VC5409 DSP processor, and the processor is the action initiator of the reading and writing; uses CH375 chip as the host controller of USB host system, and uses it to realize the USB protocol; uses the USB connector to realize the connection between the USB host and the USB device; the U disk is the USB mass storage device, and is the target which the system want to read and write. After the theory research and the design scheme work, it is the building of the hardware platform and the design of the software system, the process of the design and realization is with the following main steps: (1) First is the comprehensive planning of the hardware platform of the U disk read-write system. This system includes eight modules, such as: power module、DSP processor module、CPLD logical control module、bus driver module、USB host control module、U disk、keyboard control module and LCD display module, and the DSP processor module and the USB host control module are the core of the system and consist of the USB host control system.(2) The system uses TMS320VC5409 DSP chip、CH375 chip、LCD12864 screen、Lattice2128CPLD chip、HD7279 chip、singlechip-90C32、74LVC16245chip and TPS767D318 chip to design the hardware circuit of the system. On the basis of holding the design and development method of these chips, it uses the PCB design software called“Protel Dxp”to design the circuit principle drawing and PCB drawing. After making sure that the drawings have no error, it is the time to make the PCB board. After the PCB board is completed, the following work is jointing the board and testing. So far, the hardware platform of the U disk read-write system is completed.(3) This step is to design the software of the system. First, it needs to analyze the control mechanism and using method of the CH375 USB host control chip, then, it needs to analyze the layered structure of the U disk read-write software. The software has four layers, such as: I/O operation function layer、firmware function layer、interrupt service routine and file system function layer、main program layer.(4) Design and realize three I/O operation functions, such as: void CH375_WR_CMD_PORT (unsigned int cmd)、void CH375_WR_DAT_PORT(unsigned int DAT) and unsigned int CH375_RD_PORT( ).On the basis of realization of the I/O operation functions, combining the handling mechanism of the USB protocol in the CH375 chip, it realizes 14 firmware functions, such as: mode choice of CH375 function、chip testing function、state configuration function、standard communication commands、USB device storage operation functions and so on. It also realizes the interrupt service routine, the function of the interrupt service routine includes four aspects, such as: first, the program gets the interrupt state from the CH375 chip, clears up the request of the chip and makes the INT# pin come back to high level; second, based on the interrupt state, it makes sure the state of the U disk; third, it reads the data from the input buffer of the CH375’s host point to the DSP processor; fourth, it writes data from the DSP processor to the output buffer of the CH375’s host point.(5) In this step, it designs and realizes the read-write software, which makes the U disk as memories and designs and realizes the system software, which realizes the file system. When it makes the U disk as memories, the read-write method is very like flash, it’s easy and fast. If you make the U disk as memories, the PC can’t read or write the data from the U disk directly, after you write data to the U disk, because the PC observe file system, so the PC needs particular tools to read the data. Under the mode of file system, DSP processor needs to analyze the file system in the U disk, and reads or writes it following the rules of the file system. This read-write course is complex and slow, usually, it needs hundreds of sentences. After the data is written into the U disk using file system, PC can find the files and read them.The U disk read-write system can support hot inserting and pulling out, can identify and configurate the U disk automaticly, can read or write data steadily to the U disk based on sector and can read or write the files in the U disk. The software using file system realizes such operation: file-enumeration、file-building、file-open、file-reading/writing、file-locating、file-close、file-delete、file-location and so on.Today, development of USB host system based on PC and USB expansion for computer peripheral are quite mature and development of USB host system based on embedded system is very hot, in the future the technology of OTG, which can realize the directly communication between two USB devices, will be the research direction. Along with the development and maturation of USB technology, the ability of USB will get stronger, it will drive the development of the area of IT, and take convenience to people.
Table of contents
Summary 4-8
first chapter 8-12
1.1 Introduction 8
1.2 Background and Significance 8-10
1.2.1 background 8-9
1.2.2 significance 9-10
1.3 The main research work 10-11 <br / > 1.4 thesis structure 11-12
Chapter II DSP application development , and USB bus protocol research 12-32
2.1 embedded DSP application development research 12-18
2.1.1 Introduction to embedded DSP processors 12-14
2.1.2 DSP application development research 14-18
2.2 USB bus protocols 18-32
development 2.2.1 USB technology 18-19
2.2.2 USB features 19-20
2.2. 3 USB Introduction 20-21
logical hierarchical 2.2.4 USB system 21-23
2.2.5 USB data communication protocol 23-26 < br /> 2.2.6 USB device classes 26-28
2.2.7 USB host 28-32
U disk read and write the third chapter the overall system design 32-40
3.1 U disk read and write system design 32-35
3.1.1 U disk read and write system hardware structure 32-34
3.1.2 DSP read U disk needed to complete the task 34-35
3.2 U disk knowledge 35-39
structure and working principle 3.2.1 U disk 35-36
3.2.2 U disk standards descriptors 36
3.2.3 based on data flow model BULK-ONLY transport protocol 36-37 < br /> 3.2.4 UFI command set 37
3.2.5 data Transfer U disk between the host and 37-38
3.2.6 FAT file system 38-39
3.3 Summary 39-40
Chapter IV system hardware circuit design and implementation 40-59
4.1 system power module 40-42
4.1.1 TPS767D318 chip 40-41
4.1.2 system power module hardware design 41-42
4.2 system DSP processor module 42-45
4.2.1 TMS320VC5409 chip 42
4.2.2 system DSP processor module hardware design 42-44
4.2.3 TI DSP processor circuit design issues should be noted 44-45
4.3 system CPLD logic control module 45-47
4.3.1 CPLD About 45-46
hardware circuit design nbsp 4.3.2 CPLD module ; 46-47
4.3.3 CPLD development process 47
4.4 system bus driver module 47 -49
4.4.1 74LVC16245 chip 47-48
4.4.2 bus driver module hardware design 48-49
4.5 system USB host module 49-53
4.5.1 CH375 chip 49-51
4.5.2 USB control module hardware design 51-53
4.6 keyboard control system module 53-56
4.6.1 HD7279 chip 53-54
4.6.2 keyboard control module hardware design 54-56
4.7 system LCD module 56-58
4.7.1 MGLS-12864 LCD display 56-57
4.7.2 system LCD module hardware design 57-58
4.8 Summary 58-59
Chapter V system software design and implementation 59-73
master capability 5.1 CH375 analysis 59 -62
5.1.1 chip internal mechanism 59-60
Features 5.1.2 CH375 master of command 60-61
5.1.3 CH375 provide the type of 61
5.1.4 system CH375 chip I / O address assignment 61-62
5.2 U disk read and write system software architecture 62-68 <br / > 5.2.1 software architecture 62-63
5.2.2 system I / O operations functions firmware function 63
5.2.3 system 63 - 66
5.2.4 interrupt Service Routine achieve 66-68
5.3 U disk read and write memory -class software 68-69
5.4 U disk file-level read and write realization of software 69-71
5.4.1 CH375 file system library 70-71
5.4.2 U disk file -level operations applications process 71 < br /> 5.5 Chapter Summary 71-73
Chapter VI summary and Outlook 73-76
6.1 Full Summary 73-75
6.1. a thesis work and achievements 73-74
6.1.2 of the U disk read and write system features 74-75
6.1.3 experiences 75 <br / > 6.2 future 75-76
References 76-79
Summary 79-82
Abstract 82-85 < br /> Thanks 85-86
tutors and Author 86
Related dissertations
- The Test-equipment with U Disk Storage Function for Mechanical Parameters Acquisition System
- USB Host Mode Development Based on Embedded System USB
- Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
- Intelligent Video Surveillance System Based on DSP
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Implementation of Multi-channel Data Acquisition System
- Research on Measuring System of Mid-Infrared Photoelectric Autocollimator
- Usb Without Invasive Data Collection Technology Research
- Wire Rope On-line Detection System Design Based on DSP
- Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
- IMU Data Acquisition and Processing System Design and Realization Based on DSP
- Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
- Grating Data Acquisition and Error Correction Technology
- CCD Data Acquisition System Implementation Based on FPGA
- Design of Marine Toxin Analvsis System Based on ECIS and Image Detection
- The Design of Multi-channel Optic-electronic Signal Acquisition and Processing System
- Research of Data Acquistion System Based on FPGA
- The Study Oh Fuzzy Controlin TIG Welding Prossess