PIC32MZ EF Curiosity
USB CDC Device demo that enumerates as two serial ports on USB host PC
Introduction
The USB CDC Device class enables users to enumerate a USB device as a serial
communication port on a USB host personal computer. This demonstration application
creates a USB CDC Device that enumerates as two serial ports on the USB Host PC. This
application demonstrates the ability of the MPLAB Harmony USB Stack to support multiple
instances of the same device class.
The PIC32MZ EF Curiosity Development Board contains PIC32MZ2048EFM100 MCU
with Hi-Speed USB module that enables you to implement USB functionality through the micro-B
USB port.
1. PIC32MZ2048EFM100 32-bit microcontroller (U9).
2. Two mikroBUS sockets to expand functionality using MikroElectronika Click
adapter boards (J5, J10).
3. X32 header for audio I/O using Microchip audio daughter boards (J14, J15).
4. MRF24WN0MA, 2.4 GHz IEEE 802.11n compliant wireless module (U10).
5. Header for flexible Ethernet PHY options using Microchip PHY daughter boards (J18).
6. GPIO expansion header (J17).
7. Debug USB connector for programming/debugging (J3).
8. Target USB connector for PIC32 USB connectivity (Device/Host mode) (J12).
9. Header for external 5V input (J7).
10. Jumper to select power source: Debug USB connector, target USB connector and external
+5V input (J8).
11. Jumper to drive VBUS in Host mode (J13).
12. Three user LEDs (LED1, LED2, and LED3).
13. RGB LED (LED4).
14. User button (S1).
15. Reset Button (MCLR).
16. ICSP header for external debugger, such as MPLAB® REAL ICE or MPLAB ICD 3 (J16).
17. Jumper to select on-board debugger or external debugger (J2).
18. 24 MHz crystal oscillator (X2).
Required Tools and Applications
Microchip Tools and Applications
You will need the following Microchip development tools to run USB CDC com port dual
demo
PIC32MZ EF Curiosity Development Board (DM320104), available from Microchip
Direct
Download and install latest version of MPLAB® X Integrated Development
Environment (IDE)
Download and install the latest version of MPLAB® XC32 Compiler
Optionally Download and install the latest version of MPLAB® Harmony Integrated
Software Framework.
Note:
Using MPLAB® Harmony Integrated Software Framework you will be able to extend the
functionality of this project by adding new modules, software frameworks and libraries to
your project.
Building the Application
Download the cdc_com_port project to your local PC.
To build this project, you must open (in MPLAB X, File->Open Project) the
cdc_com_port_dual.X project (from <path-of-project-in-your-
pc>cdc_com_port_dual/firmware) in MPLAB X IDE, as shown below.