基于USB2.0的数字电视传输流发送/截取系统研制
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
在研究数字电视制式、开发数字电视产品、监测数字电视系统运行、维修数字电视设备时,均需提供图像格式不同、扫描和编码参数不一的多种码流。因此,开发一款数字电视传输流发送和截取系统十分必要。
     USB接口总线以其方便、快捷等优势,得到了迅猛发展,其最新规范USB2.0更将传输速度提高到了480Mbps,使其成为PC通用标准接口之一。
     为此,本文在课题组已有PCI总线数字电视传输流发送和截取板卡研制工作基础上,开发了基于USB2.0的数字电视传输流发送和截取系统。
     在USB2.0计算机通用接口与数字电视ASI和SPI通用接口间转换,是本系统必须具备的功能。为此,本文首先详细学习和分析了USB2.0、ASI和SPI总线技术。
     在此基础上,为实现三者间的转换,完成了几个主要工作:USB2.0数据包的形成和处理;为解决接口间数据传输速率不匹配,采取了设置缓存器措施,研究了其控制策略;为集传输流输入/输出功能于同一板卡,较好地进行了电路的逻辑设计;解决了转换中码流的同步问题。
     组成系统的几个主要硬件功能模块为:
     1.系统主控模块:主要由CY7C68013芯片实现。CY7C68013是一款USB2.0接口芯片,利用其实现USB数据包的发送和处理,而且CY7C68013内嵌有增强型8051单片机内核,能很好的完成系统控制功能。
     2.时钟发生模块:主要由AD9833芯片实现。
     3.逻辑控制模块:由通用CPLD芯片EPM7128S实现。
     4.数据缓存模块:由大容量先入先出存储器IDT72V2111实现。
     为准确地传输码流数据,必须设计一整套有效传输数据的约定。这些约定以CY7C68013为核心实现,通过CY7C68013两个外部中断,对数据传输进行控制。在此约定之上,本文开发了系统软件。主要程序包括:CY7C68013芯片固件、AD9833芯片设置程序、CPLD程序和USB驱动程序等。
     开发过程中,反复进行了功能模块和系统的调试工作。本文构建了两套联调系统,一套是实时播放系统。另一套是硬盘存储系统。这两套联调系统,发现并协助解决了众多问题。目前,作为实验性能样机,系统已实现了数字电视传输流USB2.0输入/输出和不同接口间转换等主要功能,播放的码流可同步解码,连续显示,截取的大段码流无误。
A variety of streams with different image forms and scanning, coding parameter are needed in some researching fields, for example :researching digital TV(television) system, exploiting digital TV products, supervising the running of digital TV system and maintaining the digital TV devices.
     And the interface USB has the advantage of convenience and speed, it developed very quickly. The speed of USB2.0 is as high as 480Mbps. So USB2.0 becomes one of the PC general purpose interface bus.
     So this project perfects and develops the digital TV transfer stream creating, analysis, error_ inspection, outputting and getting system.
     The transform between USB2.0 and ASI, SPI is the main function of our system. So we analyze the interface of USB2.0, SPI and ASI carefully. Through this, we discuss the possible designs of the transfer code of digital TV outputting and getting.
     To finish the system, we should solve several tasks: dealing with the data packets of USB2.0; setting a cache, to solve the problem of the difference of transfer speed; to the in and out system into one card, we should solve the circuit logical well; we must get the synchronous clock.
     The main functional modules of the system are:
     1. The MCU module: CY7C68013 is one kind of chips which designed for the USB2.0 interface, it can treat with the data package of USB, and there are an 8051, it can control the system very well,
     2. The clock output module: we chose the chip of AD9833 to finish this function.
     3. Logic control module: we chose the chip of EPM7128S.
     4. Cache module: we chose the chip of IDT72V2111. It is a FIFO.
     To transfer the data correctly, we must have a functional transfer protocol. The chip of CY7C68013 is the core in the protocol. We use the two external interrupt of CY7C68013 to control the data transfer. And from this protocol we finish the software part, such as the firmware of the chip of CY7C68013, setting of the chip of AD9833, the programmer of CPLD, the driver designing of the USB interface.
     During the developing, we do a lot of tests to perfect the system. We have two system for test, one is Real-time playing system, the other is store and play system. Through these system, we find and sovle so many bugs. Now our test card can finsh
引文
[1] Compaq、Hewlett-Packard、Intel、Lucent、Microsoft、NEC、Philips,Revision.2.0,Universal Serial Bus Specification,April 27, 2000
    [2] ISO/IEC 13818-2. Generic Coding of Moving Picture and Associated Audio: Video. 1994
    [3] Stuart Allman,Implementing a Simple USB Interface for an Embedded Processor,Cypress Semiconductor,2000
    [4] 边海龙,USB 2.0 设备的设计与开发,北京,人民邮电出版社,2004
    [5] 萧世文,USB 2.0 硬件设计,北京,清华大学出版社,2002
    [6] 聂东,张红兵,USB2.0 规范与 EZ-USBFX2 高速外设控制器,新器件应用,2001,42(4):37~41
    [7] 王奕,王凯,基于 USB2.0 的数据采集系统的设计与实现,通信技术与设备,2002,28(12):15~19
    [8] 徐永和,USB外围设备设计与应用,北京,北京航空航天大学出版社,2003
    [9] 陈粤初,单片机应用系统设计与实践,北京,北京航空航天大学出版社,1992
    [10] 徐惠民, 安德宁,数字逻辑设计与 VHDL 描述,北京,机械工业出版社,2002
    [11] 杨强,李堂秋,Win 9X 虚拟设备驱动程序编程指南,北京,清华大学出版社,1999
    [12] Chris Cant,Windows WDM 设备驱动程序开发指南(孙义, 马莉波, 国雪飞等译),北京,机械工业出版社,2000
    [13]马忠梅,籍顺心,张凯等,单片机 C 语言应用程序设计,北京,北京航空航天大学出版社,2001
    [14] 谭浩强, C 程序设计, 北京: 清华大学出版社,1996
    [15] Robert K. Dueck,CPLD 应用与 VHDL 编程(张春等译),北京,清华大学出版社,2005
    [16] Brain M,Lovette L, MFC 开发人员指南(译星翻译组译),北京,机械工业出版社,1999,556~580
    [17] Semiconduct C. EZ-USB FX2 technical reference manual, http://www.cypress.com

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

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

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