Link Search Menu Expand Document

                                                                                                     

Update and Configure an Existing MHC-based MPLAB Harmony v3 Project to MCC-based Project

This tutorial shows you how to update and configure an existing MPLAB Harmony Configurator (MHC)-based MPLAB Harmony v3 project to MPLAB Code Configurator (MCC)-based project. This training module uses the Getting Started Extended Application on Curiosity PIC32MZ EF 2.0 Development Board to update and configure an existing project.

The application makes use of Curiosity PIC32MZEF v2 Development Board and I/O1 Xplained Pro Kit (optional if you intend to exercise the extended functionality described below).

Note: Though this application uses the PIC32MZEF microcontroller as an example, the general description and steps to install, configure, and generate code using MCC applies to all 32-bit PIC and SAM microcontrollers.

This application demonstrates an LED toggle (LED1 toggles when the switch SW1 is pressed and LED3 toggles when switch SW3 is pressed) on a timeout basis and prints the LED toggling rate on the serial terminal. The periodicity of the timeout will change from 500 milliseconds to one second, two seconds, four seconds, and back to 500 milliseconds every time you press the switch SW1 or SW3 on the Curiosity PIC32MZ EF 2.0 Development Board. The periodicity will not change while switching between SW1 to SW3 or vice versa.

The demo application has extended functionality to print the current room temperature periodically when switch SW2 is pressed (the Xplained pro extension connector on the Curiosity PIC32MZ EF 2.0 Development Board must be plugged with I/O1 Xplained Pro Extension Kit).

This application will utilize:

  • Timer Peripheral Library to periodically sample temperature sensor data and to toggle LED.
  • I2C Peripheral Library to read the temperature from a temperature sensor.
  • Universal Asynchronous Receiver Transmitter (UART), Direct Memory Access (DMA) Peripheral Libraries to print the temperature values on a COM (serial) port terminal application running on a PC.
  • GPIO Peripheral Library to toggle the LED.
  • Help develop your first MPLAB Harmony v3 application using MCC. In the process, the lab will also demonstrate the use of callback functions.

For more information refer the links below.

               



Copyright © 2020 Microchip Technology.