Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > how to reset the fifo pointer

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



how to reset the fifo pointer
Moderator:
RSKV

Post Reply
Follow this topic



how to reset the fifo pointer

西门吹牛奶 posted on 13 May 2012 1:20 AM PST
Top Contributor
34 Forum Posts

Hi,all,

the first word of the first time transfer is uncertain.

I set the EP2 as the auto in mode. I set the all FIFOPINPOLARs  as  active high, and the FIFOPINPOLARs pins are pulldown with a resistor. I carefully checked the source code that generates SLWR signal. I'm sure it doesn't generate extra active SLWR signal.

Even I  reset the fifo at the beginning of  transfer, the first word is till uncertain. I don't know why it is .

So I Think if I can reset the fifo pointer the problem might be solved. So dose anybody knows how to reset the fifo pointer?




Re: how to reset the fifo pointer

西门吹牛奶 posted on 13 May 2012 01:41 AM PST
Top Contributor
34 Forum Posts

I'm sre write 0x82 Tto FIFORESET can't reset the pointer of EP2FIFO.

I have a test: I write 16 data into the auto in  FIFO2, then i  redownload the firmware so that the TD_init can reset the FIFO.

However from then on, the first 16 data in each  packet are the 16 data in last packet.

so i'm sure that the FIFORESET can't reset the FIFO pointer



Re: how to reset the fifo pointer

PRJI posted on 15 May 2012 10:22 AM PST
Cypress Employee
333 Forum Posts

 <textarea style="width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0"></textarea>



Re: how to reset the fifo pointer

PRJI posted on 15 May 2012 10:29 AM PST
Cypress Employee
333 Forum Posts

 

 <textarea style="width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0"></textarea>



Re: how to reset the fifo pointer

西门吹牛奶 posted on 18 May 2012 03:25 AM PST
Top Contributor
34 Forum Posts
why i can't see what you replied? I really want to know how to reset the fifo pointer. or it is unconvenient to use. Best regards.

Re: how to reset the fifo pointer

PRJI posted on 23 May 2012 10:32 PM PST
Cypress Employee
333 Forum Posts

 Hi, 

      You can refer associated project available with application note AN61345 http://www.cypress.com/?rID=43046, in this project EP6 is the IN endpoint. Instead of FIFORESET = 0x82; try FIFORESET = 0x02;

Thanks

Prajith






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20