GPIF and Programmable Full Flag problem

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

   

screenshot 1

   

Karol

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

   

screenshot 1

   

Karol

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Screenshot 2

   

Karol 

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Zip will be faster..

   

Karol 

0 Likes
Anonymous
Not applicable

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

0 Likes