摘要
USB是一种新的接口技术。它具有低廉的价格、高的智能化和较高的传输速率。使用USB和计算机通信是当前的一个热点,而在DSP、MCU与PC之间使用USB通信更是受到关注。TI公司推出的TMS320VC5509A DSP芯片正赶上这个机会,它内嵌USB接口模块,可以实现DSP与PC通信的无缝连接。
在本论文中对USB接口开发和扩频通信模块的开发分别进行了论述。USB接口开发包括运行在DSP中的固件程序开发和运行在PC机上的驱动程序及调试应用程序开发。固件程序开发使用了TI提供的在片支持库(CSL),驱动程序开发则使用DriverStudio套件。驱动程序中对WDM驱动程序模式也进行了详细的论述。扩频通信模块开发主要是使用VHDL语言进行接口逻辑的开发,接口逻辑最终由FPGA实现。
USB is a new technology of interface. As a result of low cost, high intelligence and high data transmission rate, USB is focused by many engineers who work on interface to PCs. USB is more preferred in the communication between DSP, MCU and PCs. TMS320VC5509A, a DSP chip which is designed by TI gets the chance. It contains a USB module which can communicate directly between DSP and PC without any other interfacing devices.
The paper is mainly about the development of USB and DSSS (Direct Sequence Spread Spectrum) module. In the development of USB, one should write the firmware which runs on the DSP and the driver which runs on the PC. A debugging program should also be provided in order to test the driver. TI's CSL (chip support library) is a good tool in developing firmware, and Driver Studio, a driver developing suite, can simplify the complicated driver development. The WDM (Windows Driver Model) is described in details in the paper, too. VHDL is used for the interface logic design of DSSS module, and the program which is compiled by MAX+PLUSII is downloaded into the FPGA at last.
引文
[1] 王燕.水下目标被动定位仿真研究.哈尔滨工程大学硕士学位论文,2001:9-12页
[2] USB Specification Revision 2.0. http://www.usb.org/,2000
[3] 李肇庆,廖峰,刘建存.USB接口技术.国防工业出版社,2004:42-43页
[4] TI. TMS320VC5509A Fixed-Point Digital Signal Processor Data Manual. 2005: 7-9P
[5] USB Specification Revision 1.1. http://www.usb.org/, 1998
[6] 周立功等.PDIUSBD12 USB固件编程与驱动开发.北京航空航天大学出版社,2003:10-15页
[7] TI. TMS320VC5507/5509 DSP Universal Serial Bus (USB) Module Reference Guide. 2004: 10-18P
[8] TI. TMS320C55x DSP CPU Reference Guide. 2001: 6-7P
[9] TI. TMS320C55x DSP Peripherals Reference Guide. 2001: 11-14P
[10] TI. TMS320C55x Chip Support Library API User's Guide. 2002
[11] 彭启琮,管庆.DSP集成开发环境——CCS及DSP/BIOS的原理与应用.电子工业出版社,2005:147-150页
[12] 胡晓军,张爱成.USB接口开发技术.西安电子科技大学出版社,2005:22-27页:43-47页
[13] TI. TMS320C55x CSL USB Programmer's Reference Guide. 2001
[14] TI. TMS320C5000 DSP/BIOS Application Programming Interface (API) Reference Guide. 2002: 1-3P
[15] 尹勇,王洪成.单片机开发环境μVision2使用指南及USB固件编程与调试.北京航空航天大学出版社,2004:123-129页
[16] TI. TMS320C55x Optimizing C/C++ Compiler User's Guide. 2001
[17] TI. Code Composer Studio Getting Started Guide. 2001
[18] 许永和.USB外围设备设计与应用.中国电力出版社,2002:10-12页
[19] JanAxelson.USB大全.中国电力出版社,2001:55-57页
[20] DonAnderson,USB系统体系.中国电力出版社,2001:133-139页
[21] 张弘.USB接口设计.西安电子科技大学出版社,2002:35-41页
[22] 肖踞雄等.USB技术及应用设计.清华大学出版社,2003:23-27页
[23] 萧世文.USB 2.0硬件设计.清华大学出版社,第二版,2006:12-19页
[24] Walter Oney. Programming the Microsoft Windows Driver Model. Microsoft Press. 1999: 2-16P
[25] Art Baker, Jerry Lozano. The Windows 2000 Device Driver Book. Prentice Hall PTR, 2000: 4-24P
[26] 孙守阁,徐勇.Windows设备驱动程序技术内幕.清华大学出版社,2000
[27] Chris Cant著,孙义等译.WindowsWDM设备驱动程序开发指南.机械工业出版社,2000:225-231页
[28] Walter Oney. Programming the Microsoft Windows Driver Model, Second Edition. Microsoft Press, 2003: 6-18P
[29] 武安河.Windows 2000/XP WDM设备驱动程序开发.电子工业出版社,2005:220-235页
[30] 张惠娟,周利华,崔鸿鸣.Windows环境下的设备驱动程序设计.西安电子科技大学出版社,2002:32-35页
[31] Jungo Ltd. WinDriver v6.02 User's Guide. 2003: 27-43P
[32] Compuware Inc. DriverWorks class libraray reference. 2002
[33] Microsoft. MSDN Library Visual Studio 6.0 Referece. 2000
[34] Microsoft. Windows Driver Development Kit Help information: Device Installation. 2001
[35] 殷冬梅.无线电水声浮标阵多目标跟踪定位系统.哈尔滨工程大学博士学位论文,2003:62-69页
[36] Intersil Inc. HFA3524 datasheet. 2000: 2-18P
[37] Intersil Inc. HFA3824A datasheet. 1998: 3-21P
[38] NovAtel Inc. SUPERSTAR Ⅱ Firmware Reference Manual Rev5.2005
[39] Altera Corporation. FLEX 10KE Embedded Programmable Logic Device Datasheet. 2003: 13-24P
[40] 杨刚,龙海燕.现代电子技术——VHDL与数字系统设计.电子工业出版 社,2004:55-69页
[41] 侯伯亨,顾信.VHDL硬件描述语言与数字逻辑电路设计.西安电子科技大学出版社,2000:77-91页
[42] 王小军.VHDL简明教程.清华大学出版社,1997:37-39页
[43] 申敏,邓矣兵,郑建宏,刘栋.DSP原理及其在移动通信中的应用.人民邮电出版社,2001:210-215页
[44] Bjarne Stroustrup. The C++ Programming Language, Special Edition. Addison-Wesley, 1997: 561-573P
[45] 熊歆斌.Visual C++程序设计培训教程.清华大学出版社,2004:233-249页