AVR microcontroller basic.

By IKTech May 29, 2017

Atmel Corporation is the name of the AVR microcontroller manufacturing company.
Currently microcontrollers of PIC series in Bangladesh, along with the AVR series microcontroller is also more popular.
And day-to-day popularity is increasing.There are a number of reasons behind this.

AVR series microcontroller is cheaper in comparison
Available in the market of Bangladesh.
AVR series has various types of chips. But there is a similarity between internal and external structures.
Creating a program loader for the AVR series microcontroller is easy, easy to market, and even lower prices.
For the beginners, microcontrollers are very helpful in learning.
The AVR series microcontroller is used in Arduino.
Initial preparations

 

There is no need to prepare too much when working with the AVR series microcontroller. Some software and hardware have to be collected.

Necessary hardware

Microcontroller Atmega8 / Atmega32

8 and Atmega16 / Atmega32
USBASP AVR Programmer for loading programs
Project board and some connections
5v Regulated Power Supply (how to create a prior discussion)
Some components, including some LEDs

Software

 

Through the AVR Studio 5.1 (396MB) program can be written, compiled and .hex files created, which can be loaded later in the microcontroller using the USBASP AVR Programmer.
To simulate code, popular simulation software Proteus. Which can be collected by the official web site http://www.labcenter.com/index.cfm following their policies. Besides, Google’s cooperation may be taken to collect the software. Proteus is a very popular and familiar software, hopefully you can easily get it collected.
EXtreme Burner or Khazama AVR Programmer can be used to load programs.

The program will be discussed later on how to load the program. Now let’s look at AVR Studio 5 and how to work using AVR Studio 5. Let’s take a look at the features of AVR Studio at the beginning.

Features of AVR Studio 5

An Integrated Development Environment (IDE) for microstructors of AVR Studio 5VV series.
It uses simulation and circuit emulation of microcontroller chips in AVR series.
It supports all microcontrollers in AVR series.
Its user interface (UI) is easy to use.
Using the same UI for simulation and emulation, no third party software tools or plugins are needed.
Its user interface (UI) is similar to Visual Studio.

Create the first project using AVR Studio 5

After installing AVR Studio 5, open the following → Start → All Programs → Atmel AVR Tools → AVR Studio 5.0 Instructions.

If open, you will see a page like this below. From here click on New Project.

After that window, select AVR GCC from there. Then select Empty Executable Project. After that, any name for the project can be given, such as MyFirstProject. After this, you will need to show that the project will be saved in any location on the hard disk. Click the Create directory for solution check box and click on the OK button.

Then there will be a dylog box for device selection, where AVR Studio 5 supports all such microcontrollers. From here we have to select the device that we want to write the program. Such as ATmega32. Then click on the OK button.

Now a window will appear like the image below, where there is a basic program structure. Here (1) {} loop can write the necessary variables, functions and statements for our program.

We were able to successfully open a project. We will see in the next phase how to write programs using C programming languages. C programming language coding technique for microcontrollers, variables to declare variables, use of data types, use of operators, different types of conditional and looping statements. Besides, the formation of internal registers of different kinds of chips, sending data to the input output port and accepting it. We will learn about analog to digital conversion process, using timing, intratting, timer usage, etc. We will learn all the subjects by creating a real example program and by simulating them. We hope that our learning process will be simple and attractive.

12 thoughts on “AVR microcontroller basic.

  • I was looking at some of your articles on this site and I believe this internet site is really instructive! Keep on posting .

  • Hello my friend! I wish to say that this post is awesome, nice written and include approximately all important infos. I would like to see more posts like this.

  • I truly appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again

  • Appreciating the commitment you invested in your blog and in-depth details you display. It’s good to come across a blog from time to time that is not the similar expired re-written content. Great read! I have saved your website and I am including the RSS feeds to our Arvind Pandit Kansas page.

  • There are amazing improvements on the layout of this page, I really like that! My site is dealing with root checker app and right now there are lots of stuff to be done, I am yet still a starter in webpage design. Take care!

  • Admiring the persistence you invested in this site and comprehensive details you offer. It’s amazing to find a website occasionally which is just not the same outdated re-written information. Excellent read! I have saved your webpage and I’m including your RSS feeds to my own home intercom site.

Leave a Reply

Your email address will not be published. Required fields are marked *