1 Harmony 3 Peripheral Library Application Examples for PIC32CX 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 at the end of a successful comparison
ADC DMA SleepwalkingThis application shows how to configure the ADC in a sleepwalking operation, where the input voltage is measured at a fixed interval, and then the device is woken from sleep after conversion of 16 samples
ADC Window SleepwalkingThis application shows how to configure ADC in a sleepwalking operation, where input voltage is measured at a fixed interval, but device is not woken from sleep until the measured value is below a given threshold
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
DSU Compute CRC32This example application demonstrates how to use the DSU Peripheral library to compute 32-bit Cyclic Redundancy Checksum (CRC)
EIC InterruptThis example application demonstrates how to generate interrupt using the EIC on switch press and indicate it through an LED
NVMCTRL Read WriteThis example application demonstrates how to use the NVMCTRL to erase and program the internal Flash memory
PM Wakeup Using EICThis application 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
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
SERCOM SPI BlockingThis example application demonstrates how to use the SERCOM SPI peripheral to transmit and receive a block of data in a blocking manner
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 SPI Ping Pong with DMAThis example demonstrates how to continuously transmit and receive data over a SPI interface using ping pong buffers with DMA
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
TC Timer ModeThis example shows how to use the TC module in timer mode to generate periodic interrupt
WDT TimeoutThis example shows how to generate a Watchdog timer reset by emulating a deadlock