存储测试系统中USB2.0接口的设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
USB接口是一种总线接口标准,具有数据传输速度快、兼容性强、即插即用等优点,已经广泛应用于数据传输、图像采集领域。针对本实验室开发的存储测试系统与计算机的数据交换问题,提出并设计USB2.0数据传输接口,克服测试仪器数据传输较慢的缺点,还要有支持热插拔和便携的特点。
     本文主要阐述了以下四个方面的问题:
     (1)分析了本实验室测试系统接口的特点,综合比较各种系统总线的优缺点,并且介绍了USB总线技术的相关协议和特性;
     (2)基于课题的研究内容和目的,选用USB2.0芯片Cy7c68013实现存储测试系统的数据快速下载,确定USB2.0数据传输接口的设计方案,设计适用于存储测试仪器的USB2.0接口电路、电源管理电路、程序存储电路及电平匹配电路,绘制了电路PCB版图;
     (3)重点阐述了USB接口的软件设计,论述了固件的设计原理,建立通用的固件框架结构,结合应用程序编写了动态链接库,性能稳定,适用于多种操作系统,满足了系统的需求,同时研究了通用驱动程序和计算机应用程序的设计,编写了速度测试程序;
     (4)设计了USB接口测试方案,并针对数据传输速率及其影响因素进行了测试和分析,对使用过程中的注意事项做了相关的说明。
     经试验应用表明,该接口符合USB协议规范,并有良好的数据传输能力,可以满足存储测试系统与计算机的数据传输要求。该接口已成功应用于电子测压器、石油井下测试仪和冲击波测试仪等多种测试仪器,数据的传输速率达到了72Mbps。
USB interface is a bus interface standard. It has very high transfer rate, plug and play and compatibility virtue, and has been widely applied data transmission and image acquisition. Aimed at the data exchange issue between computer and the testing apparatus which are developed in the laboratory, it puts forward USB2.0 data transmission interface, Which breaks through the slow data transmission speed, and has the advantages of hot-plugged and portable.
     The following four aspects of the research were proposed:
     First, characteristics of store testing system interface are studied and researched, then synthesize and compare the advantages and disadvantages of the kinds of the bus. It introduces USB technology and characteristic.
     Second, based on the subject and object, USB2.0 chip Cy7c68013 was applied to realize the high speed download. Meanwhile the design of data transfer interface of USB2.0 was confirmed. This design can be used in USB2.0 interface, the design the power supply management circuit, the code storage circuit, the electric cooperation between them are studied in detail, plot PCB plate.
     Third, it expatiates the design of software and firmware for USB interface, and builds the firmware structure. Also, the dynamic link base was written combined the application which owns a stable performance and can be used in various systems. At the same time it studies the General Purpose Driver and computer application, and writes the speed test program.
     Fourth, the article introduces the testing project, then discusses and analyzes the data transfer speed of the USB interface. The notices of the operation are introduced.
     Testing and application shows that the USB interface tallies with the USB protocol. It has good data transfer ability and can meet the requirements of store testing system and the computer data transfer. It has successfully used in kinds of testing apparatus such as oil well P-t test gauge and electronic gauge, data transmission rate is validated to be up to 72Mbps.
