I am trying to perform USB communication from the PC to a PIC18F4550 microcontroller using the Microchip PIC18 USB CDC(Communication Device Class) Framework which essentially makes the PIC18, connected to the pc through the usb cord to the usb port of the pc, appear as a vritual COM port on the PC. This gives me the ease of sending the data as if I was sending it to a serial port on the pc side and removes the hassle of using a usb to serial converter.
Now the problem is that the demo project provided by Microchip is written so that it can be burned on different devices, with different circuits, or with different conditions - that makes it large, and for me at least, harder to understand. If someone could hopefully just provide a working code with minimal comments for this microcontroller or something similar OR link me to a good tutorial, it would make my life MUCH MUCH easier
Thanks.