Skip to main content

AVR Studio 4 - Project Guide & Working

AVR studio is an Integrated Development Environment (IDE) by ATMEL for developing applications based on 8-bit AVR microcontroller. Prior to installation of AVR Studio you have to install the compiler WinAVR. This will allow AVR Studio to detect the compiler

Step 1 :
Open Software AVR Studio 4

Step 2 :
Click on New Project


Step 3 :
Click on AVR GCC
Write the project name
Select your project location.
Click on Next >>

Step 4 :
Click on AVR Simulator in left block and then select your controller (e.g.: ATmega16).
Click on finish button

Step 5 :
Write the code in main body area.
Save the project file.

Step 6 :
Go to BUILD -> Compile.
This will compile your code and generate error if any.
If there is any, rectify the code and Compile Again.
After Successful Compilation 
This will generate hex file of the code.
Use that Hex file to burn your microcontroller.



Where you will find Hex file?
Just go to the location which you selected at the starting. Open that folder you will find one more folder named Default. This is the default location of where the hex file is generated.
While working in real time if you want to change the code, make changes and build the file again. This will automatically update the previous hex file.
 

Comments

Popular posts from this blog

AVR Studio 4 Installation Guide

Introduction to AVR Studio 4 AVR Studio 4 is Atmel's integrated development environment (IDE) specially design to write and debug applications for AVR devices. The suite includes a text editor to write programs, an assembler to translate assembly code into object programs, and a simulator to watch code's behavior without need of having an AVR device attached.   System Requirements : Window XP Window Vista Window 7(32-Bit) Window 7(64-Bit) Windows 8 Step 1: Download AVR Studio 4 from Here - Download Step 2: Download Win AVR from Here - Download Step 3:  Install Win AVR Software Step 4: Installing AVR Studio Locate the setup program in the folder where you downloaded the software. In this case, the name of the setup program is aStudio4b460.exe . Double-click on aStudio4b460.exe to start the installation. Select Next on the appearing window. Read the license agreement, select the "I accept" option, and

Upload HEX file to AVR Microcontroller - Using SINAPROG

Resource Download  Download SINAPROG Program Burning Software - Download USBASP Driver Download - Download USBASP Programmer Schematic and Firmware - Download  SINAPROG is use to upload HEX file in all AVR Microcontrollers. To upload HEX file in Microcontroller we require following things :- 1. HEX Code Generated by AVR Studio 4  2. AVR USBASP Programmer 3. AVR Training Board 4  FRC 10-10 Female Cable  5  Blank AVR Microcontroller Step to Program Step 1 :   Connect USBASP Programmer with AVR Trainer Board in ISP ( In System Programming ) section using FRC Cable. Step 2 :  Attach Blank AVR Microcontroller (Ex - Atmega 16 ) to AVR Trainer Board. Step 3.  Open SINAPROG Software, In HEX Section - Click Folder Icon and select the HEX file to be uploaded in Microcontroller  Step 4: Select the Microcontroller in Device Section in which the Program is to be uploaded or Click Search if already connected. Step 5: Select " USBASP Program