Getting Started with MPLAB® Harmony v3 Peripheral Libraries on PIC32MK GP MCUs: Step 2
Last modified by Microchip on 2023/11/09 09:07
Configure TMR2 Peripheral Library
Click on the Available Components tab in the left pane in the MPLAB® Harmony Configurator (MHC) window.
Expand Peripherals > TMR.
Double click or drag and drop TMR2 to add the Timer2 Peripheral Library (PLIB) to the project graph.
In the project graph, configure the TMR2 PLIB as a 32-bit timer and set the timer period as 500 milliseconds.
Verify that PBCLK2 is set to 60 MHz.
Configure CORETIMER Peripheral Library
Under the Available Components tab, expand Peripherals > CORE TIMER
Double-click on CORE TIMER to add the CORE TIMER PLIB to the project graph.
In the project graph, use the default CORE TIMER PLIB configuration as shown.