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.
problem V8 and USB
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 59
- Joined: Fri Jun 01, 2018 12:52 pm
- Has thanked: 8 times
- Been thanked: 5 times
- Contact:
Re: problem V8 and USB
Hi,
Thank you very much for the speed of your response, now it works perfectly, again I thank you.
Regards
Thank you very much for the speed of your response, now it works perfectly, again I thank you.
Regards