Data transfer from firmware to slave fifo without host in FX2LP

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

cross mob
Anonymous
Not applicable

Hello,
Is it possible to write data to Slave fifo using Endpoints from firmware of fx2lp directly without Host? If so please do post some sample code.

   

Or, is there anway through which we can write from 8051 interface to FIFO without host and USB interface?

Thanks and regards,
Paramesh

0 Likes
6 Replies
Anonymous
Not applicable

 You'll be able to write data to slave FIFO in manual mode from the 8051. http://www.cypress.com/?rID=45850 explains it in detail and has sample code along with it.
Regards,

   

Anand

0 Likes
Anonymous
Not applicable
        Could you also please elaborate on your application?   
0 Likes
Anonymous
Not applicable

 Hi,

   

Are you saying you want an OUT endpoint, which does not get data from host. You simply write data on the endpoint and arm it to the Slave FIFO domain, so that master can read it?

   

As Nikhil asked, please share your application.

   

-Garima 

0 Likes
Anonymous
Not applicable
        Hi, As Garima said, if you want to source the data from FX2LP to the Slave FIFO, you can do so as below. Keep the endpoint (EP2 OUT in this case) as invalid endpoint, but configured properly with respect to buffering, direction and Auto/ Manual mode. In this example, I have chosen EP2 to be an OUT endpoint, quad buffered, of 512 bytes each, manual mode. (EP2CFG = 0xA0; EP2CFG &= 0x7F; EP2FIFOCFG = 0x00; ) FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x02; SYNCDELAY; EP2FIFOBUF[0] = 0xAA; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; // EP2BCH = 0x02; SYNCDELAY; // EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; FIFORESET = 0x00; Regards, Gayathri   
0 Likes
Anonymous
Not applicable
        Sorry about the formatting. FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x02; SYNCDELAY; EP2FIFOBUF[0] = 0xAA; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; EP2BCH = 0x02; SYNCDELAY; EP2BCL = 0x00; SYNCDELAY; FIFORESET = 0x00;   
0 Likes
Anonymous
Not applicable
        I do not know I am not able to make it in a good format. 😞   
0 Likes