problem V8 and USB

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
MOCUELSL
Posts: 59
Joined: Fri Jun 01, 2018 12:52 pm
Has thanked: 8 times
Been thanked: 5 times
Contact:

problem V8 and USB

Post by MOCUELSL »

Good morning, Benj.
When compiling the program that I enclose in the Pic16fj1024gb610, it works well if the USB communication cable is connected to the test board, but if I disconnect the USB cable the program stops and it does not continue the rest of the code until I return to Connecting the USB cable does not work. Thank you.
Attachments
PANTALLA TFT ILI9341 - USB.fcfx
(12.66 KiB) Downloaded 216 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: problem V8 and USB

Post by Benj »

Hello,

The USB Properties contain a setting called "Enumeration Timeout" that controls is the length of time to wait for the USB initialise to connect to the PC.

No - Waits forever for the initialise to complete and for the device to be setup on the PC complete with device driver.

Yes - Performs a timeout to allow you to try and initialise later if the device may not always be plugged into the PC.

I've attached an example that has extra code to only perform USB communications when the USB has been initialised.
PANTALLA TFT ILI9341 - USB.fcfx
(13.33 KiB) Downloaded 239 times

MOCUELSL
Posts: 59
Joined: Fri Jun 01, 2018 12:52 pm
Has thanked: 8 times
Been thanked: 5 times
Contact:

Re: problem V8 and USB

Post by MOCUELSL »

Hi,
Thank you very much for the speed of your response, now it works perfectly, again I thank you.
Regards

Post Reply