Timer 0 as External Counter in 8-bit PIC microcontroller
In the previous post, Timer 0 as an Internal Counter was explained and configured to use the internal clock (i.e. the oscillator) to count a defined quantity of time. However,…
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…
Multiplexing Principles using Traffic Lights
Multiplexing constitutes a technique to optimize the control of sequential hardware. This technique uses less controllers to handle switching and improves the maneuverability. Since each sequence have equal operation, it's…
While loop in C language, the ‘ask first’ of Control Flow
'While loop' in C let's you control the loops and cycles that a program executes. At the beginning of the loop, a condition is checked whenever it's true; if it's…
Code Template, an easy guide for PIC Microcontrollers in C
As your programs get more complex and advanced, the necessity for order comes urgently. Classifying the whole code into sections according to topic and purpose is essential to maintain it…
Functions in C Programming Language
The reason why you want to use and eventually get used to functions in C programming language is because they save a lot of time when writing code. It simplifies…
How to Drive a DC Motor with a BJT Transistor
DC motors grant electronic devices the force to move, push, pull, block or repel other objects around or even themselves. Fortunately, DC motors aren't difficult to understand or to control.…
How to Switch a LED easily with a BJT Transistor
In this post, you will learn to how to switch a LED with the 2N3904 and 2N3906 BJT transistor. First, you will start to evaluate the current capabilities of the…