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:28 PM PST
Cypress Employee
1090 Forum Posts

 Are you implementing flow control on the slave FIFO interface? i.e. not sending data to FX2LP when no buffer is available.

You've mentioned the driver as ezusb.sys? It is not a DMB-T class driver, please clarify how your end application works.



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

mozhi posted on 04 Nov 2011 06:04 AM PST
Member
4 Forum Posts

First of all ,thank you aasi.

I use the upper MFC application, which has been a read  thread 。in a loop, reading data...

ezusb.sys as a pc-driver.

Schematic I am using Gated MPEG_CLK.,Already mentioned above(referenced http://www.cypress.com/?rID=39714)

now, my question is :

when i receive the data and i found a lot of 0x00,0xff.

i looked at the right TS stream, there are 0xff  but not the frequency of my high.

I suspect the data is not readythe top has begun to read the data, leading to my question.

i tried to modigy PKTED,but it doesnot work.

Please give me some suggestions, thanks very much!!!

 



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

mozhi posted on 04 Nov 2011 06:32 AM PST
Member
4 Forum Posts

sorry,

 PKTED----->PKTEND

 



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

aasi posted on 05 Nov 2011 08:52 PM PST
Cypress Employee
1090 Forum Posts

 Have you verified if the timing requirements of FX2LP have been met on the slave FIFO interface?

Regards.

Anand






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