CodevisionAVR Quick Start Guide

Ver.01.090611

 

INTRODUCTION

CodevisonAVR is a powerful and user friendly compiler/IDE for Atmel’s AVR series of microcontrollers. Assuming you have already installed it, this article will guide you on starting your first project.

OBJECTIVE

The objective of this article is to demonstrate the creation and setup of a codevisionAVR project.

CREATING A PROJECT

Figure 1 shows you the screen once you start the program. This is CodevisionAVR version 1, version 2 may slightly be different but this tutorial may apply for both versions.

 

Fig 1.0

 

To start your work, you will need to create a “project” and set it up accordingly. Follow through the procedures below:

 

1)       Run CodeVisionAVR.

2)     Go to File> New>Project then press OK

3)       Figure 2.0 will then pop up. In order to be better acquainted with the IDE, you should select No and instead, setup your project manually.


Fig 2.0

4)       In the “Create New Project” dialogue box create a new folder for your project. You will use this directory for all your files related to that particular project.

Fig 3.0

5)       In the “Configure Project slot.prj” window, select OK

Fig 4.0

6)       The project file *.prj is now existing in your project directory. You should now add your source files. To create a *.c or *.h file, go to
File>New>Source then select OK. A new dialogue box will appear as shown in Fig 5.0.

Fig 5.0
 

7)       It would be wise to create a name for your source code by “Save As”. Use the same project directory. Go to
File>Save As, type your desired filename and then save.

8)       Next, go to Project>Configure

Fig 6.0

 

9)       A new dialogue box will appear. Select Add  then choose the source code you have just created.


Fig 7.0

10)    You should now see your source code under your project directory. All other source files, if any, you need will have to be added into the project.



11)  

 

 
In thev“C Compiler “ tab, select your chip and crystal frequency.



12)   In the “After Make” tab, tick on “Program the Chip” then press OK



13)   You just completed your project setup! You may now start writing your code!

 

 

 

 

 

 

Contribution by user kulinti

___________________________________________________________________________________________________________________________________________________________________________

Disclaimer: The information contained in this website is for general information purposes only. The information is provided by layadcircuits.com or its contributing users, whilst we endeavor to keep the information up-to-date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.