Saturday 5 October 2013

CVAVR TUTORIAL (CODE VISION AVR)

This is the software for programming of AVR. This is developed by HP.

This software is very user friendly and it is very easy to make a program in this software. In short CVAVR is for beginners.

Follow all the steps.

1. Download and open CVAVR. Goto file>new.



2. Select file type Project and click ok.



3. Select your chip type and click ok.



4. Now a window opens for including various functions or header files in your program automatically. First select your controller from chip option.



5. If you used LCD in your project then go to LCD and select LCD port.



6. If you want to enable ADC in your code then goto ADC and enble it and select various options according to you requirement.



7. If you want to enable SPI mode then go to SPI and enable it and select various options according to your requirement. As it is you can include many other options in your program given in above window automatically.



8. After including all your requirements go to file>generate, save and exit.



9. Now this window opens 3 times save your project at the location you want and typr the file name like evm in all 3 windows. All 3 file names must be same.



10. Now a project window opens where necessary header files are included automatically. You also can include any header file you want from the CVAVR library.



11. Declare all the variables above and scroll down to see while(1) function and write your code in while(1).



12. Click the button as shown in window for building your project.



13. Now a windows open make sure there is no error and no warning.



14. You can find your HEX file in EXE folder.



GOOD LUCK

No comments: