User manual

17
4 PP_cdc_com_port_single[4]:
This demonstration application creates a USB CDC Device that enumerates as a single COM port on
the host personal computer. The application demonstrates two-way communication between the USB
device and the personal computer host.
Description:
To build this project, you must copy the project to the following location <install-
dir>/apps/usb/device/. and then open the PP_cdc_com_port_single.X project in MPLAB X
IDE.
<install-dir> if not changed by the user is: C:\microchip\harmony\vxxxxx
Where vxxxxx depends on which version of MPLAB Harmony is installed.
This demonstration allows the device to appear like a serial (COM) port to the host. Attach the device
to the host. If the host is a personal computer and this is the first time you have plugged this device
into the computer, you may be prompted for a .inf file. The inf file is provided with the Source code
of the project in a separate folder. Once the device is successfully installed, open up a terminal
program, such as HyperTerminal and select the appropriate COM port. On most machines this will be
COM5 or higher. Set the communication properties to 9600 baud, 1 Stop bit and No parity, with Flow
Control set to None. Once connected to the device, typing a key in the terminal window will result in
the attached device echoing the next letter. Therefore, if the letter 'b' is pressed, the device will echo
'c'.
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 to reconnect to the device.
The application initializes the drivers, systems services, interrupts, and application in the function
SYS_Initialize() found inside the file system_init.c
The function SYS_Tasks(), found inside file system_tasks.c, maintains system services, Device
Drivers, Middleware & Other Libraries, and the application's state machine. It also runs USB HS
Driver Task Routine, and USB Device layer tasks routine.
For more information about USB CDC, please refer to Framework Help/USB Libraries Help/USB
Device Help/USB Device CDC Library in MPLAB Harmony documentation.
5 PingPong_BSP:
To build this project, you must copy the project to the following location <install-dir>/apps/ and then
open the PingPong_BSP.X project in MPLAB X IDE.
This demonstration application: