-How to program Atmel Atmega using AVR Studio 5.
Objective
-To program the Atmel Atmega microcontroller using AVR Studio 5.
Content/Procedure
-There is several type of Atmel and for this project the microcontroller will use is Atmel Atmega644.
-To program it, AVR Studio 5 software will be use.
-Start page
![]() |
| AVR Studio 5 start page |
-On the Start Page discussed in getting started with AVR Studio 5, click the option.
![]() |
| New Project |
![]() |
| New Project Wizard |
![]() |
| Types of project |
- In the New Project dialog box, select Installed Templates. This lists the available project types.
- For this example, create an AVRGCC C Executable Project.
- In the Name box, type a name for the new project.
- In the Location box, select a save location.
- AVR Studio will suggest a name in the Solution name box. You can override this name if wanted.
- Leave the Create directory for solution checkbox checked.
- Click OK.
-When a new project is created, the Device Selection dialog is displayed and you will be prompted to select the project target device.
![]() |
| Device Selection |
-Select a device.
- In the Device Selection dialog, select Atmel Atmega644
- Click OK
![]() |
| Compiling Code |
![]() |
| Example Code |
Result/Analysis
-AVR Studio automatically opens the newly created C file in the source editor. If the file is closed at any time, double click on
[Project_name].c - in this case
AVRGCC1.c - to open it in the editor.At this time the C file contains only an include statement for I/O manipulation and a simple main() function.
-AVR Studio now builds the application. All output from the compiler is listed in the output window.
Conclusions
As a conclusions, the introduction to creating code projects in AVR Studio. All aspects of projects are described more in detail in AVR Studio projects.







No comments:
Post a Comment