usb communication

Thread Starter

amila

Joined Nov 14, 2012
2
hi guys,

can someone tell me how to configure usb communication on a pic18f using mikro C .i want to send some data to the PC so how can i identify my PIC though usb port.how to create a discriptor.?????

thank you.
 
Last edited:

ErnieM

Joined Apr 24, 2011
8,415
You can oft just use a communications device class (or USB CDC) for simple tasks. This makes the USB device appear as an old school serial port to any program, and it allows unformatted data (meaning you can send just some bytes) to and from a PC.

If you were using a Microchip compiler you could use any of the sample programs provided in the Microchip Application Library (MAL) as the basis for several very useful applications.

As all of that is free I've never seen the need for using another compiler. However, I would be quite surprised if Mikroelectronica doesn't have similar example programs.

Sorry I am not so acquainted to their compiler and library to offer anything further.
 
Top