copy fifo buffer

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

cross mob
Anonymous
Not applicable

Hi

   

i have a problem

   

I'm trying to implement a loop back similar to exemple bulkscr but i want not to use the autopointer for copy endpoint out to enpoint in (for read my write). I would like access to ram by make the copy directly.

   

I tried to use the command

   

 for (i=0;i<512;i++)
    EP6FIFOBUF =EP2FIFOBUF;    // EP2 OUT and EP6 input

   

but doesn't work

   

is the assigment correct for fifo ram buffer?

   

 

   

thanks a lot

0 Likes
3 Replies
Anonymous
Not applicable

 Hi Aasi

   

Excuseme

   

I put my questtion in another way.....

   

If i send data to EP6 output endpoint from host, if i call by firmware EP6FIFOBUF do i have in this array the data sended by host?

   

please help me

   

 

   

Thanks

0 Likes
Anonymous
Not applicable

 Hi,

   

       Yes, you can access the fifo contents by firmware but FIFOshould be configured for Manual mode. For more details on manual and automode please look into section 9.3.4 Auto-In / Auto-Out Modes of TRM-page 111. You can configure FIFO modes using EPxFIFOCFG register.

0 Likes
Anonymous
Not applicable

Hi PRJI

   

Excuseme, I'm in holiday i could not answer

   

Thanks for your answer, i will try your tip next week. I'll keep you informed.

   

I leaved EPXFIFOCFG by default so i will try to change it.

   

Mybe the problem can be also that i leave enabled the autopointer.....

   

I will Try

0 Likes