sorry for writting in English
dear all brothers who want to learn programming Atmega8515;
first we have to get our tools in order to start programming
second we have to know how to program in C language;
so for tools we must have:
1- Codevision (C compiler)
2- Programmer
3-microcontroller
as u said you have the programmer and the micro controller so u have to get codevision (
http://www.4shared.com/file/12808858...V2034.html?s=1) NOT TESTED.
from code vision start a new project with wizard. next choose micro controller and Xtal then press file--> generate save and exit .save the file with name "mega8515"
when finish u will see a C code delete it and put this in place
#include <mega8515.h> //this is the main library for microcontroller
void main(void) // main function
{
int i,j;
PORTA=0x00; // erasing port A
DDRA=0xFF; // making port A as output
while (1) // endless loop
{
for (i=0;i<100;i++) // 2 for loops for delay
for (j=0;j<1000;j++)
PORTA.0 = 0; // turn OFF pin # 0 in port A
for (i=0;i<100;i++)
for (j=0;j<1000;j++)
PORTA.0 = 1; // turn ON pin # 0 in port A
}
}
now we are finished press the build button from project tab here we go know errors or warning the program is working. Go to your Programmer software and program the file named "mega8515.hex" found in project directory. run the microcontroller connect a led to PINA.0 (+ve to Vcc and -ve to PinA plzz put a resistor ) you will see that the led is blinking . now these steps are for all programs all u have to do is to learn c programming for AVR microcontroller plzzz ask as u want and search google for tutorials
thanks for all readers.
notify me plz if this article is good or not thanks.
i have .rar file it includes 14 program in c for code vision they cover (ports, uart ,spi ,timers,adc,int)in more than one way. i dont know how to attach it to this article so plz help me in order to give u the file.