How to disarm previously armed in endpoint1 of FX2LP?

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

cross mob
MoTa_938296
Level 1
Level 1

How to disarm previously armed in EP1IN?

0 Likes
1 Solution

Hi,

The device will be NAKing the IN requests from the host while it is loading data into the endpoint buffer (BUSY bit in EP1INCS will be set as 0). Once it completes loading the count, BUSY will be set as 1 and host can read the data. You could add a delay in the firmware so that the data and count arent immediately loaded.

Best Regards,

Sananya

View solution in original post

0 Likes
3 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

You can load EP1INBC with 0 if you dont want the endpoint to be armed i.e. to receive any bytes on the host.

Best Regards,

Sananya

0 Likes

Thank you Sanya,

Yes I can. But I want EP1IN to response with nack to the host. I would like to emulate ftdi chip with fx2lp.

Best Regards,

MoTa

0 Likes

Hi,

The device will be NAKing the IN requests from the host while it is loading data into the endpoint buffer (BUSY bit in EP1INCS will be set as 0). Once it completes loading the count, BUSY will be set as 1 and host can read the data. You could add a delay in the firmware so that the data and count arent immediately loaded.

Best Regards,

Sananya

0 Likes