Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > 8-Bit Parallel MPEG2-TS transfer at slave fifo autoin mode lose package

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



8-Bit Parallel MPEG2-TS transfer at slave fifo autoin mode lose package
Moderator:
RSKV

Post Reply
Follow this topic



8-Bit Parallel MPEG2-TS transfer at slave fifo autoin mode lose package

mozhi posted on 01 Nov 2011 5:52 AM PST
Member
4 Forum Posts

 Hi,all

MPEG2-TS------>CY7c68013------>PC 

recently,i am doing a job which mpeg2-Ts stream Transferred to a computer.i used cy7c68013a-56 chip,endpoint2 bulk in 4xbuffer.Frimware,i reference to http://www.cypress.com/?rID=39714

my question is:

When I received the usb pass over the data and stores it into a TS file, i found about 1/3 data lost.

Driver:          ezusb.sys

frimware:

CPUCS = 0x10; // CLKSPD[1:0]=10, for 48 MHz operation

SYNCDELAY;

REVCTL=0x03;

IFCONFIG = 0xCB; // IFCLK Source internal (i.e.) Gated MPEG_CLK,  MPEG_CLK is connected to SLWR

// FX2LP in SLAVE FIFO Mode

SYNCDELAY;

 

FIFORESET = 0x80; // activate NAK-ALL to avoid race conditions

SYNCDELAY; // see TRM section 15.14

 

FIFORESET = 0x82; // reset, FIFO 2

SYNCDELAY; //

 

FIFORESET = 0x84; // reset, FIFO 4

SYNCDELAY; //

 

FIFORESET = 0x86; // reset, FIFO 6

SYNCDELAY; //

 

FIFORESET = 0x88; // reset, FIFO 8

SYNCDELAY; //

 

FIFORESET = 0x00; // deactivate NAK-ALL

SYNCDELAY;

 

PINFLAGSAB = 0x00; //

SYNCDELAY;

 

PINFLAGSCD = 0x00; //

SYNCDELAY;

 

PORTACFG = 0x00; //

SYNCDELAY;

 

FIFOPINPOLAR = 0x04; // SLWR is configured as active HIGH : Can be changed to 0x00 for SLWR to be active Low

SYNCDELAY;

 

EP2CFG = 0xE0;   // VALID - 1,DIR - IN,Type- Bulk, Size - 512 Bytes, Quad Buffered 

SYNCDELAY;

 

EP4CFG = 0x00; // clear valid bit

SYNCDELAY; //

 

EP6CFG = 0x00; // clear valid bit

SYNCDELAY; //

 

EP8CFG = 0x00; // clear valid bit

SYNCDELAY;

 

EP2FIFOCFG = 0x08; // AUTO IN, NO Zero Length Packets, 8- bit Wide 

SYNCDELAY;

 

EP2AUTOINLENH = 0x02; // Auto-commit 512-byte packets

SYNCDELAY;

 

EP2AUTOINLENL = 0x00;

SYNCDELAY;

OEA |= 0x30;

IOA &= ~20;

 


I beg your reply...... 

 




Re: 8-Bit Parallel MPEG2-TS transfer at slave fifo autoin mode lose package

aasi posted on 03 Nov 2011 08:29 PM PST
Cypress Employee
1090 Forum Posts

 Please look at http://www.cypress.com/?app=forum&id=167&rID=55586






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20