Timer 0, a simple Counter in 8-bit PIC you need to know
Instead of creating software to count seconds or pulses, a specific hardware was created to deal with this necessity called 'timers'. There is a bunch of different kinds of timers…
Interrupt sources in 8-bit PIC and how to quickly attend them
Interruption by hardware takes care of emergent situations that requires attention as soon as possible. The code is interrupted, the situation is attended, and finally is taken back to previous…
Blinking LED with a PIC microcontroller, a helpful Indicator
Learn how to continuously turn on and off a simple LED; in other words, to blink a LED. The microcontroller used here is the PIC16F628A and you are going to…
Hello World with 8-bit PIC microcontroller
For the purpose of this post, I'm going to write a very simple code for the demonstration, which will just light an LED. It could be considered a "Hello World"…
How to connect any PICkit to a microcontroller
To program a microcontroller, you will need a tool such as the PICkit. This device links the IDE from the computer with the microcontroller, usually by a USB port. Continue…
Push Buttons in a PIC microcontroller, how to read one
A push button is a simple method to give to the microcontroller an input capability. Any user can push a button or press a switch to activate a specific function…
MCLR (Master Clear) on PIC microcontrollers
The Master Clear or MCLR is a feature present in many microcontrollers, used for resetting the entire device. This means that when the MCLR is triggered, the device will start…
Setting up PWM on a PIC Microcontroller
About PWM. Hello everyone, Juditova here! The Pulse Modulation Width (PWM) helps any microcontroller tremendously on most control tasks. You see, PWM makes the connected device to believe its connected…