1 MPLAB® Harmony 3 Peripheral Library Application Examples for PIC32AK-GC family

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

NameDescription
ADC Interrupt

This example application shows how to sample an analog input using the ADC peripheral and displays the converted samples on a serial terminal in interrupt mode

ADC Polling

This example application shows how to sample an analog input using the ADC peripheral and displays the converted samples on a serial terminal in polled mode

CCP Capture ModeThis example shows how to use the CCP module in capture mode to measure pulse width of an input signal.
CCP Compare ModeThis example shows how to use the CCP module in compare mode to generate an dual edge, active high, and toggle output on compare match.
CCP Timer ModeThis example demonstrates how to use the CCP module in timer mode to generate periodic interrupt.
CLC Manchester EncoderThis example application shows how to use the CLC peripheral library and generate a Manchester-encoded output.
CMP DAC Sine Wave

This code example demonstrates how to generate a 100 Hz sine wave without CPU intervention using the DMA, DAC and TMR peripherals

CRC-32 GenerationThis example application demonstrates how to use the CRC peripheral to compute 32-bit Cyclic Redundancy Checksum (CRC).
DMA Memory TransferThis example application demonstrates how to use the DMA peripheral to do a memory to memory transfer
I2C EEPROM Emulation (I2C Client)

This example application demonstrates how to use the I2C peripheral in client mode.

I2C EEPROM Read Write

This example application demonstrates how to use the I2C peripheral to write and read from the I2C serial EEPROM memory

PTG InterruptThis example demonstrates how to use PTG to execute different step commands
PWM Generators Synchronous OutputThis example application demonstrates how to Synchronize multiple PWM Generators buffer update to get synchronous output
SENT ReceiverThis example demonstrates how to use SENT peripheral as a Receiver
SENT TransmitterThis example demonstrates how to use SENT peripheral as a Transmitter
SPI EEPROM Read WriteThis example application demonstrates how to use the SPI peripheral to write and read from the SPI serial EEPROM memory
SPI Flash Write ReadThis example shows how to use the SPI Peripheral library to perform erase, write and read operation with the SPI Serial Flash memory.
SPI Host Read Write Test ApplicationThis is a SPI Host test application which is provided to demonstrate communication between SPI host and the corresponding SPI client application available under - apps/spi/client/spi_write_read
SPI Client Read WriteThis example application demonstrates how to use the SPI peripheral in client mode
Timer InterruptThis example application demonstrates how to use timer peripheral in interrupt mode to generate periodic interrupts
UART Echo BlockingThis example application demonstrates how to use the UART peripheral to transfer a block of data in a blocking manner
UART Echo Interrupt

This example application demonstrates how to use the UART peripheral to transfer a block of data in a non-blocking manner

UART Ring Buffer

This example application demonstrates how to use the UART peripheral in ring buffer mode

WDT TimeoutThis is a WDT test application designed to demonstrate the communication timeout feature of the WDT application