Getting Started With Harmony v3 Peripheral Libraries on PIC32MX 470 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 PIC32MX470 MCUs using MPLAB Harmony v3 software framework.
The application makes use of PIC32MX470 Curiosity Development Board , MikroElectronika Weather click board, and MikroElectronika USB UART click board (sold separately).
The application reads the current room temperature from the temperature sensor on the MikroElectronika Weather click board. 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 S1 on the PIC32MX470 Curiosity 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.
- TMR2 PLIB to periodically sample temperature sensor data.
- CORETIMER PLIB to use blocking timer delay for initializing temperature sensor.
- UART and Direct Memory Access (DMA) PLIBs to print the temperature values on a COM (serial) port terminal application running on a PC.
- GPIO Peripheral Library to change the periodicity of temperature sensor data read using SWITCH press event and toggle the LED.
For more information refer the links below.