1 Harmony 3 Peripheral Library Application Examples PIC32CZ CA70 Family

The following applications are provided to demonstrate the typical or interesting usage models of one or more peripheral libraries.
NameDescription
ACC PWM GenerationThis example uses ACC peripheral Library to generate a PWM waveform with variable duty cycle
AFEC PollingThis example uses AFEC peripheral library to sample an analog input in polled mode and send the converted data to console
AFEC User SequenceThis example uses AFEC peripheral library to sample three analog inputs using the user sequencer in triggered conversion mode and send the converted data to the console
AFEC with DMAThis example uses AFEC peripheral Library to sample multiple ADC channels using DMA striding
Cache MaintenanceThis example shows cache maintenance operation by cleaning and invalidating the cache for the DMA buffers located in the cacheable SRAM region
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
DACC Waveform GenerationThis example shows how to use the DACC peripheral to generate a 5 kHz sine wave or triangle wave using a look up table
DACC Waveform Generation with DMAThis example shows how to use the DAC with the DMA to generate sinusoidal waveform without CPU intervention
EFC Read WriteThis example shows how to use EFC to erase and program the internal Flash memory
MCAN BlockingThis example shows how to use the MCAN module to transmit and receive CAN messages in polling mode
MCAN FD BlockingThis example shows how to use the MCAN module to transmit and receive CAN FD messages in polling mode
MCAN FD InterruptThis example shows how to use the MCAN module to transmit and receive CAN FD messages in interrupt mode
MPU Cache CoherencyThis example shows how to maintain cache coherency by allocating DMA buffers in non-cacheable SRAM region defined by MPU
PIO InterruptThis example shows how to generate GPIO interrupt on switch press and release, and indicate the switch status using the LED
PIO PollingThis example shows how to poll the switch input, and indicate the switch status using the LED
PWM GenerationThis example shows how to use the PWM peripheral to generate 3-phase PWM signals with dead time
QSPI Flash Read WriteThis example shows how to use the QSPI Peripheral library to perform erase, write and read operation with the QSPI Serial Flash memory in Quad IO mode
QSPI Flash Read Write in SPI ModeThis example shows how to use the QSPI Peripheral library to perform erase, write and read operation with the QSPI Serial Flash memory in SPI mode
QSPI Flash XIPThis example shows how to setup the QSPI Flash in the XIP mode to execute code from the serial Flash memory
QSPI Flash XIP FunctionThis example shows how to setup the QSPI Flash in the XIP mode to call a function placed in QSPI Flash memory
RSTC InterruptThis example shows how to use the RSTC peripheral to generate an interrupt instead of generating a reset, when the Reset switch is pressed on board
RSWDT TimeoutThis example shows how to generate a RSWDT reset by emulating a deadlock
RTC Alarm InterruptThis example shows how to use the RTC to configure the time and generate the alarm
RTT Periodic InterruptThis example shows how to use the RTT to generate periodic interrupts
SPI BlockingThis example shows how to use the SPI peripheral to transmit and receive a block of data in a blocking manner
SPI EEPROM Write ReadThis example shows how to use the SPI peripheral to write and read from the SPI serial EEPROM memory
SPI InterruptThis example shows how to use the SPI peripheral to transmit and receive a block of data using interrupts
SPI Ping Pong with DMAThis example shows how to continuously transmit and receive data over a SPI interface using ping pong buffers with the DMA
SUPC Wakeup Using RTCThis example shows how to enter different low power modes and exit it using the RTC alarm
SUPC Wakeup Using RTTThis example shows how to enter different low power modes and exit it using the RTT alarm
SUPC Wakeup Using WKUP Pinhis example shows how to enter different low power modes and exit it using WKUP pin
SysTick Periodic InterruptThis example shows how to use the SysTick to generate periodic interrupts
TC Capture ModeThis example shows how to use the TC module in capture mode to measure duty cycle and frequency of an external input
TC Compare ModeThis example shows how to use the TC module in compare mode to generate an active low, active high, and toggle output on compare match
TC Timer ModeThis example shows how to use the TC module in timer mode to generate periodic interrupt
TCM Cache CoherencyThis example shows how to maintain cache coherency by allocating the DMA buffers in the Tightly Coupled Memory (TCM), which are not cacheable
TRNG Random NumberThis example shows how to use the TRNG Peripheral library to generate and read a random number
TWIHS EEPROM EmulationThis example application demonstrates how to use the TWIHS peripheral in client mode
TWIHS EEPROM Read WriteThis example shows how to use the TWIHS peripheral to write and read from the I2C serial EEPROM memory
UART BlockingThis example shows how to use the UART peripheral to transfer a block of data in a blocking manner
UART InterruptThis example shows how to use the UART peripheral to transfer a block of data in a non-blocking manner
UART Ring BufferThis example shows how to use the UART peripheral in ring buffer mode
WDT TimeoutThis example shows how to generate a Watchdog timer reset by emulating a deadlock
XDMAC Memory TransferThis example shows how to use the XDMAC peripheral to do a memory to memory transfer and illustrates the usage of burst size to reduce the transfer time