Ahh, you come up trumps again Bruce, thank you. I was starting to think after all this work, a small problem like this would mess it all up for me!!
I've had a look at the USB PIC Demo docs and i think the attached highlighted diagram is what you are talking about?
So i am guesing in the code i need to put something along the lines of
Thanks again,Code:If PORTA.1 = 1 Then ' or what ever port is the USB_ATTACH line Gosub DoUSBIN Gosub DoUSBoUT Else EndIf
Steve




Bookmarks