Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Slave FIFO Asynchronous Read , read times and empty flag?

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



Slave FIFO Asynchronous Read , read times and empty flag?
Moderator:
RSKV

Post Reply
Follow this topic



Slave FIFO Asynchronous Read , read times and empty flag?

xiaoliuliu posted on 12 May 2013 8:51 AM PST
Top Contributor
25 Forum Posts

 68013A(slave_ Asynchronous)+blackfin(bf518_DSP_master)

I configure the 68013A into slave mode.EP2 is out endpoint. EP2 is configured into 2*512, 8bits, auto. And I configure tha  the EP2 have no data which the FLAGC is low level and there is some data FLAGC will become high level.Now I have two questions.

1.If send the data(0x17, 0x89,0xcf)  to the EP2 in order.  I know that

EP2FIFOBUF[0]=0x17, EP2FIFOBUF[0]=0x89, EP2FIFOBUF[0]=0xcf. If DSP is sucessed in reading EP2 fifo three times ,then  EP2FIFOBUF[0/1/2]=0x00 or  EP2FIFOBUFER have no changed EP2FIFOBUF[0]=0x17, EP2FIFOBUF[0]=0x89, EP2FIFOBUF[0]=0xcf???  And is there any register about that privious EP2FIFOBUF is cleared if read it?

2.I have question about when the FLAGC pin become low level?

I have sent three data(0x17, 0x89,0xcf), when the DSP read EP2 fifo 3 times the FLAGC become low??? Or DSP read EP2 fifo 512 times the FLAGC become low(EP2 is configured into 2*512) ???




Re: Slave FIFO Asynchronous Read , read times and empty flag?

aasi posted on 12 May 2013 11:23 AM PST
Cypress Employee
1090 Forum Posts
Have you put the endpoint into valid configuration (i.e. configure all the 4 endpoints?) The internal logic relies on this for the successful operation of the flags... Regards, Anand

Re: Slave FIFO Asynchronous Read , read times and empty flag?

xiaoliuliu posted on 12 May 2013 06:17 PM PST
Top Contributor
25 Forum Posts

 Yes, I have put endpoints into valid configuration.

 SYNCDELAY;                    // see TRM section 15.14

  EP2CFG = 0xA2;   //1010_0010 // BUF[1:0]=10 for 2x buffering

  // EP6 512 BULK IN 2x

  SYNCDELAY;                    // 

  EP6CFG = 0xE2;   //1110_0010 // BUF[1:0]=10 for 2x buffering

  // EP4 and EP8 are not used in this implementation...

  SYNCDELAY;                    // 

  EP4CFG = 0x20;  //0010_0000   // clear valid bit

  SYNCDELAY;                    // 

  EP8CFG = 0x60; //0110_0000   // clear valid bit

The picture of attachment is that when I download the code into the 68013a

 



Re: Slave FIFO Asynchronous Read , read times and empty flag?

xiaoliuliu posted on 14 May 2013 12:43 AM PST
Top Contributor
25 Forum Posts

 Anyone can help me?



Re: Slave FIFO Asynchronous Read , read times and empty flag?

PRJI posted on 15 May 2013 12:14 AM PST
Cypress Employee
333 Forum Posts

 Hi,

Please paste Td_poll and Td_init part of your code.

-PRJI

 






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