A code example that shows how to configure ADCC to give a conversion averaged through a low pass filter.
This repository provides a MCC generated code example that uses TMR4 peripheral as a Hardware Limit Timer in order to generate an interrupt and stop TMR2 that also stops the ADCC auto-conversion.
Foundation Services generated code for i2c write operation.
This repository provides a bare-metal code example for using TMR4 peripheral in One-Shot to stop TMR2 if an external pin is pulled to GND for more than a desired period.
This repository provides a MCC generated code example that uses TMR4 peripheral in One-Shot to stop TMR2 if an external pin is pulled to GND for more than a desired period.
MCC generated code for i2c write operation
Driving a Metronome using a PIC Microcontroller This repository contains the source code for a metronome application. This was developed using PIC16F18446 microcontroller, along with a Switec Stepper motor, a potentiometer, a LED and a buzzer.
This repository provides a bare-metal code example for using TMR4 peripheral as a Hardware Limit Timer in order to generate an interrupt and stop TMR2 that also stops the ADCC auto-conversion.
This repository provides a bare-metal code example for using TMR2 peripheral to trigger the ADCC to make conversions at a fixed frequency rate, that can be adjusted with the period of TMR2.
Bare metal code for i2c read and write operations with interrupts.
This example [part1] shows how to set up Direct Memory Access (DMA) using the Microchip Code Configurator (MCC) on a PIC18F57Q43 microcontroller to transfer an ADC result to the UART transmit buffer, where the transfer is triggered directly by a TMR.
Getting Started with Timers/Counters on PIC18. The TMR1 is configured in gate single pulse and toggle combined mode.
Getting Started with Timers/Counters on PIC18. The TMR1 is configured as a counter.
Getting Started with Timers/Counters on PIC18. The TMR1 is configured in gate single pulse mode.
Using 10-bit DAC for Generating Analog Signals on AVR-DA
This example [part2] shows how to set up Direct Memory Access (DMA) using the Microchip Code Configurator (MCC) on a PIC18F57Q43 microcontroller to transfer data from the UART recieve buffer to the PWM duty cycle register to alter the brightness of an LED. The data transfer is triggered by the UART module when the Rx buffer register is full.
Foundation Services generated code for i2c read and write operations with interrupts.
Bare metal code for i2c write operation.
The PIC16F18875 features Signal Measurement Timer. This project demonstrates a DC motor speed control in closed loop, using PI algorithm and a potentiometer as a reference.