You are here

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

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

Summary: 5 Replies, Latest post by Chris R. on 20 Jun 2012 12:12 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
chinali's picture
10 posts


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?


aasi's picture
Cypress Employee
1166 posts


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.



chinali's picture
10 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.

YI's picture
15 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!

MadMax_805's picture
16 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.

Chris R.'s picture
143 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.

Log in to post new comments.