How to Program AVR Microcontrollers? - The Mystique

How to Program AVR Microcontrollers?

0 Comments



In this post I will be dealing with the coding of micro controllers. For coding we are going to use embedded C language. We should write our program in "avr studio". You can download it from it's official site and it is free. For the users whose RAM is slow, you can use "winavr" .
download avr studio here

KNOW  YOUR DEVICE

 Depending on your micro controller you may have different kinds of ports which are major input and output pins. The input pins sends analog signals to the micro controller and the output pins gets the analog signals from the micro controller. For example if i consider ATMEGA 8, it has 3 ports namely B,C and D.
We know that the memory is stored registers. Here there are different kinds of registers.
  
This diagram represents the port control registers . Now i will explain the usage of these ports in the program.  
This is a very simple program to illustrate input and output functions



here high indicates maximum voltage and low indicates 0 voltage.
for introduction of micro controllers please visit here
In the next post we will learn how to boot the development board.          

PREVIOUS



Related articles:




0 comments: