1 MPLAB® Harmony 3 Peripheral Library Application Examples for PIC32CM-GC/SG Family

The following applications are provided to demonstrate the typical or interesting usage models of one or more peripheral libraries.

NameDescription
AC SleepwalkingThis example application shows how to use the AC Peripheral library to perform a single shot comparison in standby sleep mode periodically and wake up the device when the comparator output toggles.
ADC BlockingThis example application shows how to use the ADC Peripheral library in blocking mode to convert analog input on a ADC channel.
ADC DMA ScanThis example application shows how to use the ADC Peripheral library in scan mode to convert multiple analog input on a ADC channels and transfer the ADC result using DMA.
ADC InterruptThis example application shows how to use the ADC Peripheral library in interrupt mode to convert multiple analog inputs.
CAN FD BlockingThis example application shows how to use the CAN module to transmit and receive CAN FD messages in polling mode.
CAN FD InterruptThis example application shows how to use the CAN module to transmit and receive CAN FD messages in interrupt mode
Clock ConfigurationThis example application shows how to configure the clock system to run the device at maximum frequency. It also outputs a prescaled clock signal on a GPIO pin for measurement and verification.
DMAC CRC-32 GenerationThis example application demonstrates how to use the DMAC peripheral to compute 32-bit Cyclic Redundancy Checksum (CRC).
DMAC Memory TransferThis example application demonstrates how to use the DMAC peripheral to do a memory to memory transfer.
DMAC USART EchoThis example application demonstrates USART transfer with DMA to receive 10 bytes and echo back the received bytes.
EIC InterruptThis example application demonstrates how to generate interrupt using the EIC on switch press and indicate it through an LED.
EVSYS TriggerThis example application demonstrates how to use the EVSYS Peripheral library to setup autonomous, low-latency and configurable communication between peripherals.
FCW Read WriteThis example application demonstrates how to use the FCW to erase and program the internal Flash memory.
FREQM MeasurementThis example application demonstrates how to use the FREQM peripheral to measure the frequency of the internal RC Oscillator.
MCRAMC ECC with Fault Injection TestingThis example application demonstrates how to test the SRAM using the MCRAMC ECC feature on internal SRAM memory.
PM Wakeup using EICThis example demonstrates entering the low power modes and exiting it using the EIC.
PM Wakeup using RTCThis example demonstrates entering the low power modes and exiting it using the RTC.
PORT PollingThis example application demonstrate how to poll the switch input, and indicate the switch status using the LED.
RSTC Reset CauseThis example shows how to use the RSTC peripheral to indicate the cause of the device reset.
RTC Alarm InterruptThis example shows how to use the RTC to configure the time and generate the alarm.
RTC Periodic InterruptThis example application shows how to use the RTC to generate periodic interrupts.
RTC Tamper DetectThis example application shows how to configure and use tamper detect feature of RTC.
SERCOM I2C EEPROM Read WriteThis example application demonstrates how to use the SERCOM peripheral to write and read from the I2C serial EEPROM memory.
SERCOM SPI EEPROM Read WriteThis example application demonstrates how to use the SERCOM SPI peripheral to write and read from the SPI serial EEPROM memory.
SERCOM SPI InterruptThis example application shows how to use SERCOM SPI PLIB with external loop back to write and then read back an array of data in interrupt mode.
SERCOM USART BlockingThis example application demonstrates how to use the SERCOM peripheral in USART mode to transfer block of data in a blocking manner.
SERCOM USART InterruptThis example application demonstrates how to use the SERCOM peripheral in USART mode to transfer data in a non-blocking manner.
SERCOM USART Ring BufferThis example application demonstrates how to use the SERCOM peripheral in USART ring buffer mode to transfer data in a non-blocking manner.
Systick Periodic InterruptThis example shows how to use the SysTick to generate periodic interrupts.
TCC Capture ModeThis example shows how to use the TCC module in capture mode to measure duty cycle and frequency of an external input.
TCC Compare ModeThis example shows how to use the TCC module in compare mode to generate different waveforms.
TCC Timer ModeThis example shows how to use the TCC module in timer mode to generate periodic interrupt.
Trustzone EIC Pin ToggleThis example application demonstrates handling of external pin interrupt in secure and non-secure project.
TrustZone Secure TCC DemonstrationThis example application performs a PWM signal applied on LED0 based on TCC0 peripheral.
TrustZone Systick periodic timeoutThis example application shows how to use the SysTick to generate periodic interrupts on both Secure and Non-secure modes.
WDT TimeoutThis example shows how to generate a Watchdog timer reset by emulating a deadlock.