Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How to add the partial flag in synchronous Slave FIFO mode?

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



How to add the partial flag in synchronous Slave FIFO mode?
Moderator:
RSKV

Post Reply
Follow this topic



How to add the partial flag in synchronous Slave FIFO mode?

chinali posted on 03 May 2012 7:05 PM PST
Member
10 Forum Posts

 Hi 

I read the datasheet of AN65974.pdf. In the SynchronousSlave FIFO Write Sequence, there are 3cycle latency from SLWR#to FLAG, If i must use the partial flag in order to lose no data? How can I modify the code with GPIF designer?

thanks!




Re: How to add the partial flag in synchronous Slave FIFO mode?

aasi posted on 07 May 2012 11:36 PM PST
Cypress Employee
1073 Forum Posts

Hi,

You must set the watermark when you create and configure the socket. So setting of the watermark will be done through the FX3 code rather than GPIF II Designer.

Regards,

Anand



Re: How to add the partial flag in synchronous Slave FIFO mode?

chinali posted on 09 May 2012 06:34 AM PST
Member
10 Forum Posts

 Thanks for your help!  I modify the partial flag register and ues the API function, the partial flag is working well now! But the 32bit mode has some difference with the 16bit mode.When i set different value of water mark, the latency of partial flag is different.



Re: How to add the partial flag in synchronous Slave FIFO mode?

YI posted on 19 Jun 2012 12:30 PM PST
Senior Member
13 Forum Posts

Hi Assi,

About how to se the partial flag in SlaveFIFOSync application, I wonder if this API interface can do the job:

CyU3PGpifSocketConfigure(threadIndex, socketnum, watermark, flagonData, burst)? Like's say I want to set PTOU thread as partial full with watermark = 3, transfer 16 bytes, I will call

CyU3PGpifSocketConfigure(0x00, CY_FX_PRODUCER_PPORT_SOCKET, 0x03, true, 8); 

Is it right?   Thank you!



Re: How to add the partial flag in synchronous Slave FIFO mode?

MadMax_805 posted on 19 Jun 2012 02:03 PM PST
Member
10 Forum Posts

 This is what mine looks like and it's working well for me 

apiRetStatus = CyU3PGpifSocketConfigure(0, CY_FX_PRODUCER_PPORT_SOCKET, 4, CyFalse, 0);

I'm using the 32-bit GPIF configuration not 16 which is why I BELIEVE the latency is 4 and not 3 haven't heard anything back from Cypress on this.



Re: How to add the partial flag in synchronous Slave FIFO mode?

Chris R. posted on 20 Jun 2012 10:12 PM PST
Top Contributor
135 Forum Posts

The last parameter schould be zero if you want to update the flag after each word transferred. I solved the lantency problem by slowing down the data transfer if the partial flag is set (watermark 4) and wait after each word 4 cycles to monitor the normal full flag. It works perfectly.






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.