Is USB device can ask FX2LP18 to send DATA to HOST PC ?

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

cross mob
JeBo_4132831
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

We developted FPGA based emulator. We will use probably a FX2LP18 to configure the FPGA (GPIF mode) and after configuration done, in SlaveFIFO mode to communicate with HOST PC (and exchange DATA between FPGA and PC).

Normally, the HOST PC is the master, it asks for getting DATA in the FPGA trough the FX2.

Is there any possibility to make the FPGA "master". I.e is the FPGA can inform by itself the FX2 that is has DATA to send ? (using the WAKEUP for instance or any FX2 PIN to manage an interrupt).

Regards

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Yes, the FX2LP configured as a FIFO Slave can indicate the master (FPGA in your case) that it has data to send using the FIFO Status Flags. 

For an example please refer to the application note AN61345 Designing with EZ-USB® FX2LP™ Slave FIFO Interface​ where FLAG A is used to indicate the empty status of EP2 OUT FIFO and FLAG D is used to indicate the full status of EP6 IN FIFO, to the FPGA.

The EZ-USB Technical Reference manual contains more details on the Flag usage. Refer to section 9.2.4 in the manual.

Thanks,

Yatheesh

View solution in original post

0 Likes
1 Reply
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Yes, the FX2LP configured as a FIFO Slave can indicate the master (FPGA in your case) that it has data to send using the FIFO Status Flags. 

For an example please refer to the application note AN61345 Designing with EZ-USB® FX2LP™ Slave FIFO Interface​ where FLAG A is used to indicate the empty status of EP2 OUT FIFO and FLAG D is used to indicate the full status of EP6 IN FIFO, to the FPGA.

The EZ-USB Technical Reference manual contains more details on the Flag usage. Refer to section 9.2.4 in the manual.

Thanks,

Yatheesh

0 Likes