Font Size: a A A

Microcontroller-based Usb Host From The Machine Design And Realization

Posted on:2008-09-17Degree:MasterType:Thesis
Country:ChinaCandidate:Y L HuiFull Text:PDF
GTID:2208360215450078Subject:Circuits and Systems
Abstract/Summary:PDF Full Text Request
With the development of bus and interface technology, how to transfer data in a more reliable, faster and more convenient way in the industrial environment has become one of the key researche topics in this field. The USB technology, with its outstanding features such as high speed, reliability and universality has enjoyed a rapid development in the last decade. The birth of USB OTG technology made it possible for two USB devices to communicate with each other when the PC is not available.In this dissertation, a hardware platform consisting of a 16-bit MCU MSP430F149 as the core controlling chip, and a USB interface chip of ISP1362 has been constructed. On the above platform, the part USB host function as well as the device function was realized. Besides, the storage and exchange of USB data could be implemented. The following work was finished in this dissertation:First, the USB protocol and the USB Mass Storage class protocols were seriously studied. As to the USB Mass Storage class protocol, the realization method through BULK-ONLY transfer type was discussed, while the referred SCSI instructions were thoroughly analyzed.Second, a system consisting of the control, interface, data storage, overcurrent protection and power switch modules was constructed. And the system schematic chart and the layout of PCB design were finished in virtue of ALTIUM 2004 software. Besides the hardware test was also finished.Third, on the platform, the host firmware and device firmware were designed respectively, targeting at realizing the host/device functions of ISP1362. The former could detect, identify and allocate some U disks; while the latter could detect, identify and allocate the attached U disk, while the latter realized the basic function, such as being identified by the Windows OS and transferring data in bulk way with PC.Finally, with the help of DriverWorks software kit, the driver program frame was constructed. The WDM-type driver on Windows OS was finally constructed after compiling the driver in the VC++ and Win DDK environmentOn the theoretical research on USB Communication Protocol, a hardware platform with chips of MSP430F149 and ISP1362 as the core, the host/device USB communication could be carried out. The experiment results showed that, PC could detect, identify, and communicate with the USB device, with a data-reading rate of 560KB/s and a data-writing rate of 312KB/s respectively; and the host could detect, identify, and allocate the inserted U disk.
Keywords/Search Tags:USB host, USB device, MSP430F149, ISP1362, BULK-ONLY transfer
PDF Full Text Request
Related items