Getting Started with Timers/Counters on PIC18. The TMR1 is configured as a counter.
-
Updated
Feb 10, 2021 - Makefile
Getting Started with Timers/Counters on PIC18. The TMR1 is configured as a counter.
This repository provides a bare-metal code example for using TMR0 in 8-bit Mode with clock output. A signal will be generated using TMR0 on the output RC2 pin.
This repository provides an example of bare-metal code for GPIO read/write operations. This example shows how to read an input pin value, changed by pressing a button, and how to set an output pin value, in order to turn an LED on and off.
The PIC18F47Q10 features two MSSP modules, which can be configured in SPI mode. In this demo, the SPI is configured as slave and it is used receive data from a master device. The repository contains the bare metal code for the application.
This example shows how to send a string to the PC and see it in the MPLAB Data Visualizer Terminal.
A code example that configures the ADCC to provide a measurement of the internal temperature of the microcontroller.
This repository provides a bare-metal code example for using TMR0 in 8-bit Mode with Periodic Interrupt. TMR0 will generate a compare interrupt every 100 ms, using LFINTOSC as clock source. A GPIO pin is toggled each time an interrupt occurs.
The PIC18F47Q10 features two MSSP modules, which can be configured in SPI mode. In this demo, the SPI is configured as master and it is used to send data to a slave device, in data mode 3. The repository contains the bare metal code for the application.
This repository provides a bare-metal code example for using TMR0 in 16-bit Mode with sleep operation. An interrupt will wake up the device every 10s and LED0 will light up for 100 ms and then the MCU will be put back to sleep.
Code example that shows how to configure ADCC to give a conversion averaged through a low pass filter.
A code examples that shows how to configure the ADCC to read one analog value.
This repository provides an example bare-metal code for using GPIO Interrupts and shows how to enable the Interrupt-on-Change (IOC). The IOC is configured to be triggered on the falling edge detected on the desired input pin.
This repository provides an example of bare-metal code for a Wake-Up from Sleep procedure. This example shows how to obtain less power consumption by putting the device in the Sleep mode and waking it up using the IOC, with a button controlling the input pin value.
This example shows how to use the printf function to send messages over EUSART and display charts in MPLAX Data Visualizer using Data Stream Protocol.
Add a description, image, and links to the pic18f-q10 topic page so that developers can more easily learn about it.
To associate your repository with the pic18f-q10 topic, visit your repo's landing page and select "manage topics."