Pinned Repositories
atmega4809-getting-started-with-usart-studio
This repository contains 5 bare metal code examples that show how to use the USART peripheral of the ATmega4809 device in different modes. It's a companion to the TB3216-Getting Started with Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
dspic33e-code-examples
dsPIC33E Code Examples
pic16f17146-cold-plate-mplab-mcc
Control a Peltier device with a PIC16F17146 to regulate the temperature of a metal plate.
pic16f18446-cnano-greenhouse
A plant monitoring system with PIC16F18446 which provides automated control of soil moisture and air humidity in a greenhouse. It also displays the environment parameters: air humidity, soil moisture and temperature.
pic16f18446-curiosity-lpc-demo-code
This is a demo code is to provide support for the Curiosity Low Pin Count (LPC) development board using the PIC16F18446.
pic18f47q84-can-fd-basic-operation
A basic example of CAN FD operation on the PIC18F-Q84 device, showing baud rate setup, masks/filters, reception, and transmission using MCC generated code.
pic18f47q84-utmr-decoding-ws2812-datastream
This project uses the new Universal Timer (UTMR) module along with CLC, SPI, and CCP modules on the PIC18F-Q84 family to decode the WS2812 LED data stream.
pic18f57q84-2-axis-cnc
Example of a 2-axis CNC machine that makes use of NCOs and DMAs for core-independent operation on the PIC18F-Q84 family of devices.
pic24-dspic-can-canfd-bootloader
CAN and CAN-FD bootloader example using the ISO-15765-2 CAN transport layer for the PIC24 and dsPIC product lines.
pic24-dspic33-freertos-demo
PIC24 DSPIC33 FreeRTOS Demo
Microchip PIC & AVR Examples's Repositories
microchip-pic-avr-examples/dspic33-dsc-bootloader-code-examples
dsPIC33 DSC Bootloader Code Examples
microchip-pic-avr-examples/dspic33a-curiosity-oob
dsPIC33A Curiosity Out of Box Demos
microchip-pic-avr-examples/dspic33ck-curiosity-crc-basic
This code example shows how to configure and use the MPLAB® Code Configurator Melody CRC module to compute a CRC value.
microchip-pic-avr-examples/dspic33a-crypto-accelerator-module
These MPLAB® X IDE demo projects showcase applications built with the Crypto Library which leverages the pre-compiled Crypto Accelerator Module (CAM) Hardware Driver to demonstrate various cryptographic algorithms supported by the CAM
microchip-pic-avr-examples/ml-dspic33ck-curiosity-gestures-demo
Machine Learning Gesture Recognition implementation in dSPIC33CK DSC
microchip-pic-avr-examples/ml-dspic33ck-curiosity-imu-data-logger
IMU data logger for dSPIC33CK DSC
microchip-pic-avr-examples/avr128db48-find-all-i2c-clients-on-bus-callback-printf-errors
I2C write tried for all client addresses. ACK/NACK printed via UART. On completion, valid I2C addresses with ACK shown in printf message.
microchip-pic-avr-examples/avr128db48-i2c-io-expander1-leds-callbacks-printf
LED chaser increments binary on 6 LEDs every 100 ms. When all on, toggles 8 LEDs every sec. Uses Timer driver callbacks to switch from 100 to 1000 ms. Shows hex/binary of I/O pins via UART printf.
microchip-pic-avr-examples/avr128db48-i2c-io-expander1-leds-polled-printf
LED chaser increments binary on 6 LEDs every 100 ms. When all on, toggles 8 LEDs every sec. Polled with Delay driver, shows hex/binary of I/O expander pins via UART printf.
microchip-pic-avr-examples/avr128db48-i2c-io-expander2-leds-and-buttons-callbacks-printf
I/O Expander 1 pins (8 LEDs) set as outputs, low (LEDs on). I/O Expander 2 pins (SW1-3, 5 joystick inputs) as inputs. Button/joystick turns LED off. Nano SW resets LEDs. Uses I/O interrupts & pin change.
microchip-pic-avr-examples/avr128db48-i2c-io-expander2-leds-and-buttons-polled-printf
I/O Expander 1 pins (8 LEDs) set as outputs, low (LEDs on). I/O Expander 2 pins (SW1-3, 5 joystick inputs) as digital inputs. Button/joystick turns LED off. Curiosity Nano SW resets LEDs on.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-callbacks-data-streamer
Reads proximity sensor value. With Data Streamer output, sends values to MPLAB® Data Visualizer via protocol every 100 ms. Uses Timer driver callbacks for sampling frequency.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-callbacks-dvrt
Reads proximity sensor value. With DV Run Time output, sends values to MPLAB® Data Visualizer via DVRT protocol every 100 ms. Uses Timer driver callbacks for sampling frequency.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-callbacks-printf-errors
Reads proximity sensor value. With printf & error handling, sends values to MPLAB® Data Visualizer every 250 ms. Uses Timer driver callbacks for sampling frequency.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-polled-data-streamer
Reads proximity sensor value. With Data Streamer output, sends values to MPLAB® Data Visualizer every 100 ms via protocol. Polled using Delay driver for sampling frequency.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-polled-dvrt
Reads proximity sensor value. With DV Run Time output, sends values to MPLAB® Data Visualizer via DVRT protocol every 100 ms. Polled using Delay driver for sampling frequency.
microchip-pic-avr-examples/avr128db48-i2c-proximity-sensor-polled-printf-errors
Reads proximity sensor value. With printf & error handling, sends values to MPLAB® Data Visualizer every 250 ms. Polled using Delay driver for sampling frequency.
microchip-pic-avr-examples/avr128db48-mcc-dvrt-hello-world-led-toggle-count-variables
This is the API reference use case from the MCC Melody DV Run Time Library.
microchip-pic-avr-examples/dspic-bootloader-mdfu
dsPIC Bootloader MDFU Code Examples
microchip-pic-avr-examples/pic18f57q43-i2c-io-expander2-leds-and-buttons-polled-printf
I/O Expander 1 pins (8 LEDs) set as outputs, low (LEDs on). I/O Expander 2 pins (SW1-3, 5 joystick inputs) as digital inputs. Button/joystick turns LED off. Curiosity Nano SW resets LEDs on.
microchip-pic-avr-examples/pic18f57q43-i2c-proximity-sensor-callbacks-dvrt
Reads proximity sensor value. With DV Run Time output, sends values to MPLAB® Data Visualizer via DVRT protocol every 100 ms. Uses Timer driver callbacks for sampling frequency.
microchip-pic-avr-examples/pic18f57q43-i2c-proximity-sensor-callbacks-printf-errors
Reads proximity sensor value. With printf & error handling, sends values to MPLAB® Data Visualizer every 250 ms. Uses Timer driver callbacks for sampling frequency.
microchip-pic-avr-examples/pic18f57q43-i2c-proximity-sensor-polled-printf-errors
Reads proximity sensor value. With printf & error handling, sends values to MPLAB® Data Visualizer every 250 ms. Polled using Delay driver for sampling frequency.
microchip-pic-avr-examples/pic18f57q43-mcc-dvrt-hello-world-led-toggle-count-variables
This is the API reference use case from the MCC Melody DV Run Time Library.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-dma-crc-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show ways to validate data using the DMA's CRC engine. This program uses a preset CRC polynomial to compute checksums in multiple ways and displays it in the terminal.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-dma-memory-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show how to configure the DMA to perform a memory to memory data transfer. Pressing SW0 will start data transfers in different configurations, displaying the cycle times in the terminal.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-dma-usart-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show how to perform a data transfer from a memory location to a peripheral using the DMA. This program echoes every 10 characters entered in the terminal back to the user.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-rtc-alarm-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show how to use the Real-Time Counter (RTC) peripheral as an alarm timer. The application displays system time and triggers an alarm after 20 seconds, displaying a message in the terminal.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-rtc-periodic-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show how to use the Real-Time Counter (RTC) peripheral as a periodic timer. The RTC is configured to generate an interrupt every 250 milliseconds, triggering the on-board LED0 to toggle.
microchip-pic-avr-examples/pic32cmgc-curiosity-pro-rtc-tamper-vscode-harmony
This example project uses the PIC32CM GC Curiosity Pro board to show how to use the Real-Time Counter (RTC) to detect tampering. Pressing SW0 will be detected as a tampering attempt and a message with system timestamp will be displayed in the terminal.