基于USB总线接口的控制系统设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
通用串行总线(Universal Serial Bus)是一种在微机领域应用前景非常广阔的新型接口技术。自从Windows98操作系统开始对USB接口的全面支持后,USB总线技术逐渐进入实用性阶段,并成为PC机最重要的外设连接方式之一,以其使用方便、易于扩展、价格低廉、速度快等优点而越来越多地应用于数据传输。
     本文以基于USB总线接口的控制系统的设计过程为主要内容,阐述了利用Philips公司的USB接口芯片PDIUSBD12与MCU芯片STC89C52RC进行USB通信及控制,给出了具体的实现方案。
     论文首先介绍了USB1.1协议中的相关内容,然后介绍了整个系统的硬件设计和软件编程。在硬件设计部分,首先介绍了USB控制接口芯片PD12的性能特点和应用,然后给出了PD12与单片机之间的接口电路的设计方案。软件编程主要包括固件设计、设备驱动程序开发和用户应用程序开发三大部分。固件部分主要采用模块化的方式进行设计;先介绍总体的设计思想及其层次结构,随后详细介绍了各层次程序的设计内容,给出了部分源代码。设备驱动程序开发部分首先简单介绍了开发该驱动程序所用的集成开发环境,接着介绍了WDM驱动程序模型和USB驱动程序开发的过程。最后是主机端应用程序的设计,介绍了访问驱动程序的方法;它主要提供一个友好的人机界面,实现PC机与外围设备之间的通信。
     最后,对该系统的设计进行了总结,突出了USB接口的优势,并对其功能扩展进行了展望。
The Universal Serial Bus (USB) is a new kind of interface technology which is widelyapplied in the field of microcomputer. Since the windows98operation system supportedthe USB interface in computer, USB has gradually entered the practical stage and becomesone of the most important developments in PC peripheral interconnecting technology. Andit is more and more used in data transmission because of its convenience, expansibilitiesand fast speed.
     In this dissertation, a control system for communication is designed based on USB bus.We choose Philips’ chip-PDIUSBD12to control the interface and correspond withsinglechip STC89C52RC. In addition, the thesis also gives the specific realization scheme.
     Firstly, the protocol of USB bus is introduced briefly, and then the hardware design andsoftware programming of the whole system are discussed. In hardware section, theperformance of PDIUSBD12is described, and the interface circuit of PD12and singlechipMCU is given out. The software programming includes three sections,firmware, devicedriver and application program. The firmware (including several modules) programming isintroduced and some codes are given out. In device driver section, the IDE (integrateddevelopment environment) for programming and the developing steps of WDM drivermodel are introduced. The application program is designed to access the driver. It mainlyprovides a friendly user interface to communicate between PC and peripherals.
     In the end,a conclusion is drawn to highlight the advantages of USB, and a prospect ismade on the extension of USB functions.
引文
[1]肖踞雄,翁铁成,宋中庆. USB技术及应用设计[M].清华大学出版社,2003.
    [2]张念淮,江浩. USB总线接口开发指南(第1版)[M].北京:国防工业出版社,2001.
    [3]薛园园,赵建领. USB应用开发宝典[M].人民邮电出版社,2011.3.
    [4] USB implementers Forum Compaq, Intel, Microsoft. Universal Serial BusSpecification Revision1.1[S].1998.9.
    [5]汪盛,时亚弘. USB2.0技术概述[J].计算机研究,2001.
    [6] USB Implementers Forums. Universal Serial Bus Specification Revision1.0[S].1996.1.
    [7] Universal Serial Bus Specification, Revision2.0[S]. http://www.usb.org.
    [8] Jan Axelson. USB开发大全[M].中国电力出版社,2001.
    [9]边海龙,贾少华. USB2.0设备的设计与开发[M].人民邮电出版社,2004.1
    [10]王朔,李刚. USB接口器件PDIUSBD12的接口应用设计[J].新器件新技术,2002.4.
    [11]周立功. PDIUSBD12固件编程与驱动开发[M].北京航空航天大学出版社,2003.
    [12]王成儒,李英伟. USB2.0原理与工程开发[M].北京:国防工业出版社,2004.
    [13]周涛,张辉.采用PDIUSBD12的USB系统固件程序设计[J].集成电路应用,2002.
    [14]胡晓军,张爱成. USB接口开发技术[M].西安:西安电子科技大学出版社,2005.5.
    [15]朱静,钱敏,杨翠军,基于USB总线接口的控制系统设计[J].通信技术,已投稿
    [16]广州周立功单片机发展有限公司. PDIUSBD12固件编程指南[M].2002.
    [17]董友才,陈洪亮,梁倩.基于PDIUSBD12的USB接口固件程序设计[J].信息技术,2007.8.
    [18]郭玉峰,孙昌霞,张海鹏.基于PDIUSBD12的USB接口设计[J].河南科学,2007.2.
    [19]许永和. USB外围设备设计与应用(第一版)[M].北京:中国电力出版社,2002.
    [20]广州周立功单片机发展有限公司. PDIUSBD12USB接口器件使用指南[M],2002.
    [21]徐华中,马波.基于PDIUSBD12芯片的USB模块设计[J].武汉理工大学学报·信息与管理工程版,2008.4.
    [22]周建明,林平分. USB设备驱动程序的研究与开发[J].电子元器件应用,2010.11.
    [23][美]Chris Cant著,孙义,马莉波,国雪飞等译. Windows WDM设备驱动程序开发指南[M].北京:机械工业出版社,2000.1.
    [24]武安河. Windows2000/XP WDM设备驱动程序开发(第2版)[M].电子工业出版社,2005.5.
    [25]薛园园. USB应用开发技术大全[M].人民邮电出版社,2006.8.
    [26]晁建刚,魏安阳,邱淑范.通用串行总线(USB)设备的驱动[J].电子技术应用,2001.
    [27][美]Walter Oney著. Programming the Microsoft Windows Driver Model[M].北京:国防工业出版社,2001.3.
    [28]武安河,周利莉. Windows设备驱动程序开发实务[M].北京:电子工业出版社,2001.9.
    [29]郭益昆. VC++.NET开发驱动程序详解Windows2000/XP[M].北京希望电子出版社,2002.4.
    [30]张岳新. Visual C++程序设计[M].苏州大学出版社,2002.1.
    [31] Walter Oney. Windows Driver Model[M]. Microsoft Press,1999.
    [32]王跃刚,韩心中.基于WDM模式的USB设备驱动程序开发[J].微计算机信息,2006.12.
    [33][美]Banker.A, Lozano.J著,施诺等译. Windows2000设备驱动程序设计指南(第2版)[M].北京:机械工业出版社.2001.9.
    [34] Jeffrey Richter. Programming Applications for Microsoft Windows Fourth Edition[M].Microsoft Press,2000.5.
    [35]范文庆,周彬彬,安靖.精通Windows API-函数、接口、编程实例[M].人民邮电出版社,2009.2.

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

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

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