Tuesday, 14 August 2012

Week 3

Title of Activity
-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
-Creating new project.
-On the Start Page discussed in getting started with AVR Studio 5, click the New Project option.
New Project
 -The wizard project appear.
New Project Wizard
-About project types.
Types of project
-How to create a project.

  1. In the New Project dialog box, select Installed Templates. This lists the available project types.
  2. For this example, create an AVRGCC C Executable Project.
  3. In the Name box, type a name for the new project.
  4. In the Location box, select a save location.
  5. AVR Studio will suggest a name in the Solution name box. You can override this name if wanted.
  6. Leave the Create directory for solution checkbox checked.
  7. Click OK.
-Choosing a Target Device
-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
 -The device selection dialog lists all supported devices for the current project type. To narrow down the selection of devices, select the device family in the Device Family field, or use the Search for Device field to view a filtered list of devices matching your search string.

-Select a device.
  1. In the Device Selection dialog, select Atmel Atmega644
  2. Click OK
-Writing and compiling code.
Compiling Code
-Example type of code.
Example Code
-To compile the project, press F7 key or select Build Solution from the Build menu.
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