Update and Configure an Existing MHC-based MPLAB® Harmony v3 Project to MCC-based Project: Step 3

Last modified by Microchip on 2023/11/09 09:09

In this step, we will extend the MPLAB® Harmony Configurator (MHC) project by configuring a GPIO pin for the SW3 switch and user LED (LED3).

Step 3.1: Configure the Switch Button Pin

Configure the switch button, BTN3 pin, with a General Purpose Input/Output (GPIO) interrupt handler.
The switch button, BTN3, will be configured as per the design schematic of the Curiosity PIC32MZ EF 2.0 Development Board.

User guide SW3


Open Pin Configuration under Plugins: to verify the pin configuration. Select the Pin Settings tab and sort (Order) the entries by Ports.

Pins sorting
 

Scroll down to GPIO pin RJ6 (Pin #133) in the Pin ID column and configure RJ6 as a GPIO pin for SW3 switch functionality. An internal pull-up is enabled to avoid false edge detection as there is no external pull-up on the Curiosity PIC32MZ EF 2.0 Development Board.

MCC configuration SW3

Back to Top


Step 3.2: Configure the LED Pin

The user LED3 will be configured as per the design schematic of the Curiosity PIC32MZ EF 2.0 Development Board. 

User guide LED3

Select the Pin Settings tab and then scroll down to GPIO pin RJ3 (Pin #117) in the Pin ID column and configure RJ3 as an output pin for LED3 functionality.

MCC configuration LED3

Note: The LED3 on the Curiosity PIC32MZ EF 2.0 Development Board is active low. Configure the LED3 in the default OFF state by configuring the latch value to logic High.

Back to Top