دوستان من برنامه زیر رو در دو کامپایلر CodeVision و IAR نوشتم و خطاهای زیر رو داده ، هرکاری کردم نتونستم خطا رو برطرف کنم :angry: ، اگه امکان داره شما هم برنامه رو تو کامپایلر خودتون کامپایل کنید ببینید آیا این خطا رو هم اونجا میده ؟
متن برنامه در کدویژن:
خطاها در کدویژن :
متن برنامه در IAR:
خطاها در IAR:
متن برنامه در کدویژن:
کد:
#include <mega32.h>
void main()
{
DDRB=(1<<DDB3);
PORTB=(1<<PORTB0);
OCR0=100;
TCCR0=(1<<COM00)|(1<<CS02)|(1<<CS01);
while(1);
}
Error:undefined symbol'COM00'
Error:undefined symbol'PORTB.0'
Error:undefined symbol'DDB3'
Error:undefined symbol'PORTB.0'
Error:undefined symbol'DDB3'
متن برنامه در IAR:
کد:
#include <ioavr.h>
void main()
{
DDRB=(1<<DDB3);
PORTB=(1<<PORTB0);
OCR0=100;
TCCR0=(1<<COM00)|(1<<CS02)|(1<<CS01);
while(1);
}
Error[Pe020]: identifier "DDB3" is undefined
Error[Pe020]: identifier "PORTB0" is undefined
Error[Pe020]: identifier "COM00" is undefined
Error[Pe020]: identifier "CS02" is undefined
Error[Pe020]: identifier "CS01" is undefined
Error while running C/C++ Compiler
Error[Pe020]: identifier "PORTB0" is undefined
Error[Pe020]: identifier "COM00" is undefined
Error[Pe020]: identifier "CS02" is undefined
Error[Pe020]: identifier "CS01" is undefined
Error while running C/C++ Compiler










(درس و مشق فعالیتمو تو انجمن کم کرده)

سیستم مورد نیاز برای این نسخه چیه ؟ رو winXP اجرا میشه دیگه ؟
دیدگاه