Project Info
Author: Chris
Difficulty: Easy
Time Invested: 1 Hours
Prerequisites:
Take a look at the above
tutorials before continuing
to read this tutorial.
Author: Chris
Difficulty: Easy
Time Invested: 1 Hours
Prerequisites:
Take a look at the above
tutorials before continuing
to read this tutorial.
Most if not all microcontrollers will have digital timers inside of them. In simple terms, a timer is just a counter that, with every clock cycle input, counts up to a predefined value.
Below is an example hardware timer (1st picture). For this tutorial we will use a PIC microcontroller's built-in timers (2nd picture).
![](img/counter.gif)
![](img/18F452.jpg)
Purpose & Overview of this project
The goal of this project is to understand how the digital timers in the PIC work. To do this we'll blink a few LEDs using the timers available in the PIC. Each LED will be setup for a specific blinking interval.