Research & Learning
Other Class pages
AVR C PROGRAMMING WITH AVR STUDIO 4 - SOFTWARE
We can begin by downloading: AVR Studio 4 WinAVR
First, install the WinAvr package. This can go anywhere you can target from AVR Studio 4. I dropped it into the C drive to make it easily accessible.
WinAVR is a set of tools that used alone, can program an AVR chip through the command line. AVR Studio 4 is going to take advantage of these.
Install the AVR Studio 4 package. and open the application. Once you are in the environment, open a new project. Project>NewProject.
You will be prompted to supply some information about your project. In the dialog box you will see a choice of Atmel AVR assembler and AVR GCC. If you dont see the AVR GCC option. There is an issue with the install. If you do see it, select it. To the right, give the project a name and the initial file will auto fill itself. Below, see the location window. This is where you can set the default location for this project.
You will see two menus. In the left menu is a list of debugging platforms. Choose AVR simulator. In the menu to the right is a list of Atmel chips. Choose ATmega8. This is the chip on which these tutorials are based.
You will return to the enviroment. Before we are ready though, let's check the configuration ooptions. Project> Configuration Options.
In the General panel, you can select your device. Make sure it reads atmega8.
In the custom options, look at the External Tools section. Make sure "Use WinAVR" is selected. Below this are the paths to avr-gcc.exe and the make.exe executables. These are in the WinAVR folder. These are essential to programming.
Click OK and you are ready to start programming. This is the environment.
Prepare the breadboard