基于ARM的嵌入式USB主/从接口设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
USB总线作为一种新型计算机总线,其即插即用、热插拔、接口体积小巧等优点给计算机外设连接技术带来重大变革。简单说来,USB系统包括:USB主机和USB设备。USB外设的开发和基于PC机的USB主机技术已经相当成熟。相对于PC机上的丰富资源,嵌入式系统中有限的资源给基于嵌入式系统的USB主机系统开发带来了很大难度。嵌入式USB系统的研究和开发将更进一步拓宽USB接口技术的应用领域。如何将USB应用到嵌入式领域,实现USB的点对点通讯,成为目前USB研究领域的热点。
     本系统中选用了Samsung公司的S3C4480芯片作为主CPU,使用Cypress公司的SL811HS芯片作为USB主机控制器,Philips公司的PDIUSBD12芯片作为USB接口芯片,构建了USB主/从控制系统。
     论文根据设计要求,首先分析了USB1.1协议,对USB的系统体系、数据通信模型、数据包格式、USB标准描述符进行了深入剖析;其次,在仔细分析SL811HS芯片的基础上,重点研究了USB大容量存储设备类规范和FAT32文件系统,进行了主控制器驱动程序和USB核心驱动程序的设计,并建立了USB主机与Mass Storage类设备之间的逻辑通信模型;论文也对USB接口芯片PDIUSBD12进行了深入分析,在进行固件设计的基础上,还深入研究了WindowsXP环境下基于WDM结构的USB驱动程序设计,完成了驱动程序和应用程序的设计。
     论文针对嵌入式USB系统进行了分析和研究,最终根据文中所提出的方案,设计了无操作系统的嵌入式USB主机和基于WindowsXP开发的USB从机系统。
USB (Universal Serial Bus) which has hugely changed the development of the technology of connecting computers to external equipments, has lots of advantages, just as plug and play, hot plug, small volume of the interface, and so on. The USB system usually involves two aspects: USB host contoller and USB slave controller. Today, the USB slave system has been extensively adopted and the USB host control applications in PCs are widespread. As the expanding of USB application area, it is more and more necessary to add mobilestorage function to embedded system. But, the limit resources have greatly restricted the development of USB host technology in embeded systems, especially the one which has not an operating system. Now, the application and realization of the USB technology to embeded systems is one of the focuses in the USB-Field.
     In this USB host/slave control system, we chose Samsung's S3C44B0 as the central CPU, Cypress's SL811HS as the USB host controller and Phillips's PDIUSBD12 as the USB device interface.
     According to the demand of our projects, this paper analyzed the USB1.1 protocol firstly, from which we can know about the structure of USB system, the model of data-communication, the format of data-package and the standard descriptor of USB. After the design of SL811HS host controller driver and the USB driver, this paper established the model of the logical communication between the USB host controller and slave devices which belong to Mass Storage Class. For the design of the firmware and simple application, the way how to programme USB drivers based on WDM structure in Windows XP systems also have been illustrated in this design.
     This paper analyzed and summarized the principle and structure of the USB control system, and finally finished the design of the embeded USB host control system which has not operating system and the USB slave system used in Windows XP.
