I have always fancied PIC USB communication. I bought a PIC USB development board from Rhydolabz. I am going to write about making your PIC’s USB port communicate to the PC.
You would be requiring the Microchip USB Stack to start. After having downloaded the USB Stack, execute the exe file to install the USB stack. Once the USB stack is installed, proceed to the directory where your “Microchip Solutions” folder could be found.
You should be able to find a file by name picdemfsusb.hex under Precompiled Demos/Factory Hex Files folder inside your Microchip Solutions Directory. My development board came with a pre-loaded bootloader. If you are going to use a fresh PIC18F4550 chip, you may have to use the downloader that is readily available in the Microchip Solutions directory. I used a hex download software that came along with my development board and loaded the picdemfsusb.hex into the controller.
As soon as you hit the reset button of your development board, you must be able to see a New Hardware Found Tab appear in your system tray.
In most of the cases, the hardware may not be recognised by the computer and you may have to install the drivers for your development board when your system asks for it as shown in the figure below:
You would be able to locate the driver files for Microchip Hardware in the respective project folders located inside the directory.
Once you locate the drive files and install them, your system would reflect the installed hardware as shown in the figure below:
Bingo! You have installed a Microchip hardware to your system!
Write to me if you have questions about this post.