1 Harmony 3 Peripheral Library Application Examples for PIC32MK Family

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

NameDescription
ADCHS DMAThis example application shows how to sample an analog input using the ADCHS peripheral in DMA mode and displays the converted samples on a serial terminal
ADCHS InterruptThis example application shows how to sample an analog input using the ADCHS peripheral and displays the converted samples on a serial terminal
ADCHS PollingThis example application shows how to sample an analog input using the ADCHS peripheral and displays the converted samples on a serial terminal
CAN BlockingThis example application shows how to use the CAN module to transmit and receive normal CAN messages in polling mode
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
CAN InterruptThis example application shows how to use the CAN module to transmit and receive normal CAN messages in interrupt mode
CDAC Waveform GenerationThis example application shows how to use the CDAC to generate a 1 kHz sinusoidal waveform
CDAC Waveform Generation with DMAThis example application shows how to use the CDAC with the DMA to generate a 1 kHz sinusoidal waveform without CPU intervention
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
CORETIMER Periodic InterruptThis example application shows how to use the CoreTimer to generate periodic interrupts
DMAC Memory TransferThis example application demonstrates how to use the DMAC peripheral to do a memory to memory transfer
EEPROM Read WriteThis example application demonstrates how to use the EEPROM peripheral library
GPIO InterruptThis example application demonstrate how to generate GPIO interrupt on switch press and release, and indicate the switch status using the LED
GPIO PollingThis example application demonstrate how to poll the switch input, and indicate the switch status using the LED
I2C EEPROM Read WriteThis example application demonstrates how to use the I2C peripheral to write and read from the I2C serial EEPROM memory
I2C SMBUS read writeThis example application demonstrates how to use the I2C peripheral to exchange data between a device acting as a SMBUS master and SMBUS slave.
I2C Temperature SensorThis example application demonstrates how to use I2C peripheral to read temperature value from temperature sensor device
ICAP Capture ModeThis example application shows how to use the ICAP peripheral to measure the pulse width of the input signal
MCPWM ChannelsThis example demonstrates how to use the MCPWM peripheral to generate PWM signals
NVM Flash Read WriteThis example application demonstrates how to use the NVM to erase and program the internal Flash memory
OCMP Compare ModeThis example application shows how to use the OCMP peripheral to generate an active low, active high, and toggle output on compare match
RTCC Alarm InterruptThis example application shows how to use the RTCC to configure the time and generate the alarm
SPI BlockingThis example application demonstrates how to use the SPI peripheral to transmit and receive a block of data in a blocking manner
SPI EEPROM Write ReadThis example application demonstrates how to use the SPI peripheral to write and read from the SPI serial EEPROM memory
SPI InterruptThis example application demonstrates how to use the SPI peripheral to transmit and receive a block of data using interrupt
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/slave/spi_write_read/firmware
SPI Client Read WriteThis example application demonstrates how to use the SPI peripheral in client mode
TMR Periodic InterruptThis example demonstrates how to use the TMR module in timer mode to generate periodic interrupt
TMR1 Periodic InterruptThis example demonstrates how to use the TMR1 module in timer mode to generate periodic interrupt
UART Auto-baudThis example application demonstrates how to use auto-baud feature of UART peripheral
UART Echo BlockingThis example application demonstrates how to use the UART peripheral to transfer a block of data in a blocking manner
UART Echo InterruptThis example application demonstrates how to use the UART peripheral to transfer a block of data in a non-blocking manner
UART Ring BufferThis example application demonstrates how to use the UART peripheral in ring buffer mode
WDT TimeoutThis example application shows how the watchdog timer resets by not feeding the watchdog on switch press