(edit sidebar)
Intro to Physical Computing Syllabus

Research & Learning

Other Class pages

Shop Admin

ITP Help Pages
Tom's pcomp site
DanO's pcomp site


AVRC Programming-Software

Tutorials.AVRCProgramming-Software History

Hide minor edits - Show changes to output

Changed lines 18-19 from:

to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/02.jpg
Changed lines 24-25 from:

to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/04.jpg
Changed lines 30-34 from:




to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/06.jpg

Changed lines 35-36 from:

to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/07.jpg
Changed lines 39-41 from:


to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/08.jpg

Changed lines 44-46 from:


to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/09.jpg

Changed lines 13-15 from:


to:
http://itp.nyu.edu/physcomp/images/tutorials/programmingc/image/software/01.jpg

Added lines 1-53:
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.



Click next

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.



Click next

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


 

  Edit | View | History | Print | Recent Changes | Search Page last modified on July 19, 2007, at 11:28 AM