9.3 USB Peripheral

There are Device Stack and Host stack as well as Drivers available under “Device Resources”. User can include the USB interface for their application. A set of standalone USB application examples are available in \usb_apps_host and \usb_apps_device repository.

Fore more detailed documentation to understand the USB device and USB host standalone applications, refer to the following:

  1. USB device - See Harmony 3 USB Device application examples in Reference Documentation from Related Links.
  2. USB Host - See Harmony 3 USB Host application examples in Reference Documentation from Related Links.

Each project support several platform. Some of the project may not support PIC32-BZ6 platform. Please look at "pic32wm_bz6_curioisty.X". For example, "CDC Basic Example" of USB host support "pic32wm_bz6_curiosity.X".

To enable USB Host mode, the user must make the following board modifications:

  • Short jumper (J102) between 5V and VBUS.
  • Connect jumper (J104) between VBUSON and EN (positions 2 and 3).

The following table provides the list of precompiled application demos are included in the USB application repository.

Table 9-3. USB Application Examples
Host ApplicationsDevice Applications
usb_apps_hostcdc_basic
hid_basic_keyboard
hid_basic_mouse_usart
hub_msd
msd_basic
hub_cdc_hid
usb_apps_devicecdc_com_port_dual
cdc_com_port_single
cdc_msd_basic
hid_basic
msd_basic
vendor

User can also find the Bluetooth Low Energy transparent UART with USB peripheral application example in wireless_apps_pic32_bz6/apps/ble/peripheral_applications/usb_cdc_peripheral_trp_uart. For more details, see USB CDC Peripheral Transparent UART from Related Links.