Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes

PIC32 Peripheral Library


The PIC32 Peripheral Library provides a set of functions for setting up and controlling the operation of all the peripheral modules available in the PIC32 devices. The Peripheral Library serves as a convenient layer of abstraction over the specific details of the peripherals and their associated control and status registers. The Peripheral Library is free and can be downloaded from Downloads below.

Individual Peripheral Module functions and macros

• System Level Functions
• Prefetch Cache Functions
• DMA Functions
• Bus Matrix Functions
• NVM Functions
• Reset/Control Functions
• Interrupt Functions
• Oscillator Functions
• Power Save Functions
• I/O Port Functions
• Timer Functions
• Input Capture Functions
• Output Compare Functions
• SPI Functions
• I2C™ Functions
• UART Functions
• PMP Functions
• RTCC Functions
• A/D Functions
• Ethernet Module Functions
• Comparator Functions
• CVREF Functions
• Watchdog Timer Functions

Resource Requirements

    • Program Memory: The Peripheral Library functions have been optimized for reduced Program Memory usage. Since the functions are in the form of libraries, the actual Program Memory requirements depend on the functions being called by the application.

    • Data Memory: The vast majority of the functions do not use RAM at all. Each of the remaining functions uses less than 10 bytes of RAM.

Important Note:

    Starting with XC32 V1.40, PIC32MX peripheral support libraries are no longer installed as part of the compiler’s installation. These libraries are now installed as a second setup, after the installation of XC32 compiler.

    Peripheral libraries for PIC32MX products are not needed for Harmony development. Microchip recommends using MPLAB Harmony for new projects. To download MPLAB Harmony, click here.


KB Size
Updated as of
Software and Hardware Solutions for the 32-bit Designer
PIC32 Legacy Peripheral Libraries Linux
PIC32 Legacy Peripheral Libraries
Quick Guide to Microchip Development Tools