how to reset the fifo pointer

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

cross mob
Anonymous
Not applicable

Hi,all,

   

the first word of the first time transfer is uncertain.

   

I set the EP2 as the auto in mode. I set the all FIFOPINPOLARs  as  active high, and the FIFOPINPOLARs pins are pulldown with a resistor. I carefully checked the source code that generates SLWR signal. I'm sure it doesn't generate extra active SLWR signal.

   

Even I  reset the fifo at the beginning of  transfer, the first word is till uncertain. I don't know why it is .

   

So I Think if I can reset the fifo pointer the problem might be solved. So dose anybody knows how to reset the fifo pointer?

0 Likes
5 Replies
Anonymous
Not applicable

I'm sre write 0x82 Tto FIFORESET can't reset the pointer of EP2FIFO.

   

I have a test: I write 16 data into the auto in  FIFO2, then i  redownload the firmware so that the TD_init can reset the FIFO.

   

However from then on, the first 16 data in each  packet are the 16 data in last packet.

   

so i'm sure that the FIFORESET can't reset the FIFO pointer

0 Likes
Anonymous
Not applicable

 <textarea style="width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0"></textarea>

0 Likes
Anonymous
Not applicable

 <textarea style="width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0"></textarea>

0 Likes
Anonymous
Not applicable
        why i can't see what you replied? I really want to know how to reset the fifo pointer. or it is unconvenient to use. Best regards.   
0 Likes
Anonymous
Not applicable

 Hi, 

   

      You can refer associated project available with application note AN61345 http://www.cypress.com/?rID=43046, in this project EP6 is the IN endpoint. Instead of FIFORESET = 0x82; try FIFORESET = 0x02;

   

Thanks

   

Prajith

0 Likes