Yet another way to get a LED blinking
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mcc_generated_files
nbproject
tools
.gitignore
LICENSE.txt
Makefile
MyConfig.mc3
README.md
globals.h
main.c

README.md

LED IRQ

Led with Timer0 and IRQ

In this example we see how to blink several LEDs using a single timer with an interrupt function. The example shows a timeout function builded on millisec variable that is something similar to Arduino millis() function.

The argument is covered into Yet another way th have a LED blinking tutorial.

Prerequisites

You need Microchip MPLAB-X IDE V4.0 installed as well as MPLAB XC8 compiler. The example is configured under PIC18LF24K40 microcontroller but can be adapted to any PIC by using MPLAB Code Configurator

For Linux-64 machines some libraries are needed; Microchip has a tutorial for this: mplabx-lin64

Installing

To install the project on your machine the best way is to clone the repository:

cd MPLABXProjects
git clone https://github.com/PaoloCarlo/example_led_irq.git

Now you can open the project into MPLAB-X IDE

Authors

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details