Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > GPIF and Programmable Full Flag problem

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



GPIF and Programmable Full Flag problem
Moderator:
RSKV

Post Reply
Follow this topic



GPIF and Programmable Full Flag problem

szczepkar posted on 12 Jan 2012 11:44 AM PST
Member
4 Forum Posts

Hi,

I've problem with using PF Flag with GPIF FlowState.

System overview:

 - GPIF works as master

 - endpoint EP6 IN, bulk, 2x1024B

 - externally GPIF is connected to FPGA (8-bit, 48MHz from Cypress)

Settings in C51 code:

 - configure GPIF to use PF flag from EP6 fifo:   EP6GPIFFLGSEL = 0x00;

- setting treshold for PF Flag:

EP6FIFOPFH = 0xC1; // 0b11000011
SYNCDELAY;
// EP6 FIFO Programmable Level Flag - low byte of Treshold byte count
 EP6FIFOPFL = 0xFF; // Treshold 0x1FE = 510 bytes
SYNCDELAY;

- triggering GPIF transfer for 1024B

   GPIFTCB1 = 0x04; SYNCDELAY;
  GPIFTCB0 = 0x00; SYNCDELAY;

Setup_FLOWSTATE(GPIF_FIFO_RD); SYNCDELAY;
GPIFTRIG = GPIFTRIGRD | GPIF_EP6; // launch GPIF FIFO READ Transaction to EP6 FIFO
SYNCDELAY;

while( !( GPIFTRIG & 0x80 ) ) // poll GPIFTRIG.7 GPIF Done bit
  {;}
 

 

GPIF FIFO Read waveform (see screenshots):

- DecisionPoint use TCXpire (RDY.5 is enabled for that)

- I use FlowState in state2 to continously read data

- FlowState checks EMPTY0 Flag (line from FPGA is constant '0') and FIFOFlag (should be PF in my example)

 

Problem is, that GPIF transfer seen an Logic Analyzer doesn't  response on FIFOFlag  as I expected.
 

It's no matter what is the treshold for Programmable Flag (I try 1023, 1000, 512, 510).

FlowState should change states of CTL lines (RD and CS) to 'high' after specified by treshold no of byte transfered to EP6 FIFO, but I see that CS and RD lines are 'low' until TCXpire finishes GPIF transfer (1024 bytes in my example)


Questions:

Why FlowState doesn't response on FIFOFlag ( Programmable Flag ) in FlowState? 

Is this related to "passing through IDLE state"?

Have anybody used Programmable Flag in GPIF?


 

I'll be gratefull for help

Best regards

Karol




Re: GPIF and Programmable Full Flag problem

szczepkar posted on 12 Jan 2012 11:52 AM PST
Member
4 Forum Posts

Sorry, I can't attach more than 1 file at time..

screenshot 1

Karol



Re: GPIF and Programmable Full Flag problem

szczepkar posted on 12 Jan 2012 11:52 AM PST
Member
4 Forum Posts

Screenshot 2

Karol 



Re: GPIF and Programmable Full Flag problem

szczepkar posted on 12 Jan 2012 11:54 AM PST
Member
4 Forum Posts

Zip will be faster..

Karol 



Re: GPIF and Programmable Full Flag problem

aasi posted on 13 Jan 2012 09:38 PM PST
Cypress Employee
1090 Forum Posts

Hi Karol,

Please create a tech support case (MyAcoount ->MyCases) and upload your firmware and GPIF waveform file to the case so that one of our engineers can take a look at it.

Regards,

Anand






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