Development of USB_Host Based on FS44BOX and CH375A
- Author
- ZhaoLingWei
- Advisor
- HuangYongPing
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP274.2 Data collection and processing systems
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 139
- Citations
- 0
Abstract
With the development of progress along with the living numeral of mankind,the data gather system just walk up us from the professional applied realm,thepersonal computers, PDA, digital camera, multi-function mobile phone,MP3,MP4,the recording pen etc. are all the incarnations that the data gathersystem。While we observe these products carefully, we find they all have thecommon characteristics: support the USB protocol。USB,means Universal SerialBus。So, whether our data gather system of the past can adopt theUSB to carry out or not? The specification of USB provides thehigh-speed data transport, and the media it saves to is the U disk and ambulationhard drives which is more and more big。 If we carry on data gather with MCU ,and use the U disk to save data, our data gather system only need to carry out thedifferent data gather function, the data saving part then can use the general USBmodule。According to the above viewpoint, we carried on the theories to study andpractice, and carried on the summary.Our main mission is to carry out the USB host,which having such requests asfollowing :1、The CPU of this host should be able to attains the requests of the data gathersystem to gather data;2、This host mainly carries on reading and writing to the U disk;3、The operation of Reading and writing to the U disk should be able to beidentified by the essential operate system.According to the above requests, we distinguished to study themicroprocessor of ARM, host of USB and FAT document system.ARM( the Advanced RISC Machines), can be thought as not only a name ofcompany,but also a general name of the microprocessor,or a name of thetechnique。The ARM has the following characteristics:The small and low power ofphysical volume consume, low cost,high performance;Supports the Thumb(16)and ARM(32) instruction set,the ability is compatible with 8_bit and 16_bitmachine pieces;A great deal of usage register, the instruction was performancedfaster;Most data operations are completed in registers;the method of Addressingis simple and agility,carry out efficient;The instruction length is fixed。So far,the microprocessor and technical applications of ARM almost have alreadygone deep into the each realm:The industry control, wireless communicationrealm,network apply,consumed electronics product and becomes to be like andsafe product;and it is go foreword to more realm 。Because the ARM applicationextends continuously, the product is quick to increase,and cost becomes lowercontinuously,at the time of this topic’s choosing processor, we abandon traditional51 series, deciding to make use of this opportunity to approach the ARM,understanding the ARM。The USB host system is unique in the whole USB system, it includes asfollows 3 layers:The USB Bus;the USB System;USB Client 。Among them,the USB Bus manage the electricity and the protocol layer interlink age。The USBSystem uses the host controller to manage the data transport between the host andequipments 。What the Client describe is the software package which is needed tocommunicate with equipments of USB directly。The main function that the USB host complete includes 5 aspects as thefollowing:Examines the conjunction and the disconnect of the equipments ofUSB;Manages standard control piping between host and equipments;Managesthe data flow between host and equipments;Collects the statuses of theequipments,statistics the activity of the USB Bus;Control and Manage the electricinterface between the host controllers and the equipments, include providingcertain current for the endpoint。In order to carry out an USB host system, we need to choose a hostcontrol chip still。We chose the chip of CH375A, it has the following maincharacteristics:1、 The full speed USB-HOST connects, and permit the USBV2.0, the machine of outer circle piece needs the crystal and capacity only。2、 Thehost endpoint carries each 64 bytes for input and output buffer,supporting the 12Mbps full speed USB equipments。3、Support the USB control transport , thebulk transport,the interrupt transport 。4、 Examine the conjunction and thedisconnection of the USB equipments automatically,the affairs circular thatprovides the equipments connection and disconnection。5、Place the processor thatprovides the protocol of control transport inside, simplify the in common usecontrol transport。6、Inside place the firmware processing mass storagecommunication agreement of the saving equipments, support the savingequipments of the USB that the Bulk-Only transport protocol and SCSI, UFI,RBCs or other USB hard drive used the equivalent command set( include the USBhard drive/ USB flash disk/ U disk)。7、 Support the 5 V power supply electricvoltage and the 3.3 V power supply electric voltages, and support low powerconsume mode。The FAT document system is a more popular file system currently。It takes“cluster” as the unit on the hard drive to assign space for file。The FAT is themeaning that File Allocation Table , its contents is the current usage of each clusteron the patition。According to the bit’s number to describe the order of cluster,thereare several category types of FAT12, FAT16, FAT32。When the length of thefile is smaller than a cluster , using a cluster’s space to the saving the file;Whereas more clusters would be used;and means out this several clusters with theform of the chain of cluster in the FAT, the contents of the each cluster is no usedmarking or the file end marking or the number of next cluster。There is a FDTbehind in the FAT,where saves all the files’ name and the beginning clusternumber。If you want to operate the files,you must operate the FDT。Theinformation of the FAT and the FDT can acquire from the MBR of the disk and theDBR of the partition。According to the 3 parts theories,we carried on the design of the hardwareof the system。If we develop the system based on the microprocessor of ARM,we need to design the outer circuit of the ARM first, and to purchase the expensiveARM emulator。To shorten the development period,lower the developmentexpenses, we choose the usage more mature FS44B0X ARM developmentboard, which carry out the common outer circuit of S3C44B0X,and can debugonline,and give all the feet of the S3C44B0X with the form of the plug。Thus, weconnect the footprint on the circuit board we designed ourself with the feet of theS3C44B0X by the electric outlet,and weld CH375A and its outer circle chipsaccording to the request of the 3.3 V electric voltage work mode 。And, weswitch the power supply that the development board used to the 9 V、2 W,andfrom the development board last the derivation 5 V and the 3.3 V electric voltages。Now the power supplies the development board, the CH375A and the equipmentsof USB at the same time.The system software design begins with the CH375A chip initialization 。Successful the beginning starts to turn, we set the CH375A’s work mode, waitingfor the conjunction of the U disk。After examining the U disk conjunction, wemake use of the CH375A’s read command to read the MBR sector on the U disk,acquire the information of the FAT, FDT of this equipments。And according tothe format of the FAT file system,we design and carry out on the file operation ofestablishing, modifying, deleting on the U disk。After the designation of the software and hardware and debugging,we havealready carry out a simple USB host modular,which based on the FS44B0Xdevelopped board and make use of the chip of CH375A。 The moldular supportsto the U disk and the portable hard drive to read and write now。Next ,we shouldstrengthen the stability and the compatibility of the modulat, and test its function byconnecting to a part of a data gather system。
Table of contents
Introduction 7-8
Chapter Introduction to ARM microprocessor 8-10
1.1 ARM-Advanced RISC Machines 8
1.2 ARM microprocessor 's features 8-9
1.2.1 the ARM7 microprocessors Series 9
1.3 FS44B0X About 9-10
the second chapters USB host 10-16
2.1 USB Features 10
2.2 USB host controller functionality 10-11
2.3 USB host chip CH375A Overview -16
2.3.1 CH375A the 2.3.2 the CH375A main characteristics 11-12
12-13
2.3.3 CH375A package and pin 13-14
2.3.4 CH375A main command 14-16
Chapter FAT file system 16-25
3.1 FAT detailed 16-22
3.1.1 DBR region 16-19
3.1.2 FAT area 19-21
3.1.3 FDT area 21 - 22
3.1.4 DATA area 22
3.2 U disk the FAT32 to achieve 22-25
3.2.1 the MBR (Master Boot Record) area 23-24
3.2.2 DBR area 24-25
Chapter system hardware design 25-31
4.1 system schematic design 25-28
4.1.1 parallel communication interface 25-26
4.1.2 3.3V voltage 26
4.1.3 hardware connection schematic 26-28
4.2 system printed circuit board design 28-29
4.3 hardware design of the main problems encountered and solutions 29-31
4.3.1 power 29-30
4.3.2 CH375A chip output constant 0xFF 30
4.3.3 the CH375A work instability, of most U disk read and write commands returns abnormal 30-31 of
fifth chapter system software design the 31-38
5.1 system software flow 31-36
5.1.1 ARM initialization 32
the 5.1.2 USB initialization and communications 32-34
5.1.3 FAT file system 34-36
5.2 debugging experience 36-38
conclusion 38-39
Reference 39-40 the
abstracts 40-43
ABSTRACT 43-48
Acknowledgements 48-49
tutors and Author 49
Related dissertations
- Multi functional comprehensive test instrument based on Virtual Instrument Technology
- Embedded Fingerprint Identification System and Storage Technology
- The Designand Realization of Embedded USB Mass Storage System
- CANopen gate winding hoist machine experiment platform based on design and research
- The Designand Implement of Fingerprint Access Controlsystem Based on ARM and Linux
- Development of the Wet Gas Flow Meter System Based on DSP
- Research and Realization of Embedded USB-HOST
- Research and Realization of the Implementation of Mass Storage Device in Embedded System
- Embedded USB HOST Technology and Its Application in Intelligent Viscometer
- A Design of Embedded Storage System Based on ARM
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Remote Monitor System for Oil Wells Working Condition Based on GPRS
- Engine Room Monitoring System Based on the Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Research and Design of Embedded Graphic Remote Monitor Terminal
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Design of Remote Monitoring System Based on ARM
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Study on Embedded Data Acquisition System Application