Page 1 of 1

usb slave and main routine

Posted: Thu Aug 13, 2009 8:56 pm
by Roy
Chip 18f4550
I managed to get usb slave working with a program I wrote in vb.
The problem is that once I successfully introduce the slave into my project all other routine in the main menu work in the panel but not in the chip.
I have tried calling a macro from the main menu.
I am trying to pulse an led to show the status of the chip
It seems to me you cannot access endpoints from the usb as well as perform routines from within the chip

Re: usb slave and main routine

Posted: Thu Aug 20, 2009 11:56 am
by Benj
Hello Roy

Once you start the slave service running on your target device the device becomes a slave eg it will not do anything unless it receives a transaction from the USB. Whenever this happens the slave service routine gets processed and then the device goes back to waiting. If you need to add USB to a program you already have running then I advise using the serial component as this does not turn the device into a USB slave. Another option is to look at the USB slave example that does not use the slave service.