Create a first application on PIC32CX SG Microcontrollers using MPLAB Harmony v3 with MCC
This tutorial explains how to create a simple application on a Arm® Cortex-M4F based PIC32CX SG Microcontroller using the MPLAB Code Configurator (MCC) with MPLAB Harmony v3 modules. The objective of this Application is to toggle an LED on a timeout basis and print the LED toggling rate and temperature reading periodically on a serial console. For this demonstration, the following MPLAB Harmony v3 modules are used and configured using the MCC:
The application makes use of PIC32CX SG61 Curiosity Ultra Evaluation Board.
The objective of this application is to toggle an LED on a timeout basis and print the LED toggling rate on the serial console. For this demonstration, the following MPLAB Harmony v3 modules are used and configured using the MCC.
The applications you create will utilize:
- The PORT pin to toggle the LED.
- Real-Time Clock (RTC) PLIB to periodically sample the LED toggling rate and temperature reading.
- Two instances of the External Interrupt Controller (EIC) PLIB: one to change the toggling rate when there is a switch press event and another one to decide what needs to be printed on the Serial Console; temperature reading or LED toggling rate.
- SERCOM (configured as I2C) PLIB to read the temperature from an on-board temperature sensor.
- SERCOM (configured as USART) and DMA PLIBs to print the LED toggling rate and temperature reading on a COM (serial console) port terminal application running on a PC.
For more information refer the links below.