引文
[1]王成儒,李英伟.UAB2.0原理与工程开发.北京:国防工业出版社,2004
    [2]Jan Axelson.USB大全.北京:中国电力出版社,2001
    [3]MindShare.USB系统体系.北京:中国电力出版社,2003
    [4]肖踞雄,翁铁成,宋中庆.USB技术及应用设计.北京:清华大学出版社,2003
    [5]薛园园.USB应用开发技术大全.北京:人民邮电出版社,2007
    [6]Microsoft Corporation.Universal Serial Bus Specification Revision 1.1,1998
    [7]孙耀国.USB设计应用实例.北京:中国铁道出版社,2003
    [8]吴迪,张军平,张文军.嵌入式计算机中USB主机控制器的研究与设计.计算机工程,2004,No.12:174-176
    [9]彭翔宇,胡豪,徐国治.嵌入式系统中USB主机控制器的实现.计算机应用,2003,No.10:129-130
    [10]欧阳晓青,黄鲁,王荣生.一种嵌入式USB主机的应用.电子技术,2004,No.7:26-29
    [11]周立功.ARM嵌入式系统软件开发实例(一).北京:北京航天航空大学出版社,2004
    [12]Microsoft Corporation.Universal Serial Bus Mass Storage Class Specification Overview Revision 1.2,2003
    [13]Microsoft Corporation.Universal Serial Bus Mass Storage Class Bulk-Only Transport Specification Revision 1.0,1999
    [14]Microsoft Corporation.Universal Serial Bus Mass Storage Class UFI Command Specification Revision 1.0,1998
    [15]Microsoft Corporation.FAT:General Overview of On-Disk Format,Version 1.02,1999
    [16]Microsoft Corporation.Microsoft Extensible Firmware Initiative FAT32 File System Specification,Version1.03,2000
    [17]SL811HS Application Notes Preliminary Revision 1.19,2001
    [18]刘晔波,朱欣华.SL811H/S在基于ARM7的嵌入式硬件平台中的应用.测控技术,2006,Vol.25,No.10:74-77
    [19]段海龙 程健,基于SL811HS的嵌入式USB主机的实现.电子技术应用, 2006,No.5:64-65
    [20]Cypress Semiconductor Corporation.SL811HS Embedded USB Host/Slave Controller data sheet,2002
    [21]孙骏,王晓蔚.嵌入式系统上的USB-HOST设计.现代电子技术,2004.No.24:89-92
    [22]马中梅,马广云,徐英慧,田泽.ARM嵌入式处理器结构与应用基础.北京:北京航天航空大学出版社,2002
    [23]Samsung Electronic.S3C44BOX Datasheet,2001
    [24]张龙,李波.S3C44BOX开发板的USB设备接口实现方案.工业控制技术,2005,No.12:101-103
    [25]田泽.嵌入式系统开发与应用教程.北京:北京航天航空大学出版社,2005
    [26]Microsoft Corporation.Mass Storage Class,Specification Overview Revision 1.1,2000.
    [27]周立功.ARM嵌入式系统软件开发实例(二).北京:北京航天航空大学出版社,2006
    [28]曹国飞,李全利.嵌入式USB主机文件系统的构建.自动化技术应用,2005,No.9:27-32
    [29]陆阳,闵信余,海深.嵌入式USB主机文件系统下的实时数据存储.计算机工程与设计,2007,Vol.28,No.6:1384-1386
    [30]程斓,杨子杰,基于PDIUSBD12的USB设备固件程序开发.计算机应用,2004.No.24:150-152
    [31]周立功.PDIUSBD12 USB固件编程与驱动开发.北京:北京航天航空大学出版社,2003
    [32]王朔,李刚.USB接口器件PDIUSBDI2的接口应用设计.电子技术应用,2001.No.5:47-49
    [33]王滔,季晓勇.基于PDIUSBD12的高速USB数据交换设备.微电子学与计算机,2004.No.6:47-59
    [34]马学文,朱名日.程小辉.嵌入式设备中USB接口的硬件设计.桂林工学院学报,2004,No.2:245-247
    [35]颉瑞昌,张根保,朱福益,王戈.基于PDIUSBD12的通用Fireware结构及设计.计算机应用研究,2005.No.9:199-200
    [36]徐爱钧,万天军,李家绪.一种U盘数据采集系统的设计.长江大学学报(自科版),2006,No.9:79-81
    [37]边海龙,贾少华.USB 2.0设备的设计与开发.北京:人民邮电出版社,2004
    [38]廖济林.USB2.0应用系统开发实例精讲,北京:电子工业出版社,2006
    [39]陆原,魏杰,孟玮,Windows XP环境下USB设备驱动程序的开发,国外电子元器件,2007年第7期,28-30
    [40]杨志亮.Protel99SE电路原理图设计技术.西安:西北工业大学出版社,2002
    [41]高鹏,安涛,寇怀成.Protel99入门与提高.北京:人民邮电出版社,2002

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700