can anyone tell me how to detect usb host connected on pic18f4550? i wanted to setup interrupt so that when usb host sends data then 18f4550 usb interrupt should start and receive/send required data
The host send a frame to the PIC18F4550, and the PIC18F4550 received it by interrupt and answer with a correct frame, so that the host see the PIC18F4550 as a full speed device.
If you use the Microchip framework, all the interrupt stuff has been done, you just have to use it.
hope it helps you.
joseMiguel