USB Library
Running the Demo

This demo allows the device to appear like a serial (COM) port to the host. This demo will take data sent over the USB CDC interface and send it on the UART of the microcontroller. 

In order to run this demo first compile and program the target device. Attach the device to the host with the USB cable. Also connect the RS232 port of the demo board to a computer. This computer and be the same computer as the USB connection or it can be a different computer. If the host is a PC and this is the first time you have plugged this device into the computer then you may be asked for a .inf file. 

 

Select the “Install from a list or specific location (Advanced)” option. Point to the “<Install Directory>\USB Device - CDC – Serial Emulator\inf\” directory 

 

Once the device is successfully installed, open up a terminal program, such as hyperterminal. Select the appropriate COM port for the USB virtual COM port. On most machines this will be COM5 or higher. On the computer where the RS232 cable it attached, open a second terminal program. Select the hardware COM port associated with that computer. Please insure that the baud rate for both terminal windows is the same. 

Once everything is configured correctly, typing a key in one terminal window will result in the same data to show up in the second terminal window.

Note: Some terminal programs, like hyperterminal, require users to click the disconnect button before removing the device from the computer. Failing to do so may result in having to close and open the program again in order to reconnect to the device. 
MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla