6 Adding Chip Peripherals
The Chip Support Package (csp), which is downloaded as part of Install Harmony 3 Dependencies, see Install Harmony 3 Dependencies from Related Links, helps to configure and generate code related to peripherals of choice. For more details on the Chip Support Package (csp), refer to the Microchip-MPLAB-Harmony /csp in Reference Documentation from Related Links.
Once a peripheral is added to Project Graph, users can configure a variety of settings
applicable to the peripheral. Upon code generation, the system generates code specific to the
peripheral for the users. The system automatically adds the initialization of the peripheral,
for example, SERCOM0_Initialize()
, to the SYS_Initialize()
function call.

- For more detailed documentation to understand the usage of various APIs available for a particular peripheral, refer to the MPLAB Harmony Peripheral Libraries. For more details, see MPLAB Harmony 3 Peripheral Library Application Examples for PIC32CX-BZ6 and PIC32WM-BZ6204 Family in Reference Documentation from Related Links.
- There are also precompiled application examples available in
<Harmony Content Path>/csp_apps_pic32cxbz6_wmbz6
. These examples are ready to use and help users learn by following them.
PIC32CX-BZ6/WBZ65 supports a variety of peripherals, and each of peripheral uses certain pins.
To use all the features on the PIC32-BZ6 Curiosity Board, some of the peripheral pins are shared and the peripheral’s use cases overlaps. For more details on the shared pins, refer to the PIC32-BZ6 Curiosity Board User’s Guide.
- The board share some of the I2C pins with PTA (option 2) and USB host VBUS. Therefore, enabling I2C must drop PTA (option 2) and USB Host mode.
- MikroBus1 UART and CAN1 both share the same pins, so either case can be used.
QSPI | Ethernet | I2C | MikroBus1 SPI | MikroBus2 SPI | MikroBus1 UART | MikroBus2 UART | Touch (CVD)* | Graphic (GFX)* | PTA (Option 1) | |
---|---|---|---|---|---|---|---|---|---|---|
QSPI | — | — | — | — | — | X | X | — | X | X |
Ethernet | — | — | — | — | — | — | — | — | — | — |
I2C | — | — | — | — | — | — | — | — | — | — |
MikroBus1 SPI | — | — | — | — | — | — | — | — | — | — |
MikroBus2 SPI | — | — | — | — | — | — | — | — | — | — |
MikroBus1 UART | X | — | — | — | — | — | — | — | — | — |
MikroBus2 UART | X | — | — | — | — | — | — | — | — | — |
Touch (CVD)* | — | — | — | — | — | — | — | — | X | — |
Graphic (GFX)* | X | — | — | — | — | — | — | X | — | — |
PTA (option 1) | X | — | — | — | — | — | — | — | — | — |
PTA (option 2) | — | — | X | X | X | — | — | — | — | — |
CAN1 | X | — | — | — | — | X | — | — | — | — |
Temperature sensor | — | — | — | — | — | — | — | X | — | — |
MCP2200 UART flow control | — | — | — | — | — | — | — | — | X | X |
Debugging | — | — | — | — | X | — | — | — | — | — |
Low power battery | — | X | — | — | — | — | — | — | — | — |
VBUS on USB host | — | — | X | — | — | — | — | — | — | — |
USB ID | — | — | — | X | X | — | — | — | X | — |
USB DRP control | — | — | — | — | — | — | — | X | X | — |
PTA (Option 2) | CAN1 | Temperature Sensor | MCP2200 UART Flow Control | Debugging | Low Power Battery | VBUS on USB Host | USB ID | USB DRP Control | |
---|---|---|---|---|---|---|---|---|---|
QSPI | — | X | — | — | — | — | — | — | — |
Ethernet | — | — | — | — | — | X | — | — | — |
I2C | X | — | — | — | — | — | X | — | — |
MikroBus1 SPI | X | — | — | — | — | — | — | X | — |
MikroBus2 SPI | X | — | — | — | X | — | — | X | — |
MikroBus1 UART | — | X | — | — | — | — | — | — | — |
MikroBus2 UART | — | — | — | — | — | — | — | — | — |
Touch (CVD)* | — | — | X | — | — | — | — | — | X |
Graphic (GFX)* | — | — | X | — | — | — | X | X | |
PTA (option 1) | — | — | — | X | — | — | — | — | — |
PTA (option 2) | — | — | — | X | — | — | — | — | — |
CAN1 | — | — | — | — | — | — | — | — | — |
Temperature sensor | — | — | — | — | — | — | — | — | — |
MCP2200 UART flow control | X | — | — | — | — | — | — | — | — |
Debugging | — | — | — | — | — | — | — | — | — |
Low power battery | — | — | — | — | — | — | — | — | — |
VBUS on USB host | — | — | — | — | — | — | — | — | — |
USB ID | — | — | — | — | — | — | — | — | — |
USB DRP control | — | — | — | — | — | — | — | — | — |