Hi everybody. This is my first post of a series related to assembly programming for PIC Microcontrollers. In this first tutorial I will show you how to set-up the compilers and IDEs that you will use for building code in assembly.
We will start with installing the tools for Linux based operating systems. I am using [...]
There is a special location set aside on PIC microcontrollers called the ID location that is used for either storing checksum or identification purposes of the PIC. It has four location spaces, but only the 7 least significant spaces are used. The different applications of this space is limited only by your imagination. For my [...]
When writing programs for the PIC, there are certain things that you will want to do that aren’t specific to one particular project. The functions written to perform these tasks might also be rather large and make the main function longer than desired. Or perhaps the function is specific to this project but makes the [...]
I mentioned sprintf() briefly in my post about communicating between your PIC and the computer but have since learned a couple things I think others could benefit from. So this is going to be a kinda hodge-podge post.
First, I threw together a quick function that will take any number, convert it to ASCII, [...]
Voltage Follower
The Basics
The voltage follower, like the comparator, requires no components other than the op-amp itself. The voltage follower is typically used as a buffer; whatever circuit is connected to the output will have essentially no effect on the circuit attached to the input. Either of the inputs is connected directly to the output. The [...]
Comparator
The Basics
The comparator, unlike the previous amplifiers I’ve covered, requires no components other than the op-amp itself. The inverting and non-inverting inputs are used to compare two voltages. The higher of the two inputs will drive the output to the corresponding supply rail. For example, if the voltage applied to the non-inverting input is higher [...]
If you’ve studied the history of electricity at all, you have certainly heard of The War of the Currents. Edison wanted DC current for power distribution, Tesla wanted AC current. After quite the dirty little fight, Tesla came out on top with his AC current. But why? Despite all the arguments and under handed tactics [...]