Introduction To Microcontrollers
Introduction To Microcontrollers
Introduction to Microcontrollers
You must be knowing about Digital Integrated Circuits (ICs) right ? For example:
There are AND, XOR, NAND, NOR, OR logic gate ICs, Counters, Timers, Seven Segment Display Drivers
and much more. Just check out 7400 Series and 4000 Series of Integrated Circuits.
Now lets take Quad 2 input AND gate IC. It has 4 AND gates, each having 2 pins for input and 1 pin for
output. The truth table or the function table of each gate is fixed. This is as follows,
Input 1
Input 2
Output
Similarly all the Integrated circuits have their function tables and input and output pins fixed. You cannot
change the function and no input pin act as output and vice versa. So whenever you want to design some
circuit you first have to get the output as a function of inputs and then design it using gates or whatever the
requirement is.
So once a circuit is built we cannot change its function ! Even if you want to make some changes again you
have to consider all the gates and components involved. Now if you are designing any circuit which involves
change of the function table every now and then you are in trouble ! For example if I want to design an
Autonomous Robot which should perform various tasks and I dont just want to fix the task. Suppose I make
it to move in a path then I want to change the path ! How to do that ?
Here comes the use of Microcontrollers ! Now if I give you an Integrated Circuit with 20 pins and tell you
that you can make any pin as output or input also you can change the function table by programming the IC
using your computer ! Then your reactions will be wow ! thats nice :-) Thats what the most basic function
of a microcontroller is. It has set of pins called as PORT and you can make any pin either as output or input.
After configuring pins you can program it to perform according to any function table you want. You can
change the configuration or the function table as many times you
wants.
There are many Semiconductor Companies which manufactures
microcontrollers. Some of them are:
Intel
Atmel
Microchip
Motorola
Robotics Club,IIT-Kanpur
Tutorial 3
We will discuss about Atmel Microcontrollers commonly known as AVR in this section.
Robotics Club,IIT-Kanpur
Tutorial 3
Atmel Microcontrollers are very famous as they are very easy to use. There are many development tools
available for them. First of all we need an easy IDE for developing code. I suggest beginners to use CVAVR
(Code Vision AVR) Evaluation version is available for free download from the website. It has limitation of
code size. It works on computers with Windows platform that is Windows XP & Vista.
Some famous compilers/development tools supporting Windows for Atmel Microcontrollers are:
AVRGCC is a very nice open source compiler used by most of the people.
Programmer
Hardware depends on the communication port you are using on the computer (Serial, Parallel or USB). I
suggest beginners to use Serial Programmer as it is very easy to build. Software for that is Pony Prog. Some
famous Windows (XP, Vista) programmers are:
Robotics Club,IIT-Kanpur