引文
[1] 周立功 USB2.0 与 OTG 规范及开发指南.北京:北京航空航天大学出版社,2006年
    [2] 祖静,申湘南,张文栋.存储测试技术.兵工学报.1994,(2)
    [3] 张文栋.存储测试系统的设计理论及其应用.北京:高等教育出版社,2002.11
    [4] 萧世文 USB 2.0 硬件设计.北京:清华大学出版社,2002 年:8~10
    [5] 范延滨.微型计算机系统原理、接口与 EDA 设计技术.北京:北京邮电大学出版社,2006 年:389~392
    [6] 戴梅萼,史嘉权.微型计算机技术及应用.北京:清华大学出版社(第 3 版),2003年:434~459
    [7] Universal Serial Bus Specification, Revision 1.1,September 23, 1998.
    [8] 许永和.EZ-USB FX 系列单片机 USB 外围设备设计与应用.北京:北京航空航天大学出版社,2002 年
    [9] 李英伟,王成儒.USB 2.0 原理与工程开发.北京:国防工业出版社(第 2 版),2007 年
    [10] Jan Axelson.USB 大全,北京:中国电力出版社,2001 年:198~205
    [11] Cyress CY7C68013 EZ-USB? FX2TMUSB Microcontroller High-Speed USB Peripheral Controller, 2002
    [12] Cyress Introduction to the EZ-USB FX2? GPIF Enginer,2002
    [13] Cyress EZ-USB? FX2TM GPIF Primer,2003
    [14] 周云锋,单甘霖,王鑫.FX2的波形描述符设计及应用微计算机信息.2005年,第21卷.第2期:158~160
    [15] Cyress EZ-USB FX2 Manual Technical Reference,2001
    [16] Cyress Endpoint FIFO Architecture of EZ-USB FX1/FX2,2004
    [17] 高文伟,顾明剑,王模昌.基于USB2.0接口的高速实时图像数据采集系统,科学技术与工程.2007年,第7卷.第9期:2118~2121
    [18] 求是科技.8051 系列单片机 C 程序设计完全手册.北京:人民邮电出版社,2006年.
    [19] 赵广林.Protel 99 SE 电路设计与制版.北京:电子工业出版社,2005 年:252~253
    [20] 王宏,粟登馥,刘新国.基于CY7C68013的高速多路同步数据采集的实现.电子技术.2004年、第8期:48~50
    [21] 王宏,张天辉,孙书鹰,朱元昌.基于USB2.0的通用数据采集设备的研究与开发.测 控技术.2004年,第23卷.第7期:21~23
    [22] 杨杰.四通道石油井下测试仪的研究.中北大学学士学位论文.太原:中北大 学.2005
    [23] 徐爱钧,彭秀华.单片机高级语言 C51 Windows 环境编程与应用.北京:电子工业出版社,2001 年:46~49 122
    [24] 苏建坡,马海涛,唐玉国.基于USB2.0及GPIF的CMOS图像传感器视频实时采集系统.仪表技术与传感器.2006年、第9期:35~37
    [25] 焦斌亮,韩志学.基于EZ-USB FX2实现的高速数据采集系统.仪表技术与传感器.2005年、第7期:21~22
    [26] 刘希,杜清珍,周海涛.基于USB2.0的多道生物医学信号数据采集系统.陕西科技大学学报.2005年,第23卷.第5期:70~72
    [27] 刘炳文.精通 Visual Basic 6.0 中文版.北京:电子工业出版社.1999.7
    [28] 朱正平,宁百齐,袁洪,肖山竹.基于USB2.0接口芯片FX2的高速数据采集板的设计实现.微计算机应用.2006年,第27卷.第3期:328~331
    [29] 郭宏.基于USB2.0多通道同步数据采集系统设计.武汉科技大学学报( 自然科学版) .2006年,第29卷.第5期:496~499
    [30] David Simon,周瑜萍等.Visual C++ 6 编程宝典.北京:电子工业出版社,2005 年:584~587
    [31] 陈维兴,林小茶.C++面向对象程序设计教程(第 2 版),北京:清华大学出版社,2004 年:261~267
    [32] 周金萍, 徐丙立.Windows 系统编程[M].北京:人民邮电出版社,2002
    [33] 王建华, 张焕生等(译) .MFC Visual C++6.0 编程技术内幕[M].北京:机械工业出版社,2002
    [34] 武安河,邰铭,于洪涛.Windows 2000 /XP WDM 设备驱动程序开发[M].北京:电子工业出版社,2003.
    [35] 王鹏飞,卢艳娥,谈展中.基于DMA的USB设备驱动及其动态链接库开发遥测遥控.2006年,第27卷.第4期: 55~58
    [36] 吴鹏,陶正苏,胡宇贞.基于单片机USB接口的PC主机驱动程序和应用程序设计.电子器件.2005年,第28卷.第3期:612~614
    [37] 马伟.计算机 USB 系统原理及其主/从机设计.北京航空航天大学出版社,2004.1.
    [38] 边海龙,贾少华.USB2.0设备的设计与开发[M].北京:人民邮电出版社,2004. 199~215.
    [39] 胡晓军.USB接口开发技术[M].西安:电子科技大学出版社,2005.
    [40] 黄青锋, 刘强.基于USB和LabVIEW的数控切削过程数据采集和分析系统.2006,第24卷.第5期:21~24
    [41] 设计制造业自动化.2006 年,第 28 卷.第 1 期:46~49
    [42] 刘泽西, 程晶晶, 孔力.基于USB2.0接口的高速实时数据采集系统.测控技 术.2007年,第26卷.第2期:34~37
    [43] 黎育红,周建中,李利军,刘小平,张立地.基于USB接口的水文流速数据采集系统研究.仪器仪表学报.2006年,第27卷.第6期增刊:115-117
    [44] 吕扬,陈露晨,顾雪琳.USB 总线协议信息包分析.微型机与应用,2002.1
    [45] 郑君里,应启珩,杨为理.信号与系统.北京:高等教育出版社,2000.5
    [46] 童诗白,华成英.模拟电子技术基础.第 3 版,北京:高等教育出版社.2002
    [47] 张大朴.IEEE 1394 协议及接口设计[M].西安:西安电子科技大学出版社,2004
    [48] 王华,祖静,杨志刚.石油井下电子测压器的新发展.中国兵工学会第六届测试技术学术年会论文集.北京:兵器工业出版社.1992:374~353
    [49] 李远哲,荆敏,车登山,刘慧丰,龙泽.通用串行总线接口在车载数据采集系统中的应用.兵工学报.2006年,第27卷.第2期:367~370