Link

                                                                                                     

Getting Started with Harmony v3 Peripheral Libraries on PIC32MZ EF MCUs

This tutorial shows you how to use the MPLAB Harmony Configurator (MHC) to create an application that gets you started in developing applications on PIC32MZ EF MCUs using MPLAB Harmony v3 software framework.

The application makes use of Curiosity PIC32MZ EF 2.0 Development Board and I/O1 Xplained Pro Extension Kit.

The application reads the current room temperature from the temperature sensor on the I/O1 Xplained Pro Extension. The temperature read is displayed on a serial console periodically every 500 milliseconds. The periodicity of the temperature values displayed on the serial console is changed to one second, two seconds, four seconds, and back to 500 milliseconds every time you press the switch SW1 on the Curiosity PIC32MZ EF 2.0 Development Board. Also, LED1 is toggled every time the temperature is displayed on the serial console.

The application you create utilizes:

  • I²C Peripheral Library (PLIB) to read the temperature from a temperature sensor.
  • TMR1 PLIB to periodically sample temperature sensor data.
  • Universal Asynchronous Receiver Transmitter (UART) and Direct Memory Access (DMA) PLIBs to print the temperature values on a COM (serial) port terminal application running on a PC.
  • GPIO PLIB to change the periodicity of temperature sensor data read using the SWITCH press event and toggle the LED.

For more information refer the links below.