how to use flagd in slave fifo mode, slcs has to be active? chip CY7C68013A

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        Hi all, I'd like to use flaga~d as empty/full flag in slave FIFO mode, i.e, external FPGA acts as master. according to data sheet, slcs# has to be set low to select 68013, does this mean the flagd is impossible to be used as empty/full flag? any suggestion on this? Thanks   
0 Likes
7 Replies
Anonymous
Not applicable

 Hi,

   

 

   

No it is not that way. SLCS# and FLAGD are two alternative functions of PORTA.7 pin. PA.7 can either act as GPIO, or SLCS# or FLAGD, which can be configured using PORTACFG register.

   

PA.7 acts as FLAGD, if PORTACFG.7 = 1

   

PA.7 acts as SLCS# if PORTACFG.6 =1 and IFCONFIG1:0 =11

   

if both PORTACFG.7 and PORTCFG.6 = 0, then PA.7 acts as GPIO.

   

 

   

So, for using the PA.7 as FLAGD, keep PORTACFG.7 = 1; PORTACFG.6 = 0. 

   

 

   

Regrds,

   

Gayathri

0 Likes
Anonymous
Not applicable

Hi Gayathri,

   

thanks a lot for your quick reply.

   

Yes, I see what you said.

   

but according to the data sheet, if SLCS# is not asserted, the chip is even not selected, and SLRD#, SLWR#, SLOE# etc is invalid.

   

a brief description of my application,

   

I want to use flaga~d as the fixed full/empty flag for endpoint 2,4,6,8, and master could monitor these flags to arbit when should send/receive data to/from the corresponding endpoint. but according to the data info, it seems I have no way to access all the 4 flags while keep 68013 selected. is this the case?

   

is there any other option for my implementation?

   

Thanks,

   

Nick.

0 Likes
Anonymous
Not applicable

Hi Nick,    

 

   

    

          

   

You need to assert SLCS# only when PA.7 is configured to function as SLCS#. In all other cases, you can ignore SLCS# and you can use that pin as FLAG D. FLAG D takes the priority over SLCS# even when both PORTACFG.6 and PORTACFG.7 are configured.     

 

   

You can refer to the following application note that shows how an FPGA can perform read and write operations on the Slave FIFO interface of FX2LP.    

 

   

http://www.cypress.com/?rID=43046    

 

   

Please let me know if you have any questions related to this application note.    

 

   

    

          

   

Thanks,    

 

   

 

   

Sai Krishna.    

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

So ,in short, PA.7 does not act as a chip select pin (SLCS#) when PORTACFG.7 = 1. 

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

Many thanks to Gayathri:)

   

 

   

so when PA.7 doesn't act as a chip select(slcs#), slrd#, slwr#, sloe# could also work without any issue? i.e, the chip is selected in this case?

   

 

   

Best regards,

   

Nick

0 Likes
Anonymous
Not applicable

it seems the link application gives the answer.

   

 

   

Thanks again

   

Nick

0 Likes
Anonymous
Not applicable

 Yep... your understanding is correct. So when PA.7 does not act as SLC#, other slave signals like SLRD#, SLWR# etc will work fine without any issues. 

   

 

   

Regards,

   

Gayathri

0 Likes