Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

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



Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.
Moderator:
RSKV

Post Reply
Follow this topic



Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

achy posted on 11 Jun 2012 1:16 AM PST
Top Contributor
31 Forum Posts

These days I'm using the GPIF to read data from the external.
I set the GPIFTCB3:0 to be 8K, at the DP I use the TCxpire=1 as the condition that shift to the idle state. And at the DP the GPIF re-execute the control task---sample the databus.
To avoid the uncertain initial value, I set the EPxGPIFPFSTOP to "0". I deliberately to avoid the GPIF Flag Stop.

However, the GPIF only read 2K word(4KB) and refuse to read more(unless retrigger the GPIF), and the GPIFTRIG's bit 7 is 1.

In the FX2 TechRefManual.pdf's page 10-42 line 9, it says "if the flag is asserted, the GPIF pause until the over/underflow threat is removed, then it automatially resumes" 

But the fact is "it stops never resume", so can somebodyu tell me why it could be so?




Re: Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

achy posted on 11 Jun 2012 04:22 AM PST
Top Contributor
31 Forum Posts

I did the forward experiment today. I found that at a DP if the shift condition is TCXpire==1 the GPIF would not stop even when the FIFO is full of data.

i did the experiment as below:

when the GPIF is at the DP, sampling data from an external FIFO to internal FIFO, I congigure the GPIF output a low level, and at any other time it output a high level. When I set the GPIFTCB3:0=16*256, I fopund the low level duration is about 80us. and wheen the GPIFTCB3:0=8*256, the low level duration is about 40us.

And the calculation time for 8*256 IFCLK is 8*256*1000/48/1000=42.6666us.so I think the GPIF would't stop when the internal FIFO is full.

so the words in In the FX2 TechRefManual.pdf's page 10-42 line 9, who says "if the flag is asserted, the GPIF pause until the over/underflow threat is removed, then it automatially resumes"       It is a mistake,isn't it?



Re: Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

achy posted on 12 Jun 2012 11:32 PM PST
Top Contributor
31 Forum Posts

so how can it pause and resume when A fifo flag asserted????????????????????



Re: Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

Gayathri posted on 13 Jun 2012 05:23 AM PST
Cypress Employee
428 Forum Posts

 Hi,

 

As the TRM says it is possible to transfer more than 4k bytes by triggering GPIF once. It will pause if the IN enpoint is full, and then resume as and when it becomes free. Please refer http://www.cypress.com/?rID=45850 (you can refer Master firmware for Auto mode example in the app note). You need to change the GPIFTC value in the firmware and make it trigger only once by changing the condition for that. I tested it at my end and it works fine.

 

Regards,

Gayathri



Re: Once the FIFO full the GPIF stop but doesn't resume, and the GPIFTRIG has DONE.

achy posted on 16 Jun 2012 12:17 AM PST
Top Contributor
31 Forum Posts

Hello,Gayathri,

Thank you . I'll try it.

Regards,






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